28 #include "art_root_io/TFileDirectory.h" 29 #include "art_root_io/TFileService.h" 127 float maxNH = 5000.0;
132 float maxADC = 500.0e3;
145 "True energy spectra;true energy [MeV];",
150 "Total number of triggers issued;true energy [MeV];",
152 fTrigEff = tfs->make<TH1F>(
"TrigEff",
153 "Trigger efficiency;true energy [MeV];",
158 "Number of reco hits per true energy;true energy [MeV];NHits",
160 NbinsNH, minNH, maxNH);
164 "Summed ADC over all reco hits per true energy;true energy [MeV];Summed ADC",
166 NbinsADC, minADC, maxADC);
170 "Probability of spliting a TP into 2 or more per true energy;true energy [MeV];",
181 "Number of MCTruths per art::event;# of MCTruths;",
185 fCCNC = tfs->make<TH1F>(
"CCNC",
190 fOrigin = tfs->make<TH1F>(
"Origin",
191 "Neutrino origin;origin type;",
195 fNuPDG = tfs->make<TH1F>(
"NuPDG",
196 "Neutrino PDG code;pdg code;",
252 if(truths_list->size() == 1) {
255 float SummedADC = 0.0;
256 for(
unsigned int i = 0; i < hits_list->size();i++){
268 double NuE = 1000.0*mc_nu.
Nu().
E();
281 std::cerr <<
"\n\n\nWARNING: Number of MCTruths != 1\n\n\n\n";
double E(const int i=0) const
const simb::MCNeutrino & GetNeutrino() const
Handle< PROD > getHandle(SelectorBase const &) const
const simb::MCParticle & Nu() const
simb::Origin_t Origin() const
void reconfigure(fhicl::ParameterSet const &p)
EDAnalyzer(fhicl::ParameterSet const &pset)
MakeSNeTProfileHistos(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
TH1F * fNuPDG
mc_neutrino->Nu()->PdgCode()
TH1F * fTrigEff_numerator
how many times a trigger was issued per true event energy
TH1F * fTrigEff
trigger efficiency per true event energy (fTrigEff_numerator/fEnergySpec)
Detector simulation of raw signals on wires.
Declaration of signal hit object.
TH1F * fNMCTruths
number of MCTruths per art::event
TH2F * fSumADCVsEnergy
summed ADC for all reco hits per true event energy
MakeSNeTProfileHistos & operator=(MakeSNeTProfileHistos const &)=delete
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
TH1F * fTPSplitProb
probability of splitting a trigger primitive into two (or more) TPs per true event energy ...
std::string fTruthLabel
label for process that made the MCTruth info
2D representation of charge deposited in the TDC/wire plane
TH2F * fNHitsVsEnergy
number of reconstructed hits per true event energy
Event generator information.
TH1F * fEnergySpec
1D event energy spectrum (used only for backgrounds)
Event generator information.
TH1F * fCCNC
CCNC for each MCTruth.
std::string fHitLabel
label for process that made the reco hits
void analyze(art::Event const &e) override
TH1F * fOrigin
mctruth->Origin()