8 #ifndef OpFlashMCTruthAna_H 9 #define OpFlashMCTruthAna_H 1 72 #endif // OpFlashMCTruthAna_H 111 #include "TLorentzVector.h" 112 #include "TVector3.h" 139 fPerEventTree = tfs->make<TTree>(
"PerEventTree",
"PerEventTree");
157 fAnalysisTree = tfs->make<TTree>(
"AnalysisTree",
"AnalysisTree");
218 fNTruths = TruthHandle->at(0).NParticles();
221 std::cout<<
"Size of truth collection : " << TruthHandle->size()<<std::endl;
222 std::cout<<
"We found " <<
fNTruths<<
" truth particles and " <<
fNFlashes<<
" flashes" <<std::endl;
225 for(
int iPart=0; iPart!=
fNTruths; ++iPart)
241 for(
unsigned int i = 0; i < FlashHandle->size(); ++i)
double E(const int i=0) const
std::string fFlashInputModule
double FastToTotal() const
Float_t fDistFlashVertexNorm
void analyze(const art::Event &)
Float_t fFlashFastToTotal
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
std::vector< double > WireCenters() const
double T(const int i=0) const
EDAnalyzer(Table< Config > const &config)
std::vector< double > WireWidths() const
double Vx(const int i=0) const
Float_t fDistFlashCenterNorm
OpFlashMCTruthAna(const fhicl::ParameterSet &)
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
double Vz(const int i=0) const
EventNumber_t event() const
std::string fTruthInputModule
double Vy(const int i=0) const
art framework interface to geometry description
virtual ~OpFlashMCTruthAna()