Skip to content

Commit 1acf969

Browse files
Update analyzer
1 parent 2ea07cd commit 1acf969

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

sbndcode/LightPropagationCorrection/LightPropagationCorrectionAna_module.cc

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class LightPropagationCorrectionAna : public art::EDAnalyzer {
5353
TTree* fTree; ///< The TTree for storing event information
5454

5555
double fOpFlashT0;
56-
double fUpstreamTime_lightonly;
57-
double fUpstreamTime_tpczcorr;
58-
double fUpstreamTime_propcorr_tpczcorr;
56+
double fNuToFLight;
57+
double fNuToFCharge;
58+
double fOpFlashT0Corrected;
5959

6060
unsigned int _eventID;
6161
unsigned int _runID;
@@ -73,9 +73,9 @@ LightPropagationCorrectionAna::LightPropagationCorrectionAna(fhicl::ParameterSet
7373
void LightPropagationCorrectionAna::analyze(art::Event const& e)
7474
{
7575
fOpFlashT0=-99999.;
76-
fUpstreamTime_lightonly=-99999.;
77-
fUpstreamTime_tpczcorr=-99999.;
78-
fUpstreamTime_propcorr_tpczcorr=-99999.;
76+
fNuToFLight=-99999.;
77+
fNuToFCharge=-99999.;
78+
fOpFlashT0Corrected=-99999.;
7979

8080
_eventID = -1;
8181
_runID = -1;
@@ -118,14 +118,14 @@ void LightPropagationCorrectionAna::analyze(art::Event const& e)
118118

119119
std::cout << " Corrected flash time is " << correctedopflash->OpFlashT0 << std::endl;
120120
std::cout << " Associated with slice id " << slice_v[0]->ID() << std::endl;
121-
std::cout << "Corrected flash time light only " << correctedopflash->UpstreamTime_lightonly << std::endl;
122-
std::cout << "Corrected flash time tpc z corr " << correctedopflash->UpstreamTime_tpczcorr << std::endl;
123-
std::cout << "Corrected flash time prop corr tpc z corr " << correctedopflash->UpstreamTime_propcorr_tpczcorr << std::endl;
121+
std::cout << "Corrected flash time light only " << correctedopflash->NuToFLight << std::endl;
122+
std::cout << "Corrected flash time tpc z corr " << correctedopflash->NuToFCharge << std::endl;
123+
std::cout << "Corrected flash time prop corr tpc z corr " << correctedopflash->OpFlashT0Corrected << std::endl;
124124

125125
fOpFlashT0 = correctedopflash->OpFlashT0;
126-
fUpstreamTime_lightonly = correctedopflash->UpstreamTime_lightonly;
127-
fUpstreamTime_tpczcorr = correctedopflash->UpstreamTime_tpczcorr;
128-
fUpstreamTime_propcorr_tpczcorr = correctedopflash->UpstreamTime_propcorr_tpczcorr;
126+
fNuToFLight = correctedopflash->NuToFLight;
127+
fNuToFCharge = correctedopflash->NuToFCharge;
128+
fOpFlashT0Corrected = correctedopflash->OpFlashT0Corrected;
129129
fTree->Fill();
130130
}
131131
}
@@ -141,9 +141,9 @@ void LightPropagationCorrectionAna::beginJob()
141141
fTree->Branch("subrunID", &_subrunID, "subrunID/i");
142142

143143
fTree->Branch("fOpFlashT0", &fOpFlashT0, "OpFlashT0/d");
144-
fTree->Branch("fUpstreamTime_lightonly", &fUpstreamTime_lightonly, "UpstreamTime_lightonly/d");
145-
fTree->Branch("fUpstreamTime_tpczcorr", &fUpstreamTime_tpczcorr, "UpstreamTime_tpczcorr/d");
146-
fTree->Branch("fUpstreamTime_propcorr_tpczcorr", &fUpstreamTime_propcorr_tpczcorr, "UpstreamTime_propcorr_tpczcorr/d");
144+
fTree->Branch("fNuToFLight", &fNuToFLight, "NuToFLight/d");
145+
fTree->Branch("fNuToFCharge", &fNuToFCharge, "NuToFCharge/d");
146+
fTree->Branch("fOpFlashT0Corrected", &fOpFlashT0Corrected, "OpFlashT0Corrected/d");
147147

148148
}
149149

0 commit comments

Comments
 (0)