]>
Commit | Line | Data |
---|---|---|
6639984f | 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 --- | |
6639984f | 22 | class AliStack ; |
6639984f | 23 | class AliGenEventHeader ; |
24 | ||
25 | class AliMCAnalysisUtils : public TObject { | |
26 | ||
27 | public: | |
28 | ||
29 | AliMCAnalysisUtils() ; // ctor | |
30 | AliMCAnalysisUtils(const AliMCAnalysisUtils & g) ; // cpy ctor | |
31 | AliMCAnalysisUtils & operator = (const AliMCAnalysisUtils & g) ;//cpy assignment | |
32 | virtual ~AliMCAnalysisUtils() ;//virtual dtor | |
33 | ||
34 | enum mcTypes {kMCPrompt, kMCFragmentation, kMCISR, kMCPi0Decay, kMCEtaDecay, kMCOtherDecay, kMCPi0, kMCEta, kMCElectron, kMCConversion, kMCUnknown}; | |
35 | ||
36 | Int_t CheckOrigin(const Int_t label, AliStack * stack) const ; | |
37 | TList * GetJets(Int_t iEvent, AliStack * stack, AliGenEventHeader * geh) ; | |
38 | ||
39 | void Print(const Option_t * opt)const; | |
40 | ||
41 | void SetDebug(Int_t deb) {fDebug=deb;} | |
42 | Int_t GetDebug() const {return fDebug;} | |
43 | ||
44 | void SetMCGenerator(TString mcgen) {fMCGenerator=mcgen;} | |
45 | TString GetMCGenerator() const {return fMCGenerator;} | |
46 | ||
47 | private: | |
48 | Int_t fCurrentEvent; // Current Event | |
49 | Int_t fDebug; // Debug level | |
50 | TList * fJetsList; // List of jets | |
51 | TString fMCGenerator; // MC geneator used to generate data in simulation | |
52 | ||
53 | ClassDef(AliMCAnalysisUtils,1) | |
54 | } ; | |
55 | ||
56 | ||
57 | #endif //ALIMCANALYSISUTILS_H | |
58 | ||
59 | ||
60 |