]>
Commit | Line | Data |
---|---|---|
900e06e4 | 1 | AliRsnCutSet *AddRsnCommonEventCuts(AliAnalysisTaskSE *task=0,Bool_t isPP=kTRUE) { |
2 | ||
3 | // return 0; | |
4 | // primary vertex: | |
5 | // - 2nd argument --> |Vz| range | |
6 | // - 3rd argument --> minimum required number of contributors | |
7 | // - 4th argument --> tells if TPC stand-alone vertexes must be accepted | |
8 | // we switch on the check for pileup | |
9 | AliRsnCutPrimaryVertex *cutVertex = new AliRsnCutPrimaryVertex("cutVertex", 10.0, 0, kFALSE); | |
10 | if (isPP) cutVertex->SetCheckPileUp(kTRUE); | |
11 | ||
12 | // primary vertex is always used | |
13 | AliRsnCutSet *commonEventCuts = new AliRsnCutSet("commonEventCuts", AliRsnTarget::kEvent); | |
14 | commonEventCuts->AddCut(cutVertex); | |
15 | commonEventCuts->SetCutScheme(cutVertex->GetName()); | |
16 | ||
17 | // if task is mini | |
547e2d97 | 18 | Bool_t valid; |
19 | Int_t isRsnMini = AliAnalysisManager::GetGlobalInt("rsnUseMiniPackage",valid); | |
20 | if (isRsnMini) { | |
900e06e4 | 21 | AliRsnMiniAnalysisTask *taskRsn = (AliRsnMiniAnalysisTask *)task; |
22 | taskRsn->SetEventCuts(commonEventCuts); | |
23 | } | |
900e06e4 | 24 | return commonEventCuts; |
25 | } |