Adding PiKP-only correction factor
authorcnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Mar 2012 19:05:04 +0000 (19:05 +0000)
committercnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Mar 2012 19:05:04 +0000 (19:05 +0000)
PWGLF/totEt/AliAnalysisHadEtCorrections.cxx

index e72ac22..61b37ff 100644 (file)
@@ -196,10 +196,23 @@ Float_t AliAnalysisHadEtCorrections::GetConstantCorrections(Bool_t totEt, Float_
 
   //TString *type = new TString(mytype);
 
-  if(type.Contains("Full")) acceptance = fAcceptanceCorrectionFull;
+  if(type.Contains("Full") || type.Contains("PiKP")) acceptance = fAcceptanceCorrectionFull;
   if(type.Contains("EMCAL")) acceptance = fAcceptanceCorrectionEMCAL;
   if(type.Contains("PHOS")) acceptance = fAcceptanceCorrectionPHOS;
 
+  if(type.Contains("PiKP")){
+    if(ptcut>0.12){ptcorr = fpTcutCorrectionTPC;}
+    else{ptcorr = fpTcutCorrectionITS;}
+    if(type.Contains("High")){
+      if(ptcut>0.12){ptcorr = ffpTcutCorrectionTPCHigh;}
+      else{ptcorr = ffpTcutCorrectionITSHigh;}
+    }
+    if(type.Contains("Low")){
+      if(ptcut>0.12){ptcorr = ffpTcutCorrectionTPCLow;}
+      else{ptcorr = ffpTcutCorrectionITSLow;}
+    }
+  }
+
   if(type.Contains("High")){//high bound
     if(totEt) neutral = fNotHadronicCorrectionHigh;
     else{neutral = fNeutralCorrectionHigh;}