1 #ifndef SBNCODE_SINGLEPHOTONANALYSIS_RECO_TRUTH_MATCHING_H
2 #define SBNCODE_SINGLEPHOTONANALYSIS_RECO_TRUTH_MATCHING_H
7 #include "nusimdata/SimulationBase/simb.h"
8 #include "nusimdata/SimulationBase/MCTruth.h"
19 namespace single_photon
22 std::vector<PandoraPFParticle> all_PPFPs,
24 std::map<art::Ptr<recob::Track>, art::Ptr<simb::MCParticle> > & trackToMCParticleMap,
25 std::map< art::Ptr<simb::MCParticle>, art::Ptr<simb::MCTruth>> & MCParticleToMCTruthMap,
26 std::vector<art::Ptr<simb::MCParticle>> & mcParticleVector,
27 std::map<
int, art::Ptr<simb::MCParticle> > & MCParticleToTrackIdMap,
28 std::vector<double> & vfrac,
34 std::vector<PandoraPFParticle> all_PPFPs,
36 std::map<art::Ptr<recob::Shower>,art::Ptr<simb::MCParticle>>& showerToMCParticleMap,
37 art::FindManyP<simb::MCParticle,anab::BackTrackerHitMatchingData>& mcparticles_per_hit,
38 std::vector<art::Ptr<simb::MCParticle>>& mcParticleVector,
39 std::map<
int ,art::Ptr<simb::MCParticle> > & MCParticleToTrackIdMap,
53 std::map<art::Ptr<recob::Track>,art::Ptr<simb::MCParticle>>& objectToMCParticleMap,
54 std::map<art::Ptr<recob::Track>,art::Ptr<recob::PFParticle>>& objectToPFParticleMap,
55 std::map<art::Ptr<recob::PFParticle>,
std::vector<art::Ptr<recob::Hit>> >& pfParticleToHitsMap,
56 art::FindManyP<simb::MCParticle,anab::BackTrackerHitMatchingData>& mcparticles_per_hit,
57 std::vector<art::Ptr<simb::MCParticle>>& mcParticleVector,
66 #endif // SBNCODE_SINGLEPHOTONANALYSIS_RECO_TRUTH_MATCHING_H
ClusterModuleLabel join with tracks
std::vector< double > trackRecoMCmatching(std::vector< art::Ptr< recob::Track >> &objectVector, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle >> &objectToMCParticleMap, std::map< art::Ptr< recob::Track >, art::Ptr< recob::PFParticle >> &objectToPFParticleMap, std::map< art::Ptr< recob::PFParticle >, std::vector< art::Ptr< recob::Hit >> > &pfParticleToHitsMap, art::FindManyP< simb::MCParticle, anab::BackTrackerHitMatchingData > &mcparticles_per_hit, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars)
void RecoMCTracks(std::vector< PandoraPFParticle > all_PPFPs, const std::vector< art::Ptr< recob::Track >> &tracks, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > &trackToMCParticleMap, std::map< art::Ptr< simb::MCParticle >, art::Ptr< simb::MCTruth >> &MCParticleToMCTruthMap, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, std::map< int, art::Ptr< simb::MCParticle > > &MCParticleToTrackIdMap, std::vector< double > &vfrac, var_all &vars)
void showerRecoMCmatching(std::vector< PandoraPFParticle > all_PPFPs, std::vector< art::Ptr< recob::Shower >> &showerVector, std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle >> &showerToMCParticleMap, 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)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
int photoNuclearTesting(std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector)
Provides recob::Track data product.