f3050824 |
1 | #ifndef ALIANALYSISHELPERJETTASKS_H |
2 | #define ALIANALYSISHELPERJETTASKS_H |
f3050824 |
3 | #include "TObject.h" |
6f3f79de |
4 | |
f3050824 |
5 | class AliMCEvent; |
db6bcb0e |
6 | class AliAODJet; |
519378fb |
7 | class TString; |
f3050824 |
8 | class AliGenPythiaEventHeader; |
6f3f79de |
9 | class TVector3; |
f3050824 |
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 |
6f3f79de |
30 | static Bool_t GetEventShapes(TVector3 &n01, TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes); |
3dc5a1a4 |
31 | enum {kMaxJets = 6}; // needed for array size not to fragemnt memory on the heap by many new/delete |
f3050824 |
32 | private: |
33 | |
188a1ba9 |
34 | ClassDef(AliAnalysisHelperJetTasks, 1) |
f3050824 |
35 | }; |
36 | |
37 | #endif // ALIANALYSISHELPERJETTASKS_H |