]>
Commit | Line | Data |
---|---|---|
1 | void runV0CutVariations( | |
2 | Double_t cmin, Double_t cmax, | |
3 | Bool_t isMC=kFALSE, Bool_t selectNonInjected=kFALSE, | |
4 | TString fname) { | |
5 | TProof::Open(""); | |
6 | ||
7 | TChain *ch=new TChain("chain"); | |
8 | ch->SetProof(); | |
9 | ||
10 | gProof->Load("AliV0CutVariations.C+"); | |
11 | AliV0CutVariations *selector=new AliV0CutVariations(); | |
12 | selector->SetCentrality(cmin,cmax); | |
13 | selector->SetMC(isMC); | |
14 | selector->SetSelectNonInjected(selectNonInjected); | |
15 | ||
16 | if (isMC) { | |
17 | fname += "/PWGLFExtractPerformanceV0_PP_MC/fTree"; | |
18 | } else { | |
19 | fname += "/PWGLFExtractV0_PP/fTree"; | |
20 | } | |
21 | ||
22 | cout<<"Running over "<<fname.Data()<<endl; | |
23 | ||
24 | ch->Add(fname.Data()); | |
25 | ch->Process(selector); | |
26 | } |