]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliPWG0Helper.h
enable branches of new esd
[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 TParticle;
12 class TH3;
13
14 class AliPWG0Helper : public TObject
15 {
16   public:
17     enum Trigger { kMB1 = 0, kMB2 }; // definition from ALICE-INT-2005-025
18
19     static Bool_t IsEventTriggered(AliESD* aEsd, Trigger trigger = kMB2);
20     static Bool_t IsVertexReconstructed(AliESD* aEsd);
21     static Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE);
22
23     static void CreateProjections(TH3* hist, Bool_t save = kFALSE);
24     static void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE);
25     static const char* GetAxisTitle(TH3* hist, const char axis);
26     
27   protected:
28     ClassDef(AliPWG0Helper, 0)
29
30   private:
31     AliPWG0Helper(const AliPWG0Helper&);
32     AliPWG0Helper& operator=(const AliPWG0Helper&);
33 };
34
35 #endif
36