]>
Commit | Line | Data |
---|---|---|
99e5fe42 | 1 | #ifndef ALIJETESDREADER_H |
2 | #define ALIJETESDREADER_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
83a444b1 | 7 | //--------------------------------------------------------------------- |
99e5fe42 | 8 | // Jet ESD Reader |
9 | // ESD reader for jet analysis | |
10 | // Author: Mercedes Lopez Noriega (mercedes.lopez.noriega@cern.ch) | |
b45b0c92 | 11 | //========================================================================= |
12 | // Modified in order to use a fUnitArray object instead of a fMomentumArray | |
13 | // Includes EMCal Geometry, fUnitArray, grid objects and tools for Hadron correction | |
8838ab7a | 14 | // Author : magali.estienne@subatech.in2p3.fr |
83a444b1 | 15 | //--------------------------------------------------------------------- |
99e5fe42 | 16 | |
17 | #include "AliJetReader.h" | |
b45b0c92 | 18 | #include "AliJetUnitArray.h" |
19 | #include "AliJetGrid.h" | |
8838ab7a | 20 | |
21 | class TRefArray; | |
99e5fe42 | 22 | class AliJetESDReaderHeader; |
8838ab7a | 23 | class AliEMCALGeometry; |
f45e6f72 | 24 | class AliEMCALGeoUtils; |
b45b0c92 | 25 | class AliJetHadronCorrection; |
26 | class AliJetUnitArray; | |
27 | class AliJetReaderHeader; | |
1b307662 | 28 | class AliESDEvent; |
99e5fe42 | 29 | |
30 | class AliJetESDReader : public AliJetReader | |
31 | { | |
32 | public: | |
33 | AliJetESDReader(); | |
34 | virtual ~AliJetESDReader(); | |
ee7de0dd | 35 | |
8838ab7a | 36 | Bool_t FillMomentumArray(); |
37 | void OpenInputFiles(); | |
38 | void InitUnitArray(); | |
39 | void CreateTasks(TChain* tree); | |
4751efb5 | 40 | Bool_t ExecTasks(const Bool_t procid, TRefArray* refArray); |
ee7de0dd | 41 | |
8838ab7a | 42 | // Getters |
43 | Float_t GetTrackMass() const {return fMass;} // returns mass of the track | |
44 | Int_t GetTrackSign() const {return fSign;} // returns sign of the track | |
45 | ||
99e5fe42 | 46 | // Setters |
f5c22dad | 47 | void SetInputEvent(const TObject* esd, const TObject* aod, const TObject* mc); |
8838ab7a | 48 | void SetTPCGrid(AliJetGrid *grid) {fTpcGrid = grid;} |
49 | void SetEMCalGrid(AliJetGrid *grid) {fEmcalGrid = grid;} | |
b45b0c92 | 50 | // Correction of hadronic energy |
be6e5811 | 51 | void SetHadronCorrector(AliJetHadronCorrection* corr) {fHadCorr = corr;} |
52 | void SetApplyElectronCorrection(Int_t flag = 1) {fECorrection = flag; fEFlag=kTRUE;} | |
53 | void SetApplyMIPCorrection(Bool_t val); | |
54 | void SetApplyFractionHadronicCorrection(Bool_t val); | |
55 | void SetFractionHadronicCorrection(Double_t val); | |
9e4cc50d | 56 | |
99e5fe42 | 57 | protected: |
be6e5811 | 58 | AliJetHadronCorrection *fHadCorr; //! Pointer to Hadron Correction Object |
19e6695b | 59 | AliJetGrid *fTpcGrid; //! Pointer to grid object |
60 | AliJetGrid *fEmcalGrid; //! Pointer to grid object | |
ee7de0dd | 61 | AliJetGrid *fGrid0; // Pointer to grid object |
62 | AliJetGrid *fGrid1; // Pointer to grid object | |
63 | AliJetGrid *fGrid2; // Pointer to grid object | |
64 | AliJetGrid *fGrid3; // Pointer to grid object | |
65 | AliJetGrid *fGrid4; // Pointer to grid object | |
be6e5811 | 66 | Int_t fApplyElectronCorrection; // Electron correction flag |
be6e5811 | 67 | Bool_t fApplyMIPCorrection; // Apply MIP or not ? Exclusive with fApplyFractionHadronicCorrection |
68 | Bool_t fApplyFractionHadronicCorrection; // Another type of charged particle energy deposition in EMC | |
69 | Double_t fFractionHadronicCorrection; // Fraction of momentum of the TPC track to be subtracted from EMC tower | |
b45b0c92 | 70 | Int_t fNumUnits; // Number of units in the unit object array |
71 | // (same as num towers in EMCAL) | |
8838ab7a | 72 | Int_t fDebug; //! Debug option |
73 | Float_t fMass; // Particle mass | |
74 | Int_t fSign; // Particle sign | |
b45b0c92 | 75 | Int_t fNIn; // Number of Array filled in UnitArray |
76 | Int_t fOpt; // Detector to be used for jet reconstruction | |
ee7de0dd | 77 | Bool_t fDZ; // Use or not dead zones |
b45b0c92 | 78 | Int_t fNeta; // Number of bins in eta of tpc grid |
79 | Int_t fNphi; // Number of bins in phi of tpc grid | |
4751efb5 | 80 | TRefArray *fRefArray; // array of digit position and energy |
8838ab7a | 81 | Bool_t fProcId; // Bool_t for TProcessID synchronization |
8838ab7a | 82 | void InitParameters(); |
83 | AliJetESDReader(const AliJetESDReader &det); | |
84 | AliJetESDReader &operator=(const AliJetESDReader &det); | |
85 | ||
86 | ||
87 | ||
9f166120 | 88 | ClassDef(AliJetESDReader,2) |
99e5fe42 | 89 | }; |
90 | ||
91 | #endif |