1 #ifndef ALIGAMMAMCDATAREADER_H
2 #define ALIGAMMAMCDATAREADER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 /* History of cvs commits:
10 * Revision 1.1.2.1 2007/07/26 10:32:09 schutz
11 * new analysis classes in the the new analysis framework
16 //_________________________________________________________________________
17 // Class for reading data (Kinematics and ESDs) in order to do prompt gamma correlations
18 // Class created from old AliPHOSGammaJet
19 // (see AliRoot versions previous Release 4-09)
21 //*-- Author: Gustavo Conesa (INFN-LNF)
23 // --- ROOT system ---
24 #include <TParticle.h>
25 #include <TClonesArray.h>
26 #include "AliGammaReader.h"
30 class AliGammaMCDataReader : public AliGammaReader {
34 AliGammaMCDataReader() ; // ctor
35 AliGammaMCDataReader(const AliGammaMCDataReader & g) ; // cpy ctor
36 AliGammaMCDataReader & operator = (const AliGammaMCDataReader & g) ;//cpy assignment
37 virtual ~AliGammaMCDataReader() {;} //virtual dtor
40 void InitParameters();
42 Bool_t IsEMCALPIDOn() const {return fEMCALPID ; }
43 Bool_t IsPHOSPIDOn() const {return fPHOSPID ; }
44 Float_t GetEMCALPhotonWeight() { return fEMCALPhotonWeight ; }
45 Float_t GetEMCALPi0Weight() { return fEMCALPi0Weight ; }
46 Float_t GetPHOSPhotonWeight() { return fPHOSPhotonWeight ; }
47 Float_t GetPHOSPi0Weight() { return fPHOSPi0Weight ; }
49 void Print(const Option_t * opt)const;
51 void SetEMCALPIDOn(Bool_t pid){ fEMCALPID= pid ; }
52 void SetPHOSPIDOn(Bool_t pid){ fPHOSPID= pid ; }
53 void SetEMCALPhotonWeight(Float_t w){ fEMCALPhotonWeight = w ; }
54 void SetEMCALPi0Weight(Float_t w){ fEMCALPi0Weight = w ; }
55 void SetPHOSPhotonWeight(Float_t w){ fPHOSPhotonWeight = w ; }
56 void SetPHOSPi0Weight(Float_t w){ fPHOSPi0Weight = w ; }
58 void CreateParticleList(TObject * esd, TObject * stack, TClonesArray * plCh,
59 TClonesArray * plEMCAL, TClonesArray * plPHOS, TClonesArray *);
64 Bool_t fEMCALPID ;//Fill EMCAL particle lists with particles with corresponding pid
65 Bool_t fPHOSPID; //Fill PHOS particle lists with particles with corresponding pid
66 Float_t fEMCALPhotonWeight; //Bayesian PID weight for photons in EMCAL
67 Float_t fEMCALPi0Weight; //Bayesian PID weight for pi0 in EMCAL
68 Float_t fPHOSPhotonWeight; //Bayesian PID weight for photons in PHOS
69 Float_t fPHOSPi0Weight; //Bayesian PID weight for pi0 in PHOS
71 ClassDef(AliGammaMCDataReader,0)
75 #endif //ALIGAMMAMCDATAREADER_H