]>
Commit | Line | Data |
---|---|---|
37da0d71 | 1 | #ifndef ALIGAMMADATAREADER_H |
2 | #define ALIGAMMADATAREADER_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 | /* History of cvs commits: | |
8 | * | |
9 | * $Log$ | |
10 | * Revision 1.1.2.1 2007/07/26 10:32:09 schutz | |
11 | * new analysis classes in the the new analysis framework | |
12 | * | |
13 | * | |
14 | */ | |
15 | ||
16 | //_________________________________________________________________________ | |
17 | // Class for reading data (ESDs) in order to do prompt gamma correlations | |
18 | // Class created from old AliPHOSGammaJet | |
19 | // (see AliRoot versions previous Release 4-09) | |
20 | ||
21 | //*-- Author: Gustavo Conesa (INFN-LNF) | |
22 | ||
23 | // --- ROOT system --- | |
24 | #include <TParticle.h> | |
25 | #include <TClonesArray.h> | |
26 | #include "AliGammaReader.h" | |
27 | ||
28 | class AliESDEvent ; | |
29 | ||
30 | class AliGammaDataReader : public AliGammaReader { | |
31 | ||
32 | public: | |
33 | ||
34 | AliGammaDataReader() ; // ctor | |
35 | AliGammaDataReader(const AliGammaDataReader & g) ; // cpy ctor | |
36 | AliGammaDataReader & operator = (const AliGammaDataReader & g) ;//cpy assignment | |
37 | virtual ~AliGammaDataReader() {;} //virtual dtor | |
38 | ||
39 | ||
40 | void InitParameters(); | |
41 | ||
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 ; } | |
48 | ||
49 | void Print(const Option_t * opt)const; | |
50 | ||
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 ; } | |
57 | ||
58 | void CreateParticleList(TObject * esd, TObject *,TClonesArray * plCh, | |
59 | TClonesArray * plEMCAL, TClonesArray * plPHOS, TClonesArray *); | |
60 | ||
61 | ||
62 | private: | |
63 | ||
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 | |
70 | ||
71 | ClassDef(AliGammaDataReader,0) | |
72 | } ; | |
73 | ||
74 | ||
75 | #endif //ALIGAMMADATAREADER_H | |
76 | ||
77 | ||
78 |