]>
Commit | Line | Data |
---|---|---|
f6019cda | 1 | #ifndef ALIEMCALRECONSTRUCTOR_H |
2 | #define ALIEMCALRECONSTRUCTOR_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //_________________________________________________________________________ | |
9 | // Wrapping class for reconstruction | |
10 | //*-- | |
11 | //*-- Author: Yves Schutz (SUBATECH) | |
12 | //*-- Dmitri Peressounko (SUBATECH & Kurchatov Institute) | |
40164976 | 13 | // Reconstruction class. Redesigned from the old AliReconstructionner class and |
14 | // derived from STEER/AliReconstructor. | |
15 | // | |
16 | //-- Aleksei Pavlinov : added staf for EMCAL jet trigger 9Apr 25, 2008) | |
17 | // : fgDigitsArr should read just once at event | |
18 | ||
f6019cda | 19 | |
f6019cda | 20 | // --- ROOT system --- |
85c25c2e | 21 | class TList; |
22 | class TClonesArray; | |
23 | class TTree; | |
24 | ||
0c5b726e | 25 | |
26 | // --- AliRoot header files --- | |
27 | #include "AliReconstructor.h" | |
28 | #include "AliEMCALTracker.h" | |
29 | #include "AliEMCALRecParam.h" | |
30 | ||
31 | ||
f6019cda | 32 | class AliEMCALDigitizer ; |
33 | class AliEMCALClusterizer ; | |
f6019cda | 34 | class AliEMCALSDigitizer ; |
c47157cd | 35 | class AliEMCALRecParam; |
af885e0f | 36 | class AliESDEvent ; |
1d59832c | 37 | class AliRawReader ; |
65bdc82f | 38 | class AliEMCALRawUtils; |
39 | class AliEMCALGeometry; | |
0c5b726e | 40 | class AliEMCALCalibData ; |
40164976 | 41 | class AliCaloCalibPedestal ; |
916f1e76 | 42 | class AliEMCALTriggerElectronics; |
f6019cda | 43 | |
44 | // --- Standard library --- | |
45 | ||
0c5b726e | 46 | |
f6019cda | 47 | |
48 | class AliEMCALReconstructor : public AliReconstructor { | |
49 | ||
50 | public: | |
51 | ||
52 | AliEMCALReconstructor() ; //ctor | |
f6019cda | 53 | |
54 | virtual ~AliEMCALReconstructor() ; //dtor | |
55 | ||
40871053 | 56 | virtual void Init() {;} |
ee08edde | 57 | virtual void InitClusterizer(); |
58 | ||
4800667c | 59 | Bool_t Debug() const { return fDebug ; } |
60 | ||
61 | using AliReconstructor::FillESD; | |
c47157cd | 62 | virtual void FillESD(TTree* digitsTree, TTree* clustersTree, |
63 | AliESDEvent* esd) const; | |
d76c31f4 | 64 | AliTracker* CreateTracker () const |
65 | {return new AliEMCALTracker;} | |
4800667c | 66 | using AliReconstructor::Reconstruct; |
ee08edde | 67 | virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const ; |
c47157cd | 68 | |
69 | virtual Bool_t HasDigitConversion() const {return kTRUE;}; | |
70 | virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const; | |
a68156e6 | 71 | |
56d6dcc9 | 72 | static void SetRecParam(AliEMCALRecParam * recParam){ fgkRecParam = recParam;} |
85c25c2e | 73 | |
74 | void ReadDigitsArrayFromTree(TTree *digitsTree) const; | |
c47157cd | 75 | |
40164976 | 76 | TList *GetList() const {return fList;} |
85c25c2e | 77 | |
0832a2bf | 78 | static const AliEMCALRecParam* GetRecParam() { |
79 | return dynamic_cast<const AliEMCALRecParam*>(AliReconstructor::GetRecoParam(6)); } | |
80 | ||
85c25c2e | 81 | static TClonesArray* GetDigitsArr() {return fgDigitsArr;} |
f6019cda | 82 | |
0c5b726e | 83 | void FillMisalMatrixes(AliESDEvent* esd)const ; |
84 | ||
f6019cda | 85 | private: |
86 | ||
3abc001d | 87 | AliEMCALReconstructor(const AliEMCALReconstructor &); //Not implemented |
88 | AliEMCALReconstructor & operator = (const AliEMCALReconstructor &); //Not implemented | |
89 | ||
f6019cda | 90 | Bool_t fDebug; //! verbosity controller |
9517d886 | 91 | |
85c25c2e | 92 | TList *fList; //! List of hists (only for trigger now) |
93 | AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry | |
94 | ||
9517d886 | 95 | static AliEMCALClusterizer* fgClusterizer; // clusterizer |
0832a2bf | 96 | static const AliEMCALRecParam* fgkRecParam; // reconstruction |
97 | // parameters for EMCAL | |
65bdc82f | 98 | static AliEMCALRawUtils* fgRawUtils; // raw utilities class - |
99 | // only need one per reco | |
85c25c2e | 100 | static TClonesArray* fgDigitsArr; // Array with EMCAL digits |
40164976 | 101 | AliEMCALCalibData * fCalibData ; //! Calibration database if aval |
102 | AliCaloCalibPedestal * fPedestalData ; //! Tower status database if aval | |
c47157cd | 103 | |
916f1e76 | 104 | static AliEMCALTriggerElectronics* fgTriggerProcessor; |
105 | ||
106 | ClassDef(AliEMCALReconstructor,9) // Reconstruction algorithm class (Base Class) | |
f6019cda | 107 | |
108 | }; | |
109 | ||
110 | #endif // ALIEMCALRECONSTRUCTOR_H | |
916f1e76 | 111 |