Protection to skip PYTHIA events with large jet energy compared to pTHard
[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
29b2ceec 37 TList * GetJets(const Int_t iEvent, AliStack * stack, const AliGenEventHeader * geh) ;\r
38 \r
39 Bool_t ComparePtHardAndJetPt(const AliGenEventHeader * geh) ;\r
abde65b8 40 \r
41 void Print(const Option_t * opt)const;\r
42 \r
43 void SetDebug(Int_t deb) {fDebug=deb;}\r
44 Int_t GetDebug() const {return fDebug;} \r
45 \r
46 void SetMCGenerator(TString mcgen) {fMCGenerator=mcgen;}\r
47 TString GetMCGenerator() const {return fMCGenerator;} \r
48\r
49private:\r
29b2ceec 50 Int_t fCurrentEvent; // Current Event\r
51 Int_t fDebug; // Debug level\r
52 TList * fJetsList; // List of jets\r
53 TString fMCGenerator; // MC geneator used to generate data in simulation\r
54 Float_t fpTHardpTJetFactor; // Factor between ptHard and jet pT to reject event.\r
55 \r
56 ClassDef(AliMCAnalysisUtils,2)\r
abde65b8 57} ;\r
58\r
59\r
60#endif //ALIMCANALYSISUTILS_H\r
61\r
62\r
63\r