merging post-CVS changes into SVN:
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / CreateCuts.C
1 /* $Id$ */
2
3 // this macro creates the track and event cuts used in this analysis
4
5 AliESDtrackCuts* CreateTrackCuts(Bool_t hists = kTRUE)
6 {
7   AliESDtrackCuts* esdTrackCuts = new AliESDtrackCuts("AliESDtrackCuts");
8
9   if (hists)
10     esdTrackCuts->DefineHistograms(1);
11
12   esdTrackCuts->SetMinNClustersTPC(50);
13   esdTrackCuts->SetMaxChi2PerClusterTPC(3.5);
14   esdTrackCuts->SetMaxCovDiagonalElements(2,2,0.5,0.5,2);
15   //esdTrackCuts->SetMaxCovDiagonalElements(2,2,0.5,0.5,1e99);
16   //Printf("WARNING: no cut on 1/pt");
17   esdTrackCuts->SetRequireTPCRefit(kTRUE);
18
19   esdTrackCuts->SetMinNsigmaToVertex(3);
20   esdTrackCuts->SetRequireSigmaToVertex(kTRUE);
21   esdTrackCuts->SetAcceptKingDaughters(kFALSE);
22
23   return esdTrackCuts;
24 }