Definition at line 31 of file OpFlashMCTruthAna_module.cc.
opdet::OpFlashMCTruthAna::OpFlashMCTruthAna |
( |
const fhicl::ParameterSet & |
pset | ) |
|
Definition at line 88 of file OpFlashMCTruthAna_module.cc.
98 art::ServiceHandle<art::TFileService const>
tfs;
100 fPerEventTree = tfs->make<TTree>(
"PerEventTree",
"PerEventTree");
118 fAnalysisTree = tfs->make<TTree>(
"AnalysisTree",
"AnalysisTree");
std::string fFlashInputModule
Float_t fFlashFastToTotal
art::ServiceHandle< art::TFileService > tfs
std::string fTruthInputModule
void opdet::OpFlashMCTruthAna::analyze |
( |
const art::Event & |
evt | ) |
|
Definition at line 155 of file OpFlashMCTruthAna_module.cc.
159 art::Handle< std::vector< recob::OpFlash > > FlashHandle;
160 art::Handle< std::vector< simb::MCTruth > > TruthHandle;
168 fNTruths = TruthHandle->at(0).NParticles();
171 std::cout<<
"Size of truth collection : " << TruthHandle->size()<<std::endl;
175 for(
int iPart=0; iPart!=
fNTruths; ++iPart)
177 const simb::MCParticle ThisPart = TruthHandle->at(0).GetParticle(iPart);
186 fCenterX = (ThisPart.Vx(0) + ThisPart.EndX())/2.;
187 fCenterY = (ThisPart.Vy(0) + ThisPart.EndY())/2.;
188 fCenterZ = (ThisPart.Vz(0) + ThisPart.EndZ())/2.;
191 for(
unsigned int i = 0; i < FlashHandle->size(); ++i)
195 art::Ptr< recob::OpFlash > TheFlashPtr(FlashHandle, i);
201 fFlashY = TheFlashPtr->YCenter();
202 fFlashZ = TheFlashPtr->ZCenter();
203 fFlashU = TheFlashPtr->WireCenters().at(0);
204 fFlashV = TheFlashPtr->WireCenters().at(1);
std::string fFlashInputModule
Float_t fDistFlashVertexNorm
Float_t fFlashFastToTotal
Float_t fDistFlashCenterNorm
std::string fTruthInputModule
BEGIN_PROLOG could also be cout
TTree* opdet::OpFlashMCTruthAna::fAnalysisTree |
|
private |
Float_t opdet::OpFlashMCTruthAna::fCenterX |
|
private |
Float_t opdet::OpFlashMCTruthAna::fCenterY |
|
private |
Float_t opdet::OpFlashMCTruthAna::fCenterZ |
|
private |
Float_t opdet::OpFlashMCTruthAna::fDistFlashCenter |
|
private |
Float_t opdet::OpFlashMCTruthAna::fDistFlashCenterNorm |
|
private |
Float_t opdet::OpFlashMCTruthAna::fDistFlashVertex |
|
private |
Float_t opdet::OpFlashMCTruthAna::fDistFlashVertexNorm |
|
private |
Int_t opdet::OpFlashMCTruthAna::fEventID |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashFastToTotal |
|
private |
std::string opdet::OpFlashMCTruthAna::fFlashInputModule |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashPE |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashT |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashU |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashV |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashWidthU |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashWidthV |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashWidthY |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashWidthZ |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashY |
|
private |
Float_t opdet::OpFlashMCTruthAna::fFlashZ |
|
private |
Int_t opdet::OpFlashMCTruthAna::fNFlashes |
|
private |
Int_t opdet::OpFlashMCTruthAna::fNTruths |
|
private |
TTree* opdet::OpFlashMCTruthAna::fPerEventTree |
|
private |
Float_t opdet::OpFlashMCTruthAna::fTrueE |
|
private |
Int_t opdet::OpFlashMCTruthAna::fTruePDG |
|
private |
std::string opdet::OpFlashMCTruthAna::fTruthInputModule |
|
private |
Float_t opdet::OpFlashMCTruthAna::fVertexT |
|
private |
Float_t opdet::OpFlashMCTruthAna::fVertexX |
|
private |
Float_t opdet::OpFlashMCTruthAna::fVertexY |
|
private |
Float_t opdet::OpFlashMCTruthAna::fVertexZ |
|
private |
The documentation for this class was generated from the following file: