1 #ifndef ALIANALYSISHELPERJETTASKS_H
2 #define ALIANALYSISHELPERJETTASKS_H
9 class AliGenPythiaEventHeader;
12 // Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
14 class AliAnalysisHelperJetTasks : public TObject {
16 AliAnalysisHelperJetTasks() : TObject() {;}
17 virtual ~AliAnalysisHelperJetTasks(){;}
19 static AliGenPythiaEventHeader* GetPythiaEventHeader(AliMCEvent *mcEvent);
20 static void PrintStack(AliMCEvent *mcEvent,Int_t iFirst = 0,Int_t iLast = 0,Int_t iMaxPrint = 10);
21 static void GetClosestJets(AliAODJet *genJets,
22 const Int_t &kGenJets,
24 const Int_t &kRecJets,
27 Int_t iDebug, Float_t maxDist = 0.5);
29 static void MergeOutput(char* cFiles, char* cDir = "",char *cList = "",char* cOutFile ="allpt.root",Bool_t bUpdate = false); // Merges the files in the input text file needs the two histograms fh1PtHard_Trials, fh1Xsec and the name of the input list
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
31 static Bool_t PrintDirectorySize(const char* currFile); // print the size of the output on a given file
32 static Bool_t GetEventShapes(TVector3 &n01, TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes);
35 enum {kMaxJets = 6}; // needed for array size not to fragemnt memory on the heap by many new/delete
37 enum Trigger {kAcceptAll = 0,kMB1,kMB2,kMB3,kSPDGFO,kTrigger}; //
39 static Bool_t Selected(Bool_t bSet = kFALSE,Bool_t bNew = kTRUE); // static function to store the state of selection from service task
41 // these methods have been essentially copied from PWG0/AliTriggerAnalysis and expanded to use with AOD
42 static Bool_t IsTriggerFired(const AliVEvent* aEsd, Trigger trigger);
46 ClassDef(AliAnalysisHelperJetTasks, 1)
49 #endif // ALIANALYSISHELPERJETTASKS_H