From 15f41e568ca895a7828bf7bfdb24a6e3f50a15d5 Mon Sep 17 00:00:00 2001 From: "Ryan@WorkStation" Date: Thu, 16 Dec 2021 15:32:10 -0500 Subject: [PATCH] added e-correction --- Analyzer.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Analyzer.C b/Analyzer.C index ec9669d..785dfec 100644 --- a/Analyzer.C +++ b/Analyzer.C @@ -129,7 +129,12 @@ Bool_t Analyzer::Process(Long64_t entry){ //========= 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); heCal[detID]->Fill(eCal);