]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JetTasks/AliAnalysisHelperJetTasks.h
added merging function for different pt hard bins
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisHelperJetTasks.h
1 #ifndef  ALIANALYSISHELPERJETTASKS_H
2 #define  ALIANALYSISHELPERJETTASKS_H
3
4
5 #include "TObject.h"
6 class AliMCEvent;
7 class AliAODJet;
8 class AliGenPythiaEventHeader;
9
10 // Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
11
12 class AliAnalysisHelperJetTasks : public TObject {
13  public:
14   AliAnalysisHelperJetTasks() : TObject() {;}
15   virtual ~AliAnalysisHelperJetTasks(){;}
16   
17   static AliGenPythiaEventHeader*  GetPythiaEventHeader(AliMCEvent *mcEvent);
18   static void PrintStack(AliMCEvent *mcEvent,Int_t iFirst = 0,Int_t iLast = 0,Int_t iMaxPrint = 10);
19   static void GetClosestJets(AliAODJet *genJets,
20                              const Int_t &nGenJets,
21                              AliAODJet *recJets,
22                              const Int_t &nRecJets,
23                              Int_t *iGenIndex,
24                              Int_t *iRecIndex,
25                              Int_t iDebug, Float_t maxDist = 0.5);
26
27   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
28   
29
30   private:
31   
32   ClassDef(AliAnalysisHelperJetTasks, 1) 
33 };
34
35 #endif // ALIANALYSISHELPERJETTASKS_H