1 #ifndef ALIMCANALYSISUTILS_H
2 #define ALIMCANALYSISUTILS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //_________________________________________________________________________
8 // Class for analysis utils for MC data
9 // stored in stack or event header.
11 // - method to check the origin of a given track/cluster
12 // - method to obtain the generated jets
14 //*-- Author: Gustavo Conesa (INFN-LNF)
16 // --- ROOT system ---
21 //--- AliRoot system ---
23 //#include "AliStack.h"
25 //#include "AliGenPythiaEventHeader.h"
26 class AliGenEventHeader ;
28 class AliMCAnalysisUtils : public TObject {
32 AliMCAnalysisUtils() ; // ctor
33 AliMCAnalysisUtils(const AliMCAnalysisUtils & g) ; // cpy ctor
34 AliMCAnalysisUtils & operator = (const AliMCAnalysisUtils & g) ;//cpy assignment
35 virtual ~AliMCAnalysisUtils() ;//virtual dtor
37 enum mcTypes {kMCPrompt, kMCFragmentation, kMCISR, kMCPi0Decay, kMCEtaDecay, kMCOtherDecay, kMCPi0, kMCEta, kMCElectron, kMCConversion, kMCUnknown};
39 Int_t CheckOrigin(const Int_t label, AliStack * stack) const ;
40 TList * GetJets(Int_t iEvent, AliStack * stack, AliGenEventHeader * geh) ;
42 void Print(const Option_t * opt)const;
44 void SetDebug(Int_t deb) {fDebug=deb;}
45 Int_t GetDebug() const {return fDebug;}
47 void SetMCGenerator(TString mcgen) {fMCGenerator=mcgen;}
48 TString GetMCGenerator() const {return fMCGenerator;}
51 Int_t fCurrentEvent; // Current Event
52 Int_t fDebug; // Debug level
53 TList * fJetsList; // List of jets
54 TString fMCGenerator; // MC geneator used to generate data in simulation
56 ClassDef(AliMCAnalysisUtils,1)
60 #endif //ALIMCANALYSISUTILS_H