]>
Commit | Line | Data |
---|---|---|
f3050824 | 1 | #ifndef ALIANALYSISHELPERJETTASKS_H |
2 | #define ALIANALYSISHELPERJETTASKS_H | |
3 | ||
4 | ||
5 | #include "TObject.h" | |
6 | class AliMCEvent; | |
db6bcb0e | 7 | class AliAODJet; |
519378fb | 8 | class TString; |
f3050824 | 9 | class AliGenPythiaEventHeader; |
10 | ||
11 | // Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection. | |
12 | ||
13 | class AliAnalysisHelperJetTasks : public TObject { | |
14 | public: | |
15 | AliAnalysisHelperJetTasks() : TObject() {;} | |
16 | virtual ~AliAnalysisHelperJetTasks(){;} | |
17 | ||
18 | static AliGenPythiaEventHeader* GetPythiaEventHeader(AliMCEvent *mcEvent); | |
19 | static void PrintStack(AliMCEvent *mcEvent,Int_t iFirst = 0,Int_t iLast = 0,Int_t iMaxPrint = 10); | |
db6bcb0e | 20 | static void GetClosestJets(AliAODJet *genJets, |
3dc5a1a4 | 21 | const Int_t &kGenJets, |
db6bcb0e | 22 | AliAODJet *recJets, |
3dc5a1a4 | 23 | const Int_t &kRecJets, |
db6bcb0e | 24 | Int_t *iGenIndex, |
25 | Int_t *iRecIndex, | |
26 | Int_t iDebug, Float_t maxDist = 0.5); | |
188a1ba9 | 27 | |
28 | 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 | 29 | 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 |
30 | ||
f3050824 | 31 | |
3dc5a1a4 | 32 | enum {kMaxJets = 6}; // needed for array size not to fragemnt memory on the heap by many new/delete |
f3050824 | 33 | private: |
34 | ||
188a1ba9 | 35 | ClassDef(AliAnalysisHelperJetTasks, 1) |
f3050824 | 36 | }; |
37 | ||
38 | #endif // ALIANALYSISHELPERJETTASKS_H |