Adding pt and eta control plots, increasing ClassDef version
[u/mrichter/AliRoot.git] / PWG0 / esdTrackCuts / 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->SetRequireTPCRefit(kTRUE);
16
17   esdTrackCuts->SetMinNsigmaToVertex(3);
18   esdTrackCuts->SetRequireSigmaToVertex(kTRUE);
19   esdTrackCuts->SetAcceptKingDaughters(kFALSE);
20
21   return esdTrackCuts;
22 }