]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliPWG0Helper.h
removing T00 DPs for FDR
[u/mrichter/AliRoot.git] / PWG0 / AliPWG0Helper.h
1 /* $Id$ */
2
3 #ifndef ALIPWG0HELPER_H
4 #define ALIPWG0HELPER_H
5
6 #include <TObject.h>
7
8 // static helper functions
9
10 class AliESD;
11 class AliESDVertex;
12 class TParticle;
13 class TH3;
14 class AliHeader;
15 class AliStack;
16
17 class AliPWG0Helper : public TObject
18 {
19   public:
20     enum Trigger { kMB1 = 0, kMB2 }; // definition from ALICE-INT-2005-025
21
22     static Bool_t IsEventTriggered(const AliESD* aEsd, Trigger trigger = kMB2);
23     static Bool_t IsEventTriggered(ULong64_t triggerMask, Trigger trigger = kMB2);
24     static Bool_t IsVertexReconstructed(const AliESD* aEsd);
25     static Bool_t IsVertexReconstructed(const AliESDVertex* vtxESD);
26     static Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE);
27
28     static Int_t GetPythiaEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE);
29     static TParticle* FindPrimaryMother(AliStack* stack, Int_t label);
30     static Int_t FindPrimaryMotherLabel(AliStack* stack, Int_t label);
31
32     static void CreateProjections(TH3* hist, Bool_t save = kFALSE);
33     static void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE);
34     static const char* GetAxisTitle(TH3* hist, const char axis);
35
36   protected:
37     ClassDef(AliPWG0Helper, 0)
38
39   private:
40     AliPWG0Helper(const AliPWG0Helper&);
41     AliPWG0Helper& operator=(const AliPWG0Helper&);
42 };
43
44 #endif
45