]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/AliPWG0Helper.h
adding trigger configuration
[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;
770a1f1d 11class AliESDEvent;
116083b1 12class AliESDVertex;
04a7657f 13class TParticle;
dd367a14 14class TH1;
15class TH2;
25db2d85 16class TH3;
116083b1 17class AliHeader;
18class AliStack;
9cd015f7 19class TTree;
04a7657f 20
21class AliPWG0Helper : public TObject
22{
23 public:
e9c3977b 24 enum Trigger { kMB1 = 0, kMB2 }; // definition from ALICE-INT-2005-025
770a1f1d 25 enum AnalysisMode { kSPD = 0, kTPC, kTPCITS };
e9c3977b 26
116083b1 27 static Bool_t IsEventTriggered(const AliESD* aEsd, Trigger trigger = kMB2);
28 static Bool_t IsEventTriggered(ULong64_t triggerMask, Trigger trigger = kMB2);
29 static Bool_t IsVertexReconstructed(const AliESD* aEsd);
30 static Bool_t IsVertexReconstructed(const AliESDVertex* vtxESD);
ebf31fda 31 static const AliESDVertex* GetVertex(const AliESDEvent* aEsd, AnalysisMode analysisMethod, Bool_t debug = kFALSE);
770a1f1d 32
7584d357 33 static Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries, Bool_t adebug = kFALSE);
34
116083b1 35 static Int_t GetPythiaEventProcessType(AliHeader* aHeader, Bool_t adebug = kFALSE);
36 static TParticle* FindPrimaryMother(AliStack* stack, Int_t label);
37 static Int_t FindPrimaryMotherLabel(AliStack* stack, Int_t label);
38
29771dc8 39 static void CreateProjections(TH3* hist, Bool_t save = kFALSE);
40 static void CreateDividedProjections(TH3* hist, TH3* hist2, const char* axis = 0, Bool_t putErrors = kFALSE, Bool_t save = kFALSE);
4c351225 41 static const char* GetAxisTitle(TH3* hist, const char axis);
116083b1 42
9cd015f7 43 static void SetBranchStatusRecursive(TTree* tree, char *bname, Bool_t status, Bool_t debug = kFALSE);
44
dd367a14 45 static void NormalizeToBinWidth(TH1* hist);
46 static void NormalizeToBinWidth(TH2* hist);
47
d1f50534 48 static void PrintConf(AnalysisMode analysisMode, Trigger trigger);
49
04a7657f 50 protected:
51 ClassDef(AliPWG0Helper, 0)
61385583 52
53 private:
54 AliPWG0Helper(const AliPWG0Helper&);
55 AliPWG0Helper& operator=(const AliPWG0Helper&);
04a7657f 56};
57
58#endif
59