]>
Commit | Line | Data |
---|---|---|
77c42b43 | 1 | #ifndef ALIANALYSISUTILS_H |
2 | #define ALIANALYSISUTILS_H | |
3 | ||
4 | ////////////////////////////////////////////////////////////////////////////// | |
5 | // // | |
6 | // Class with functions useful for different analyses // | |
7 | // - vertex selection // | |
8 | // * 2013 pA default cuts // | |
9 | // - identification of the fist event of the chunk // | |
10 | // // | |
11 | ////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #include "TObject.h" | |
14 | ||
15 | class AliVEvent; | |
16 | ||
17 | class AliAnalysisUtils : public TObject { | |
18 | ||
19 | public: | |
20 | ||
21 | AliAnalysisUtils(); | |
22 | virtual ~AliAnalysisUtils(){}; | |
23 | ||
24 | Bool_t IsVertexSelected2013pA(AliVEvent *event); | |
25 | Bool_t IsFirstEventInChunk(AliVEvent *event); | |
26 | ||
27 | void SetMinVtxContr(Int_t contr=1) {fMinVtxContr=contr;} | |
28 | void SetMaxVtxZ(Float_t z=1e6) {fMaxVtxZ=z;} | |
29 | void SetCutOnZVertexSPD(Bool_t iscut=true) { fCutOnZVertexSPD = iscut; } | |
30 | ||
31 | private: | |
32 | ||
33 | Bool_t fisAOD; // flag for AOD:1 or ESD:0 | |
34 | ||
35 | Int_t fMinVtxContr; // minimum vertex contributors | |
36 | Float_t fMaxVtxZ; // maximum |z| of primary vertex | |
37 | ||
38 | Bool_t fCutOnZVertexSPD; // 0: no cut, 1: |zvtx-SPD - zvtx-TPC|<0.5cm | |
39 | ||
40 | ClassDef(AliAnalysisUtils,0) // base helper class | |
41 | }; | |
42 | #endif | |
43 |