]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrBase/AliMCAnalysisUtils.h
New analysis for electron identification
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliMCAnalysisUtils.h
CommitLineData
abde65b8 1#ifndef ALIMCANALYSISUTILS_H\r
2#define ALIMCANALYSISUTILS_H\r
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
4 * See cxx source for full Copyright notice */\r
5/* $Id: $ */\r
6\r
7//_________________________________________________________________________\r
8// Class for analysis utils for MC data\r
9// stored in stack or event header.\r
10// Contains:\r
11// - method to check the origin of a given track/cluster\r
12// - method to obtain the generated jets\r
13//\r
14//*-- Author: Gustavo Conesa (INFN-LNF)\r
15\r
16// --- ROOT system ---\r
17#include <TObject.h> \r
18class TString ;\r
19class TList ;\r
20\r
21//--- AliRoot system ---\r
22class AliStack ;\r
23class AliGenEventHeader ;\r
24\r
25class AliMCAnalysisUtils : public TObject {\r
26 \r
27public: \r
28 \r
29 AliMCAnalysisUtils() ; // ctor\r
30 AliMCAnalysisUtils(const AliMCAnalysisUtils & g) ; // cpy ctor\r
31 AliMCAnalysisUtils & operator = (const AliMCAnalysisUtils & g) ;//cpy assignment\r
32 virtual ~AliMCAnalysisUtils() ;//virtual dtor\r
33 \r
34 enum mcTypes {kMCPrompt, kMCFragmentation, kMCISR, kMCPi0Decay, kMCEtaDecay, kMCOtherDecay, kMCPi0, kMCEta, kMCElectron, kMCConversion, kMCUnknown, kMCEFromCFromB, kMCEFromC, kMCEFromB,kMCZDecay,kMCWDecay};\r
35 \r
36 Int_t CheckOrigin(const Int_t label, AliStack * stack) const ;\r
37 TList * GetJets(Int_t iEvent, AliStack * stack, AliGenEventHeader * geh) ;\r
38 \r
39 void Print(const Option_t * opt)const;\r
40 \r
41 void SetDebug(Int_t deb) {fDebug=deb;}\r
42 Int_t GetDebug() const {return fDebug;} \r
43 \r
44 void SetMCGenerator(TString mcgen) {fMCGenerator=mcgen;}\r
45 TString GetMCGenerator() const {return fMCGenerator;} \r
46\r
47private:\r
48 Int_t fCurrentEvent; // Current Event\r
49 Int_t fDebug; // Debug level\r
50 TList * fJetsList; // List of jets\r
51 TString fMCGenerator; // MC geneator used to generate data in simulation\r
52\r
53 ClassDef(AliMCAnalysisUtils,1)\r
54} ;\r
55\r
56\r
57#endif //ALIMCANALYSISUTILS_H\r
58\r
59\r
60\r