* Changed the trigger bias correction scheme (added MB->INEL, MB->NSD and MB->ND)
[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 #include <AliHeader.h>
9
10 // static helper functions
11
12 class AliESD;
13 class TParticle;
14 class TH3;
15
16 class AliPWG0Helper : public TObject
17 {
18   public:
19     static Bool_t IsEventTriggered(AliESD* aEsd);
20     static Bool_t IsVertexReconstructed(AliESD* aEsd);
21     static Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE);
22
23     static const Int_t GetPythiaEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE);
24
25     static void CreateProjections(TH3* hist);
26     static void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE);
27     static const char* GetAxisTitle(TH3* hist, const char axis);    
28     
29   protected:
30     ClassDef(AliPWG0Helper, 0)
31
32   private:
33     AliPWG0Helper(const AliPWG0Helper&);
34     AliPWG0Helper& operator=(const AliPWG0Helper&);
35 };
36
37 #endif
38