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