]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JetTasks/AliAnalysisHelperJetTasks.h
Possibility to copy the number of the TPC clusters from an AOD track to an ESD track...
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisHelperJetTasks.h
1 #ifndef  ALIANALYSISHELPERJETTASKS_H
2 #define  ALIANALYSISHELPERJETTASKS_H
3 #include "TObject.h"
4
5 class AliMCEvent;
6 class AliAODJet;
7 class AliVEvent;
8 class TString;
9 class AliGenPythiaEventHeader;
10 class TVector3;
11
12 // Helper Class that contains a lot of usefull static functions (i.e. for Flavor selection.
13
14 class AliAnalysisHelperJetTasks : public TObject {
15  public:
16   AliAnalysisHelperJetTasks() : TObject() {;}
17   virtual ~AliAnalysisHelperJetTasks(){;}
18   
19   static AliGenPythiaEventHeader*  GetPythiaEventHeader(AliMCEvent *mcEvent);
20   static void PrintStack(AliMCEvent *mcEvent,Int_t iFirst = 0,Int_t iLast = 0,Int_t iMaxPrint = 10);
21   static void GetClosestJets(AliAODJet *genJets,
22                              const Int_t &kGenJets,
23                              AliAODJet *recJets,
24                              const Int_t &kRecJets,
25                              Int_t *iGenIndex,
26                              Int_t *iRecIndex,
27                              Int_t iDebug, Float_t maxDist = 0.5);
28
29   static void MergeOutput(char* cFiles, char* cDir = "",char *cList = "",char* cOutFile ="allpt.root",Bool_t bUpdate = false); // Merges the files in the input text file  needs the two histograms fh1PtHard_Trials, fh1Xsec and the name of the input list
30   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
31   static Bool_t PrintDirectorySize(const char* currFile); // print the size of the output on a given file
32   static Bool_t GetEventShapes(TVector3 &n01, TVector3 * pTrack, Int_t nTracks, Double_t * eventShapes);
33
34
35   enum {kMaxJets = 6}; //  needed for array size not to fragemnt memory on the heap by many new/delete 
36
37   enum Trigger {kAcceptAll = 0,kMB1,kMB2,kMB3,kSPDGFO,kTrigger}; // 
38
39   static Bool_t Selected(Bool_t bSet = kFALSE,Bool_t bNew = kTRUE); // static function to store the state of selection from service task
40   
41   // these methods have been essentially copied from PWG0/AliTriggerAnalysis and expanded to use with AOD
42   static Bool_t IsTriggerFired(const AliVEvent* aEsd, Trigger trigger);
43
44   private:
45   
46   ClassDef(AliAnalysisHelperJetTasks, 1) 
47 };
48
49 #endif // ALIANALYSISHELPERJETTASKS_H