new cuts and proper TPC+ITS observables selection
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 21:24:29 +0000 (21:24 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Nov 2010 21:24:29 +0000 (21:24 +0000)
PWG0/dNdPt/AlidNdPtCutAnalysisPbPb.cxx
PWG0/dNdPt/macros/CreatedNdPtTrackCuts.C

index e9747de..9d9306c 100644 (file)
@@ -348,15 +348,23 @@ void AlidNdPtCutAnalysisPbPb::FillHistograms(AliESDtrack *const esdTrack, AliSta
   Float_t pt = esdTrack->Pt();\r
   Float_t eta = esdTrack->Eta();\r
   Float_t phi = esdTrack->Phi();\r
-  //Int_t nClust = esdTrack->GetTPCclusters(0);\r
-  Int_t nClust = esdTrack->GetTPCNclsIter1();\r
-  Int_t nFindableClust = esdTrack->GetTPCNclsF();\r
+\r
+  Int_t nClust = 0;\r
+  if(GetAnalysisMode() == AlidNdPtHelper::kTPC) { \r
+    nClust = esdTrack->GetTPCNclsIter1();\r
+  } else {\r
+    nClust = esdTrack->GetTPCclusters(0);\r
+  }\r
 \r
   Float_t chi2PerCluster = 0.;\r
-  //if(nClust>0.) chi2PerCluster = esdTrack->GetTPCchi2()/Float_t(nClust);\r
-  if(nClust>0.) chi2PerCluster = esdTrack->GetTPCchi2Iter1()/Float_t(nClust);\r
+  if(GetAnalysisMode() == AlidNdPtHelper::kTPC) { \r
+    if(nClust>0.) chi2PerCluster = esdTrack->GetTPCchi2Iter1()/Float_t(nClust);\r
+  } else {\r
+    chi2PerCluster = esdTrack->GetTPCchi2()/Float_t(nClust);\r
+  }\r
 \r
   Float_t clustPerFindClust = 0.;\r
+  Int_t nFindableClust = esdTrack->GetTPCNclsF();\r
   if(nFindableClust>0.) clustPerFindClust = Float_t(nClust)/nFindableClust;\r
 \r
   Float_t b[2], bCov[3];\r
index d4bae3a..6ce25e4 100644 (file)
@@ -1597,6 +1597,28 @@ AliESDtrackCuts* CreatedNdPtTrackCuts(Int_t cutMode=1, Bool_t fieldOn = kTRUE, B
     TString tag = "TPC refit required - for cut studies";
   }
 
+  // TPC
+  // for cut studies
+  if (cutMode == 153) 
+  {
+    //
+    // TPC
+    //
+    esdTrackCuts->SetRequireTPCRefit(kFALSE);
+    esdTrackCuts->SetRequireITSRefit(kFALSE);
+    esdTrackCuts->SetRequireTPCStandAlone(kTRUE);
+    esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
+    //
+    // ITS
+    //
+    //esdTrackCuts->SetRequireITSRefit(kTRUE);
+    //esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,AliESDtrackCuts::kAny);
+    //
+    
+    TString tag = "TPC stand alone - for cut studies";
+  }
+
+