]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrBase/AliMCAnalysisUtils.h
Adding classes forgotten in previous commit
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliMCAnalysisUtils.h
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     */
5 /* $Id:  $ */
6
7 //_________________________________________________________________________
8 // Class for analysis utils for MC data
9 // stored in stack or event header.
10 // Contains:
11 //  - method to check the origin of a given track/cluster
12 //  - method to obtain the generated jets
13 //
14 //*-- Author: Gustavo Conesa (INFN-LNF)
15
16 // --- ROOT system ---
17 #include <TObject.h> 
18 class TString ;
19 class TList ;
20
21 //--- AliRoot system ---
22 class AliLog ;
23 //#include "AliStack.h"
24 class AliStack ;
25 //#include "AliGenPythiaEventHeader.h"
26 class AliGenEventHeader ;
27
28 class AliMCAnalysisUtils : public TObject {
29         
30 public: 
31         
32         AliMCAnalysisUtils() ; // ctor
33         AliMCAnalysisUtils(const AliMCAnalysisUtils & g) ; // cpy ctor
34         AliMCAnalysisUtils & operator = (const AliMCAnalysisUtils & g) ;//cpy assignment
35         virtual ~AliMCAnalysisUtils() ;//virtual dtor
36         
37         enum mcTypes {kMCPrompt, kMCFragmentation, kMCISR, kMCPi0Decay, kMCEtaDecay, kMCOtherDecay, kMCPi0, kMCEta, kMCElectron, kMCConversion, kMCUnknown};
38         
39         Int_t CheckOrigin(const Int_t label, AliStack *  stack) const ;
40         TList * GetJets(Int_t iEvent, AliStack *  stack, AliGenEventHeader * geh) ;
41         
42         void Print(const Option_t * opt)const;
43         
44         void SetDebug(Int_t deb) {fDebug=deb;}
45         Int_t GetDebug() const {return fDebug;} 
46         
47         void SetMCGenerator(TString mcgen) {fMCGenerator=mcgen;}
48         TString GetMCGenerator() const {return fMCGenerator;}   
49
50 private:
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
55
56         ClassDef(AliMCAnalysisUtils,1)
57 } ;
58
59
60 #endif //ALIMCANALYSISUTILS_H
61
62
63