added e-correction
This commit is contained in:
parent
ba8c8d4657
commit
15f41e568c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user