added e-correction

This commit is contained in:
Ryan Tang 2021-12-16 15:32:10 -05:00
parent ba8c8d4657
commit 15f41e568c

View File

@ -129,7 +129,12 @@ Bool_t Analyzer::Process(Long64_t entry){
//========= apply correction //========= apply correction
double eCal = e[detID]; double eCal = 0 ;
int order = (int) eCorr[detID].size();
for( int i = 0; i < order ; i++){
eCal += eCorr[detID][i] * TMath::Power(e[detID], i);
}
heCalVID->Fill( detID, eCal); heCalVID->Fill( detID, eCal);
heCal[detID]->Fill(eCal); heCal[detID]->Fill(eCal);