1 AliRsnCutSet *AddRsnCommonEventCuts(AliAnalysisTaskSE *task=0,Bool_t isPP=kTRUE) {
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);
12 // primary vertex is always used
13 AliRsnCutSet *commonEventCuts = new AliRsnCutSet("commonEventCuts", AliRsnTarget::kEvent);
14 commonEventCuts->AddCut(cutVertex);
15 commonEventCuts->SetCutScheme(cutVertex->GetName());
19 if (gRsnUseMiniPackage) {
20 AliRsnMiniAnalysisTask *taskRsn = (AliRsnMiniAnalysisTask *)task;
21 taskRsn->SetEventCuts(commonEventCuts);
24 return commonEventCuts;