Adding corrections for em et cross checks
[u/mrichter/AliRoot.git] / PWGLF / totEt / AliAnalysisEtTrackMatchCorrections.cxx
index 6eb6993..cf651b1 100644 (file)
@@ -14,7 +14,16 @@ AliAnalysisEtTrackMatchCorrections::AliAnalysisEtTrackMatchCorrections() : TName
     ,fMeanNeutral(0)
     ,fMeanGamma(0)
     ,fMeanSecondary(0)
-{}
+                                                                     // ,fNeutronCorrection(0)
+{
+  //fNeutronCorrection[] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
+  for(int i=0;i<20;i++){
+    fNeutronCorrection[i] = 0.0;
+    fHadronCorrection[i] = 0.0;
+    fKaonCorrection[i] = 0.0;
+    fSecondaryCorrection[i] = 0.0;
+  }
+}
 
 AliAnalysisEtTrackMatchCorrections::AliAnalysisEtTrackMatchCorrections(const TString name, const TF1 &chargedContr, const TF1 &neutralContr, const TF1 &gammaContr, const TF1 &secondaryContr, const TH2F &recoEff,
                                                                       Double_t meanCharged, Double_t meanNeutral, Double_t meanGammas, Double_t meanSecondary) : TNamed(name,name)