23 #include "art_root_io/TFileDirectory.h" 24 #include "art_root_io/TFileService.h" 133 fNTuple = tfs->make<TTree>(
"SupernovaAna",
"Supernonva analysis tree");
179 NHits = hits_list->size();
183 for(
unsigned int i = 0; i < hits_list->size();i++){
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]
SupernovaAna & operator=(SupernovaAna const &)=delete
Handle< PROD > getHandle(SelectorBase const &) const
float RMS() const
RMS of the hit shape, in tick units.
double DeltaYTruths[kMaxNumParticles]
const simb::MCParticle & Nu() const
simb::Origin_t Origin() const
SupernovaAna(fhicl::ParameterSet const &p)
double zTruths[kMaxNumParticles]
EDAnalyzer(fhicl::ParameterSet const &pset)
double yTruths[kMaxNumParticles]
double MomentumYTruths[kMaxNumParticles]
int CCNCTruths[kMaxNumParticles]
int ModeTruths[kMaxNumParticles]
double ThetaTruths[kMaxNumParticles]
const simb::MCParticle & Lepton() const
#define DEFINE_ART_MODULE(klass)
const int kMaxNumParticles
void reconfigure(fhicl::ParameterSet const &p)
double xTruths[kMaxNumParticles]
T get(std::string const &key) const
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
Declaration of signal hit object.
int NParticles[kMaxNumParticles]
void analyze(art::Event const &e) override
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)
EventNumber_t event() const
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)