176 auto hits_list =
e.getHandle< std::vector< recob::Hit > >(
fHitLabel);
179 NHits = hits_list->size();
183 for(
unsigned int i = 0; i < hits_list->size();i++){
194 auto truths_list =
e.getHandle< std::vector< simb::MCTruth > >(
fTruthLabel);
229 if(NMCTruths >= kMaxNumParticles) {
230 std::cerr <<
"ERROR: NMCTruths " << NMCTruths <<
231 " >= kMaxNumParticles " << kMaxNumParticles <<
232 " , will cause a segmentation fault" <<
std::endl;}
237 std::cerr <<
"ERROR: NHits " << NHits <<
239 " , will cause a segmentation fault" <<
std::endl;}
242 for(
unsigned int i = 0; i < truths_list->size();i++){
double E(const int i=0) const
double NuEnergyTruths[kMaxNumParticles]
double Theta() const
angle between incoming and outgoing leptons, in radians
const simb::MCNeutrino & GetNeutrino() const
double Py(const int i=0) const
int LeptonPDGCodeTruths[kMaxNumParticles]
int OriginTruths[kMaxNumParticles]
double avgRMSloop[kMaxNumHits]
float RMS() const
RMS of the hit shape, in tick units.
double DeltaYTruths[kMaxNumParticles]
const simb::MCParticle & Nu() const
simb::Origin_t Origin() const
double zTruths[kMaxNumParticles]
double yTruths[kMaxNumParticles]
double MomentumYTruths[kMaxNumParticles]
int CCNCTruths[kMaxNumParticles]
int ModeTruths[kMaxNumParticles]
double ThetaTruths[kMaxNumParticles]
const simb::MCParticle & Lepton() const
const int kMaxNumParticles
double xTruths[kMaxNumParticles]
int NuPDGCodeTruths[kMaxNumParticles]
double T(const int i=0) const
double EndtTruths[kMaxNumParticles]
double EndxTruths[kMaxNumParticles]
double EndzTruths[kMaxNumParticles]
Detector simulation of raw signals on wires.
double LeptonEnergyTruths[kMaxNumParticles]
double Vx(const int i=0) const
int NParticles[kMaxNumParticles]
double DeltaXTruths[kMaxNumParticles]
double Pz(const int i=0) const
IDNumber_t< Level::Event > EventNumber_t
double Vz(const int i=0) const
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
double MomentumZTruths[kMaxNumParticles]
2D representation of charge deposited in the TDC/wire plane
Event generator information.
double EndyTruths[kMaxNumParticles]
double tTruths[kMaxNumParticles]
Event generator information.
double Vy(const int i=0) const
QTextStream & endl(QTextStream &s)