]>
Commit | Line | Data |
---|---|---|
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) | |
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 | ||
19 | ||
20 | // --- ROOT system --- | |
21 | class TList; | |
22 | class TClonesArray; | |
23 | class TTree; | |
24 | ||
25 | ||
26 | // --- AliRoot header files --- | |
27 | #include "AliReconstructor.h" | |
28 | #include "AliEMCALTracker.h" | |
29 | #include "AliEMCALRecParam.h" | |
30 | ||
31 | ||
32 | class AliEMCALDigitizer ; | |
33 | class AliEMCALClusterizer ; | |
34 | class AliEMCALSDigitizer ; | |
35 | class AliEMCALRecParam; | |
36 | class AliESDEvent ; | |
37 | class AliRawReader ; | |
38 | class AliEMCALRawUtils; | |
39 | class AliEMCALGeometry; | |
40 | class AliEMCALCalibData ; | |
41 | class AliCaloCalibPedestal ; | |
42 | class AliEMCALTriggerElectronics; | |
43 | ||
44 | // --- Standard library --- | |
45 | ||
46 | ||
47 | ||
48 | class AliEMCALReconstructor : public AliReconstructor { | |
49 | ||
50 | public: | |
51 | ||
52 | AliEMCALReconstructor() ; //ctor | |
53 | ||
54 | virtual ~AliEMCALReconstructor() ; //dtor | |
55 | ||
56 | virtual void Init() {;} | |
57 | virtual void InitClusterizer(); | |
58 | ||
59 | Bool_t Debug() const { return fDebug ; } | |
60 | ||
61 | using AliReconstructor::FillESD; | |
62 | virtual void FillESD(TTree* digitsTree, TTree* clustersTree, | |
63 | AliESDEvent* esd) const; | |
64 | AliTracker* CreateTracker () const | |
65 | {return new AliEMCALTracker;} | |
66 | using AliReconstructor::Reconstruct; | |
67 | virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const ; | |
68 | ||
69 | virtual Bool_t HasDigitConversion() const {return kTRUE;}; | |
70 | virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const; | |
71 | ||
72 | static void SetRecParam(AliEMCALRecParam * recParam){ fgkRecParam = recParam;} | |
73 | ||
74 | void ReadDigitsArrayFromTree(TTree *digitsTree) const; | |
75 | ||
76 | TList *GetList() const {return fList;} | |
77 | ||
78 | static const AliEMCALRecParam* GetRecParam() { | |
79 | return dynamic_cast<const AliEMCALRecParam*>(AliReconstructor::GetRecoParam(6)); } | |
80 | ||
81 | static TClonesArray* GetDigitsArr() {return fgDigitsArr;} | |
82 | ||
83 | void FillMisalMatrixes(AliESDEvent* esd)const ; | |
84 | ||
85 | private: | |
86 | ||
87 | AliEMCALReconstructor(const AliEMCALReconstructor &); //Not implemented | |
88 | AliEMCALReconstructor & operator = (const AliEMCALReconstructor &); //Not implemented | |
89 | ||
90 | Bool_t fDebug; //! verbosity controller | |
91 | ||
92 | TList *fList; //! List of hists (only for trigger now) | |
93 | AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry | |
94 | ||
95 | static AliEMCALClusterizer* fgClusterizer; // clusterizer | |
96 | static const AliEMCALRecParam* fgkRecParam; // reconstruction | |
97 | // parameters for EMCAL | |
98 | static AliEMCALRawUtils* fgRawUtils; // raw utilities class - | |
99 | // only need one per reco | |
100 | static TClonesArray* fgDigitsArr; // Array with EMCAL digits | |
101 | AliEMCALCalibData * fCalibData ; //! Calibration database if aval | |
102 | AliCaloCalibPedestal * fPedestalData ; //! Tower status database if aval | |
103 | ||
104 | static AliEMCALTriggerElectronics* fgTriggerProcessor; | |
105 | ||
106 | ClassDef(AliEMCALReconstructor,9) // Reconstruction algorithm class (Base Class) | |
107 | ||
108 | }; | |
109 | ||
110 | #endif // ALIEMCALRECONSTRUCTOR_H | |
111 |