36 std::cout <<
"Total N cosmics: " << fNCosmicEvents << std::endl;
37 std::cout <<
"Total N neutrinos: " << fNNeutrinoEvents << std::endl;
38 std::cout <<
"Total neutrino POT: " << fNeutrinoPOT << std::endl;
41 double neutrino_per_pot = 0.;
42 if (fNeutrinoPOT > 1
e-3 && fNNeutrinoEvents > 0) {
43 neutrino_per_pot = fNNeutrinoEvents / (fNeutrinoPOT);
46 std::cout <<
"Neutrino per POT: " << neutrino_per_pot << std::endl;
49 double cosmic_per_pot = (1./fPotPerReadout) - neutrino_per_pot;
51 std::cout <<
"Cosmic per POT: " << cosmic_per_pot << std::endl;
54 double cosmic_pot = fNCosmicEvents / cosmic_per_pot;
56 std::cout <<
"Cosmic POT: " << cosmic_pot << std::endl;
59 return goal_pot / cosmic_pot;
63 if (fNeutrinoPOT < 1
e-3 || fNNeutrinoEvents == 0)
return 0;
65 return goal_pot / (fNeutrinoPOT);
process_name standard_reco_uboone fcl
double ScaleCosmic(double goal_pot) const
unsigned fNNeutrinoEvents
void AddNeutrinoEvent(const event::Event &event)
void AddCosmicEvent(const event::Event &event)
void AddCosmicFile(const FileMeta &meta)
The standard subrun data definition.
The standard event data definition.
void AddNeutrinoSubRun(const SubRun &subrun)
void Initialize(const fhicl::ParameterSet &fcl)
double ScaleNeutrino(double goal_pot) const
BEGIN_PROLOG could also be cout