]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PWG4/JetTasks/AliAnalysisHelperJetTasks.h
account for limits of thrust variable (Sona)
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisHelperJetTasks.h
... / ...
CommitLineData
1#ifndef ALIANALYSISHELPERJETTASKS_H
2#define ALIANALYSISHELPERJETTASKS_H
3#include "TObject.h"
4
5class AliMCEvent;
6class AliAODJet;
7class TString;
8class AliGenPythiaEventHeader;
9class TVector3;
10
11// Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
12
13class 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);
20 static void GetClosestJets(AliAODJet *genJets,
21 const Int_t &kGenJets,
22 AliAODJet *recJets,
23 const Int_t &kRecJets,
24 Int_t *iGenIndex,
25 Int_t *iRecIndex,
26 Int_t iDebug, Float_t maxDist = 0.5);
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
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 static Bool_t GetEventShapes(TVector3 &n01, TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes);
31 enum {kMaxJets = 6}; // needed for array size not to fragemnt memory on the heap by many new/delete
32 private:
33
34 ClassDef(AliAnalysisHelperJetTasks, 1)
35};
36
37#endif // ALIANALYSISHELPERJETTASKS_H