including Eta and Pt cuts for AOD analysis (for ESDs this is done in ESDTrackCuts)
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2012 15:07:23 +0000 (15:07 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2012 15:07:23 +0000 (15:07 +0000)
PWGCF/EBYE/NetParticle/AliAnalysisNetParticleDistribution.cxx
PWGCF/EBYE/NetParticle/macros/AddTaskNetParticle.C

index 9737878..7f8443b 100644 (file)
@@ -379,6 +379,10 @@ Int_t AliAnalysisNetParticleDistribution::ProcessAODTracks() {
     // -- Check if accepted
     if(!track->TestFilterBit(fAODtrackCutBit)) 
       continue;
+    
+    // -- Check if in pT and eta range (is done in ESDTrackCuts for ESDs)
+    if(!(track->Pt() > fPtRange[0] && track->Pt() < fPtRange[1] && TMath::Abs(track->Eta()) <= fEtaMax))
+      continue;
 
     // -- Check if accepted in rapidity window
     Double_t yP;
index dffadfb..28d97fb 100644 (file)
@@ -86,9 +86,9 @@ AliAnalysisTask *AddTaskNetParticle(const Char_t * name = "jthaeder_NetProton",
   else if (sName.Contains("Kaon")) {
     task->SetParticleSpecies(AliPID::kKaon);
     task->SetControlParticleSpecies(3122, kTRUE, "Lambda");  /// maybe something else ...
-    minPt    = 0.2;    maxPt    = 0.4;
+    minPt    = 0.4;    maxPt    = 0.8;
     minPtEff = 0.1;    maxPtEff = 2.5;
-    minPtForTOF = 0.8;
+    minPtForTOF = 0.5;
   }
   else {
     Error("AddTaskNetParticle", "Unknown Particle type.");
@@ -127,8 +127,8 @@ AliAnalysisTask *AddTaskNetParticle(const Char_t * name = "jthaeder_NetProton",
   task->SetNSigmaMaxCdd(3.); 
   task->SetNSigmaMaxCzz(3.); 
 
-  task->SetNSigmaMaxTPC(2.5);
-  task->SetNSigmaMaxTOF(2.5);
+  task->SetNSigmaMaxTPC(3);
+  task->SetNSigmaMaxTOF(3);
   task->SetMinPtForTOFRequired(minPtForTOF);
 
   // -- Set analysis ranges