All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
analyze_MC.h
Go to the documentation of this file.
1 #ifndef SBNCODE_SINGLEPHOTONANALYSIS_ANALYZE_MC_H
2 #define SBNCODE_SINGLEPHOTONANALYSIS_ANALYZE_MC_H
3 
4 #include <vector>
5 #include <map>
6 
7 #include "art/Framework/Principal/Event.h"
8 #include "nusimdata/SimulationBase/simb.h"
9 #include "nusimdata/SimulationBase/MCTruth.h"
10 
13 
16 
17 namespace single_photon
18 {
19 
20  //analyze_Geant4.h
21  void AnalyzeGeant4( const std::vector<art::Ptr<simb::MCParticle>> &mcParticleVector, var_all& vars );
22 
23  //analyze_EventWeight.h
24  void AnalyzeEventWeight(art::Event const & e,var_all& vars);
25 
26  //analyze_MCTruth.h
27  void AnalyzeRecoMCSlices(std::string signal_def,
28  std::vector<PandoraPFParticle> all_PPFPs,
29  std::map<int, art::Ptr<simb::MCParticle>> & MCParticleToTrackIDMap,
30  std::map<art::Ptr<recob::Shower>, art::Ptr<simb::MCParticle> > & showerToMCParticleMap,
31  std::map<art::Ptr<recob::Track>, art::Ptr<simb::MCParticle> > &trackToMCParticleMap,
32  var_all& vars,
33  para_all& paras);
34 
35  //This only look at MCTruch info. Reco matching create sim_shower/track for pairing up MCTruth to Reco objects;
36  void AnalyzeMCTruths(std::vector<art::Ptr<simb::MCTruth>> & mcTruthVector , std::vector<art::Ptr<simb::MCParticle>> & mcParticleVector,var_all& vars, para_all& paras);
37 
38 
39 }
40 #endif // SBNCODE_SINGLEPHOTONANALYSIS_ANALYZE_MC_H
void AnalyzeEventWeight(art::Event const &e, var_all &vars)
Definition: analyze_MC.cxx:60
void AnalyzeGeant4(const std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars)
Definition: analyze_MC.cxx:11
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Provides recob::Track data product.
do i e
void AnalyzeMCTruths(std::vector< art::Ptr< simb::MCTruth >> &mcTruthVector, std::vector< art::Ptr< simb::MCParticle >> &mcParticleVector, var_all &vars, para_all &paras)
Definition: analyze_MC.cxx:378
void AnalyzeRecoMCSlices(std::string signal_def, std::vector< PandoraPFParticle > all_PPFPs, std::map< int, art::Ptr< simb::MCParticle >> &MCParticleToTrackIDMap, std::map< art::Ptr< recob::Shower >, art::Ptr< simb::MCParticle > > &showerToMCParticleMap, std::map< art::Ptr< recob::Track >, art::Ptr< simb::MCParticle > > &trackToMCParticleMap, var_all &vars, para_all &paras)
Definition: analyze_MC.cxx:253