]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Update cuts for pp 7 TeV analysis in PartCorr
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Apr 2010 12:45:34 +0000 (12:45 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Apr 2010 12:45:34 +0000 (12:45 +0000)
PWG4/macros/AddTaskPartCorr.C
PWG4/macros/QA/AddTaskCalorimeterQA.C

index 1780707d015e2d2f33ae299719f6e1d184f05112..42b91ad52b5b5e7cdd8bd6d83b3815b643f51f98 100644 (file)
@@ -145,7 +145,16 @@ AliAnalysisTaskParticleCorrelation *AddTaskPartCorr(TString data, TString calori
 
   AliAnaPhoton *anaphoton1 = new AliAnaPhoton();
   anaphoton1->SetDebug(-1); //10 for lots of messages
-  anaphoton1->SetMinPt(0.);
+  if(calorimeter == "PHOS"){
+         anaphoton1->SetNCellCut(1);// At least 2 cells
+         anaphoton1->SetMinPt(0.2);
+  }
+  else {//EMCAL
+         //anaphoton1->SetNCellCut(0);// At least 2 cells
+         anaphoton1->SetMinPt(0.1); // no effect minium EMCAL cut.
+         anaphoton1->SetTimeCut(550,750);// Time window of [550-750] ns 
+  }
+
   anaphoton1->SetMinDistanceToBadChannel(2, 4, 5);
   anaphoton1->SetCaloPID(pid);
   anaphoton1->SetCalorimeter(calorimeter);
@@ -199,7 +208,15 @@ AliAnalysisTaskParticleCorrelation *AddTaskPartCorr(TString data, TString calori
   
   AliAnaPhoton *anaphoton2 = new AliAnaPhoton();
   anaphoton2->SetDebug(-1); //10 for lots of messages
-  anaphoton2->SetMinPt(0.);
+  if(calorimeter == "PHOS"){
+               anaphoton2->SetNCellCut(1);// At least 2 cells
+               anaphoton2->SetMinPt(0.2);
+  }
+  else {//EMCAL
+               //anaphoton2->SetNCellCut(0);// At least 2 cells
+               anaphoton2->SetMinPt(0.1); // no effect minium EMCAL cut.
+               anaphoton2->SetTimeCut(550,750);// Time window of [550-750] ns 
+  }
   anaphoton2->SetCaloPID(pid);
   anaphoton2->SetCalorimeter(calorimeter);
   if(kUseKinematics) anaphoton2->SwitchOnDataMC() ;//Access MC stack and fill more histograms
index e4051e4afa62835e93d5f2a367287ac6b9779cbe..cf5774061024627e589b60f871595436d3db5442 100644 (file)
@@ -72,6 +72,7 @@ AliAnalysisTaskParticleCorrelation *AddTaskCalorimeterQA(TString data, Bool_t kP
   emcalQA->SwitchOffFiducialCut();
   emcalQA->SwitchOffPlotsMaking();
   emcalQA->SwitchOnCalorimetersCorrelation();
+  emcalQA->SetTimeCut(550,750);
   //Set Histrograms bins and ranges
   emcalQA->SetHistoPtRangeAndNBins(0, 10, 100) ;
   emcalQA->SetHistoPhiRangeAndNBins(75*TMath::DegToRad(), 125*TMath::DegToRad(), 100) ;