added merging function for different pt hard bins
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisHelperJetTasks.h
CommitLineData
f3050824 1#ifndef ALIANALYSISHELPERJETTASKS_H
2#define ALIANALYSISHELPERJETTASKS_H
3
4
5#include "TObject.h"
6class AliMCEvent;
db6bcb0e 7class AliAODJet;
f3050824 8class AliGenPythiaEventHeader;
9
10// Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
11
12class 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);
db6bcb0e 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);
188a1ba9 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
f3050824 28
29
30 private:
31
188a1ba9 32 ClassDef(AliAnalysisHelperJetTasks, 1)
f3050824 33};
34
35#endif // ALIANALYSISHELPERJETTASKS_H