2 // Class AliRsnCutEventUtils
4 // It works with ESD and AOD events.
6 // authors: F. Bellini (fbellini@cern.ch)
8 #ifndef ALIRSNCUTEVENTUTILS_H
9 #define ALIRSNCUTEVENTUTILS_H
11 #include "AliRsnCut.h"
14 class AliAnalysisUtils;
16 class AliRsnCutEventUtils : public AliRsnCut {
19 AliRsnCutEventUtils(const char *name = "cutEventUtils", Bool_t rmFirstEvInChunck = kFALSE, Bool_t checkPileUppA2013 = kTRUE);
20 AliRsnCutEventUtils(const AliRsnCutEventUtils ©);
21 AliRsnCutEventUtils &operator=(const AliRsnCutEventUtils ©);
22 virtual ~AliRsnCutEventUtils() {;};
24 void SetRemovePileUppA2013(Bool_t doit = kTRUE) {fCheckPileUppA2013 = doit;}
25 void SetRemoveFirstEvtInChunk(Bool_t doit = kTRUE) {fIsRmFirstEvInChunck = doit;}
26 void SetUseMVPlpSelection(Bool_t useMVPlpSelection = kFALSE) { fUseMVPlpSelection = useMVPlpSelection;}
27 void SetUseVertexSelection2013pA(Bool_t zvtxpA2013 = kTRUE) {fUseVertexSelection2013pA = zvtxpA2013;}
28 Bool_t IsSelected(TObject *object);
29 AliAnalysisUtils* GetAnalysisUtils() { return fUtils; }
30 void SetAnalysisUtils(AliAnalysisUtils* utils){ fUtils = utils; }
31 void SetMinPlpContribMV(Int_t minPlpContribMV) { fMinPlpContribMV = minPlpContribMV;}
32 void SetMinPlpContribSPD(Int_t minPlpContribSPD) { fMinPlpContribSPD = minPlpContribSPD;}
36 Bool_t fIsRmFirstEvInChunck; // if kTRUE, remove the first event in the chunk (pA2013)
37 Bool_t fCheckPileUppA2013; // check and reject pileupped events (pA2013)
38 Bool_t fUseMVPlpSelection; // check for pile-up from multiple vtx
39 Int_t fMinPlpContribMV; // min. n. of MV pile-up contributors
40 Int_t fMinPlpContribSPD; // min. n. of pile-up contributors from SPD
41 Bool_t fUseVertexSelection2013pA;// check and reject vertex of events for pA2013
43 AliAnalysisUtils * fUtils; //pointer to the AliAnalysisUtils object
45 ClassDef(AliRsnCutEventUtils, 2)