15baf3fe01615dfdd9a5a525d9301f32054c8f88
[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,1e99);
15   Printf("WARNING: no cut on 1/pt");
16   esdTrackCuts->SetRequireTPCRefit(kTRUE);
17
18   esdTrackCuts->SetMinNsigmaToVertex(3);
19   esdTrackCuts->SetRequireSigmaToVertex(kTRUE);
20   esdTrackCuts->SetAcceptKingDaughters(kFALSE);
21
22   return esdTrackCuts;
23 }