@@ -226,7 +226,7 @@ class CAFMaker : public art::EDProducer {
226226 double fTotalEvents ;
227227 double fBlindEvents ;
228228 double fPrescaleEvents ;
229- double fNGenEvents ;
229+ double fTotalGenEvents ;
230230 std::vector<caf::SRBNBInfo> fBNBInfo ; // /< Store detailed BNB info to save into the first StandardRecord of the output file
231231 std::vector<caf::SRNuMIInfo> fNuMIInfo ; // /< Store detailed NuMI info to save into the first StandardRecord of the output file
232232 std::map<unsigned int ,sbn::BNBSpillInfo> fBNBInfoEventMap ; // /< Store detailed BNB info to save for the particular spills of events
@@ -869,7 +869,7 @@ void CAFMaker::beginRun(art::Run& run) {
869869 int max_events = gen_config->get <int >(" source.maxEvents" );
870870 std::string module_type = gen_config->get <std::string>(" source.module_type" );
871871 if (module_type == " EmptyEvent" ) {
872- fNGenEvents += max_events;
872+ fTotalGenEvents += max_events;
873873 }
874874 }
875875 }
@@ -1228,7 +1228,7 @@ void CAFMaker::InitializeOutfiles()
12281228 fTotalEvents = 0 ;
12291229 fBlindEvents = 0 ;
12301230 fPrescaleEvents = 0 ;
1231- fNGenEvents = 0 ;
1231+ fTotalGenEvents = 0 ;
12321232 fIndexInFile = SRHeader::NoSourceIndex;
12331233 fFirstInSubRun = false ;
12341234 fFirstBlindInSubRun = false ;
@@ -2791,7 +2791,7 @@ void CAFMaker::endSubRun(art::SubRun& sr) {
27912791
27922792 TH1* hPOT = new TH1D (" TotalPOT" , " TotalPOT;; POT" , 1 , 0 , 1 );
27932793 TH1* hEvents = new TH1D (" TotalEvents" , " TotalEvents;; Events" , 1 , 0 , 1 );
2794- TH1* hGen = new TH1D (" NGenEvents " , " NGenEvents ;; Events" , 1 , 0 , 1 );
2794+ TH1* hGen = new TH1D (" TotalGenEvents " , " TotalGenEvents ;; Events" , 1 , 0 , 1 );
27952795
27962796 if (isBlindPOT) {
27972797 hPOT->Fill (0.5 ,fTotalPOT *(1 -(1 /fParams .PrescaleFactor ()))*GetBlindPOTScale ());
@@ -2803,7 +2803,7 @@ void CAFMaker::endSubRun(art::SubRun& sr) {
28032803 hPOT->Fill (0.5 ,fTotalPOT );
28042804 }
28052805 hEvents->Fill (0.5 ,fTotalEvents );
2806- hGen->Fill (0.5 ,fNGenEvents );
2806+ hGen->Fill (0.5 ,fTotalGenEvents );
28072807
28082808 hPOT->Write ();
28092809 hEvents->Write ();
0 commit comments