Added cut on tracklet dphi
authorekryshen <evgeny.kryshen@cern.ch>
Mon, 31 Mar 2014 07:33:04 +0000 (09:33 +0200)
committerekryshen <evgeny.kryshen@cern.ch>
Mon, 31 Mar 2014 07:33:04 +0000 (09:33 +0200)
PWGCF/Correlations/Base/AliAnalysisTaskCFTree.cxx
PWGCF/Correlations/Base/AliAnalysisTaskCFTree.h

index fc6e4ec..8a53201 100644 (file)
@@ -86,6 +86,7 @@ AliAnalysisTaskCFTree::AliAnalysisTaskCFTree(const char* name) :
   fSharedClusterCut(0.4),
   fCrossedRowsCut(100),
   fFoundFractionCut(0.8),
+  fDphiCut(1.e9),
   fStoreTracks(0),
   fStoreTracklets(0),
   fStoreMuons(0)
@@ -200,6 +201,7 @@ void AliAnalysisTaskCFTree::Exec(Option_t *){
           Float_t phi   = tracklets->GetPhi(i);
           Float_t theta = tracklets->GetTheta(i);
           Float_t dphi  = tracklets->GetDeltaPhi(i);
+          if (TMath::Abs(dphi)>fDphiCut) continue;
           new ((*fTracklets)[fTracklets->GetEntriesFast()]) AliCFParticle(dphi,-TMath::Log(TMath::Tan(theta/2)),phi,0,0);
         }
       }
@@ -326,6 +328,7 @@ void AliAnalysisTaskCFTree::Exec(Option_t *){
           Float_t phi   = tracklets->GetPhi(i);
           Float_t theta = tracklets->GetTheta(i);
           Float_t dphi  = tracklets->GetDeltaPhi(i);
+          if (TMath::Abs(dphi)>fDphiCut) continue;
           AliCFParticle* tracklet = new ((*fTracklets)[fTracklets->GetEntriesFast()]) AliCFParticle(dphi,-TMath::Log(TMath::Tan(theta/2)),phi,0,0,4);
           Int_t label1 = tracklets->GetLabel(i,0);
           Int_t label2 = tracklets->GetLabel(i,1);
index 7bc8ecf..d14b83f 100644 (file)
@@ -44,6 +44,7 @@ class AliAnalysisTaskCFTree : public AliAnalysisTask {
   void SetSharedClusterCut(Float_t val) { fSharedClusterCut = val;  }
   void SetCrossedRowsCut(Int_t val)     { fCrossedRowsCut = val; }
   void SetFoundFractionCut(Float_t val) { fFoundFractionCut = val;  }
+  void SetDphiCut(Float_t val)          { fDphiCut = val; }
   // Switchers for additional data to be stored
   void SetStoreTracks(Bool_t val=kTRUE)    { fStoreTracks    = val; }
   void SetStoreTracklets(Bool_t val=kTRUE) { fStoreTracklets = val; }
@@ -92,11 +93,12 @@ class AliAnalysisTaskCFTree : public AliAnalysisTask {
   Float_t fSharedClusterCut;  // cut on shared clusters
   Int_t   fCrossedRowsCut;    // cut on crossed rows
   Float_t fFoundFractionCut;  // cut on crossed rows/findable clusters
+  Float_t fDphiCut;           // cut on tracklet dphi
   //
   Bool_t fStoreTracks;        // if kTRUE - Barrel tracks will be stored as AliCFParticles
   Bool_t fStoreTracklets;     // if kTRUE - SPD tracklets will be stored as AliCFParticles
   Bool_t fStoreMuons;         // if kTRUE - muon tracks will be stored as AliCFParticles
-  ClassDef(AliAnalysisTaskCFTree,2);
+  ClassDef(AliAnalysisTaskCFTree,3);
 };
 #endif