void AliAnalysisEtReconstructedPhos::CreateHistograms()
{ // add some extra histograms & objects to the ones from base class
+ if(!fSelector){
+ cout<<__FILE__<<" "<<"Creating new fSelector"<<endl;
+ fSelector = new AliAnalysisEtSelectorPhos(fCuts);
+ }
AliAnalysisEtReconstructed::CreateHistograms();
}
+
+Double_t AliAnalysisEtReconstructedPhos::GetCorrectionModification(const AliESDCaloCluster& cluster,Int_t nonLinCorr, Int_t effCorr, Int_t cent){//nonLinCorr 0 = nominal 1 = high -1 = low, effCorr 0 = nominal 1 = high -1 = low
+ Double_t factor = 1.0;
+ if(nonLinCorr!=0){
+ if(nonLinCorr==1){//high bound on nonlinearity
+ factor *=1.05;
+ }
+ else{//nonLinCorr==-1
+ factor *=0.95;
+ }
+ }
+ if(effCorr!=0){
+ if(effCorr==1){//high bound
+ factor *=1.005;
+ }
+ else{//low bound
+ factor *=0.995;
+ }
+ if(cent<0){//this condition will never be met but it will stop a compiler warning that results in Coverity sending me an email about once every two weeks.
+ Double_t E = cluster.E();
+ factor = 1.0*E;
+ }
+ }
+ return factor;
+}