]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JetTasks/AliAnalysisHelperJetTasks.h
New book-keeping class
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisHelperJetTasks.h
CommitLineData
f3050824 1#ifndef ALIANALYSISHELPERJETTASKS_H
2#define ALIANALYSISHELPERJETTASKS_H
f3050824 3#include "TObject.h"
6f3f79de 4
f3050824 5class AliMCEvent;
db6bcb0e 6class AliAODJet;
59543510 7class AliVEvent;
519378fb 8class TString;
f3050824 9class AliGenPythiaEventHeader;
6f3f79de 10class TVector3;
f3050824 11
12// Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
13
14class AliAnalysisHelperJetTasks : public TObject {
15 public:
16 AliAnalysisHelperJetTasks() : TObject() {;}
17 virtual ~AliAnalysisHelperJetTasks(){;}
18
19 static AliGenPythiaEventHeader* GetPythiaEventHeader(AliMCEvent *mcEvent);
20 static void PrintStack(AliMCEvent *mcEvent,Int_t iFirst = 0,Int_t iLast = 0,Int_t iMaxPrint = 10);
db6bcb0e 21 static void GetClosestJets(AliAODJet *genJets,
3dc5a1a4 22 const Int_t &kGenJets,
db6bcb0e 23 AliAODJet *recJets,
3dc5a1a4 24 const Int_t &kRecJets,
db6bcb0e 25 Int_t *iGenIndex,
26 Int_t *iRecIndex,
27 Int_t iDebug, Float_t maxDist = 0.5);
188a1ba9 28
29 static void MergeOutput(char* cFiles, char* cList = "pwg4spec"); // Merges the files in the input text file needs the two histograms fh1PtHard_Trials, fh1Xsec and the name of the input list
519378fb 30 static Bool_t PythiaInfoFromFile(const char* currFile,Float_t &fXsec,Float_t &fTrials);// get the cross section and the trails either from pyxsec.root or from pysec_hists.root
6f3f79de 31 static Bool_t GetEventShapes(TVector3 &n01, TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes);
3dc5a1a4 32 enum {kMaxJets = 6}; // needed for array size not to fragemnt memory on the heap by many new/delete
59543510 33
7fa8b2da 34 enum Trigger {kAcceptAll = 0,kMB1,kMB2,kMB3,kSPDGFO,kTrigger}; //
59543510 35
36 static Bool_t Selected(Bool_t bSet = kFALSE,Bool_t bNew = kTRUE); // static function to store the state of selection from service task
37
38 // these methods have been essentially copied from PWG0/AliTriggerAnalysis and expanded to use with AOD
39 static Bool_t IsTriggerFired(const AliVEvent* aEsd, Trigger trigger);
40 static Bool_t IsTriggerBitFired(const AliVEvent* aEv, Trigger trigger);
41 static Bool_t IsTriggerBitFired(ULong64_t triggerMask, Trigger trigger);
42 static Bool_t IsTriggerBitFired(const AliVEvent* aEv, ULong64_t tclass);
43
f3050824 44 private:
45
188a1ba9 46 ClassDef(AliAnalysisHelperJetTasks, 1)
f3050824 47};
48
49#endif // ALIANALYSISHELPERJETTASKS_H