o) making selector proof ready
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / makeCorrection2.C
1 //
2 // Script to make correction maps for dndeta measurements using the
3 // dNdEtaCorrection class.
4 //
5 // implementation with TSelector
6 //
7
8 #include "../CreateESDChain.C"
9
10 void makeCorrection2(Char_t* dataDir, Int_t nRuns=20)
11 {
12   gSystem->Load("libPWG0base");
13
14   TChain* chain = CreateESDChain(dataDir, nRuns);
15
16   fEsdTrackCuts = new AliESDtrackCuts();
17   fEsdTrackCuts->DefineHistograms(1);
18
19   fEsdTrackCuts->SetMinNClustersTPC(50);
20   fEsdTrackCuts->SetMaxChi2PerClusterTPC(3.5);
21   fEsdTrackCuts->SetMaxCovDiagonalElements(2,2,0.5,0.5,2);
22   fEsdTrackCuts->SetRequireTPCRefit(kTRUE);
23
24   fEsdTrackCuts->SetMinNsigmaToVertex(3);
25   fEsdTrackCuts->SetAcceptKingDaughters(kFALSE);
26
27   chain->GetUserInfo()->Add(fEsdTrackCuts);
28
29   chain->Process("AlidNdEtaCorrectionSelector.cxx+");
30 }