9 namespace single_photon
55 TGraph*
GetNearestNpts(
int p,
int cl,
std::vector<art::Ptr<recob::Hit>> &hitz,
double vertex_wire,
double vertex_tick,
int Npts);
57 sss_score
ScoreCluster(
int p,
int cl,
std::vector<art::Ptr<recob::Hit>> &hits,
double vertex_wire,
double vertex_tick,
const art::Ptr<recob::Shower> &
shower);
60 const std::vector<art::Ptr<recob::Shower>>& showers, std::map<art::Ptr<recob::Shower>, art::Ptr<recob::PFParticle>> & showerToPFParticleMap,
const std::map<art::Ptr<recob::PFParticle>,
std::vector<art::Ptr<recob::Hit>> > & pfParticleToHitsMap,
double eps);
66 art::FindManyP<simb::MCParticle,anab::BackTrackerHitMatchingData>& mcparticles_per_hit,
67 std::vector<art::Ptr<simb::MCParticle>>& mcParticleVector,
68 std::map<
int ,art::Ptr<simb::MCParticle>> & MCParticleToTrackIdMap,
76 std::map<art::Ptr<recob::Shower>, art::Ptr<recob::PFParticle>> & NormalShowerToPFParticleMap,
78 std::map<art::Ptr<recob::Track>,
79 art::Ptr<recob::PFParticle>> & NormalTrackToPFParticleMap,
80 art::Event
const &
evt ,
86 std::pair<bool, std::vector<double>>
clusterCandidateOverlap(
const std::vector<int> & candidate_indices,
const std::vector<int>& cluster_planes,
const std::vector<double>& cluster_max_ticks,
const std::vector<double>& cluster_min_ticks);
89 std::pair<int, std::pair<std::vector<std::vector<double>>, std::vector<double>>>
GroupClusterCandidate(
int num_clusters,
const std::vector<int>& cluster_planes,
const std::vector<double>& cluster_max_ticks,
const std::vector<double>& cluster_min_ticks);
92 bool map_max_fn(
const std::pair<art::Ptr<recob::Hit>,
double>
p1,
const std::pair<art::Ptr<recob::Hit>,
double> p2){
93 return (
p1.second < p2.second);
97 bool map_min_fn(
const std::pair<art::Ptr<recob::Hit>,
double>
p1,
const std::pair<art::Ptr<recob::Hit>,
double> p2){
98 return (
p1.second > p2.second);
102 std::vector<PandoraPFParticle> all_PPFPs,
104 const std::vector<art::Ptr<recob::Shower>>& showers,
std::vector< double > SecondShowerMatching(std::vector< art::Ptr< recob::Hit >> &hitz, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > &mcparticles_per_hit, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, std::map< int, art::Ptr< simb::MCParticle >> &MCParticleToTrackIdMap, var_all &vars)
sss_score(int ip, int cl)
ClusterModuleLabel join with tracks
std::pair< int, std::pair< std::vector< std::vector< double > >, std::vector< double > > > GroupClusterCandidate(int num_clusters, const std::vector< int > &cluster_planes, const std::vector< double > &cluster_max_ticks, const std::vector< double > &cluster_min_ticks)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
bool map_min_fn(const std::pair< art::Ptr< recob::Hit >, double > p1, const std::pair< art::Ptr< recob::Hit >, double > p2)
TGraph * GetNearestNpts(int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, int Npts)
bool map_max_fn(const std::pair< art::Ptr< recob::Hit >, double > p1, const std::pair< art::Ptr< recob::Hit >, double > p2)
void IsolationStudy(std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Track >> &tracks, const std::vector< art::Ptr< recob::Shower >> &showers, detinfo::DetectorPropertiesData const &theDetector, var_all &vars, para_all ¶s)
sss_score ScoreCluster(int p, int cl, std::vector< art::Ptr< recob::Hit >> &hits, double vertex_wire, double vertex_tick, const art::Ptr< recob::Shower > &shower)
void SimpleSecondShowerCluster(var_all &vars, para_all ¶s)
int CompareToShowers(int p, int cl, std::vector< art::Ptr< recob::Hit >> &hitz, double vertex_wire, double vertex_tick, const std::vector< art::Ptr< recob::Shower >> &showers, std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &showerToPFParticleMap, const std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, double eps)
std::pair< bool, std::vector< double > > clusterCandidateOverlap(const std::vector< int > &candidate_indices, const std::vector< int > &cluster_planes, const std::vector< double > &cluster_max_ticks, const std::vector< double > &cluster_min_ticks)
void SecondShowerSearch3D(std::vector< art::Ptr< recob::Shower >> &showers, std::map< art::Ptr< recob::Shower >, art::Ptr< recob::PFParticle >> &NormalShowerToPFParticleMap, std::vector< art::Ptr< recob::Track >> &tracks, std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> &NormalTrackToPFParticleMap, art::Event const &evt, var_all &vars, para_all ¶s)
physics associatedGroupsWithLeft p1