Removed call to AliRawReader::SelectEvent. Changes to obey effC++ coding
[u/mrichter/AliRoot.git] / PWG0 / AliPWG0Helper.h
CommitLineData
04a7657f 1/* $Id$ */
2
3#ifndef ALIPWG0HELPER_H
4#define ALIPWG0HELPER_H
5
6#include <TObject.h>
7
8// static helper functions
9
10class AliESD;
116083b1 11class AliESDVertex;
04a7657f 12class TParticle;
25db2d85 13class TH3;
116083b1 14class AliHeader;
15class AliStack;
9cd015f7 16class TTree;
04a7657f 17
18class AliPWG0Helper : public TObject
19{
20 public:
e9c3977b 21 enum Trigger { kMB1 = 0, kMB2 }; // definition from ALICE-INT-2005-025
22
116083b1 23 static Bool_t IsEventTriggered(const AliESD* aEsd, Trigger trigger = kMB2);
24 static Bool_t IsEventTriggered(ULong64_t triggerMask, Trigger trigger = kMB2);
25 static Bool_t IsVertexReconstructed(const AliESD* aEsd);
26 static Bool_t IsVertexReconstructed(const AliESDVertex* vtxESD);
7584d357 27 static Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE);
28
116083b1 29 static Int_t GetPythiaEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE);
30 static TParticle* FindPrimaryMother(AliStack* stack, Int_t label);
31 static Int_t FindPrimaryMotherLabel(AliStack* stack, Int_t label);
32
29771dc8 33 static void CreateProjections(TH3* hist, Bool_t save = kFALSE);
34 static void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE);
4c351225 35 static const char* GetAxisTitle(TH3* hist, const char axis);
116083b1 36
9cd015f7 37 static void SetBranchStatusRecursive(TTree* tree, char *bname, Bool_t status, Bool_t debug = kFALSE);
38
04a7657f 39 protected:
40 ClassDef(AliPWG0Helper, 0)
61385583 41
42 private:
43 AliPWG0Helper(const AliPWG0Helper&);
44 AliPWG0Helper& operator=(const AliPWG0Helper&);
04a7657f 45};
46
47#endif
48