]>
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) | |
13 | ||
f6019cda | 14 | // --- ROOT system --- |
85c25c2e | 15 | class TList; |
16 | class TClonesArray; | |
17 | class TTree; | |
18 | ||
0c5b726e | 19 | |
20 | // --- AliRoot header files --- | |
21 | #include "AliReconstructor.h" | |
22 | #include "AliEMCALTracker.h" | |
23 | #include "AliEMCALRecParam.h" | |
24 | ||
25 | ||
f6019cda | 26 | class AliEMCALDigitizer ; |
27 | class AliEMCALClusterizer ; | |
f6019cda | 28 | class AliEMCALSDigitizer ; |
c47157cd | 29 | class AliEMCALRecParam; |
af885e0f | 30 | class AliESDEvent ; |
1d59832c | 31 | class AliRawReader ; |
65bdc82f | 32 | class AliEMCALRawUtils; |
33 | class AliEMCALGeometry; | |
0c5b726e | 34 | class AliEMCALCalibData ; |
f6019cda | 35 | |
36 | // --- Standard library --- | |
37 | ||
0c5b726e | 38 | |
f6019cda | 39 | |
40 | class AliEMCALReconstructor : public AliReconstructor { | |
41 | ||
42 | public: | |
43 | ||
44 | AliEMCALReconstructor() ; //ctor | |
0a4cb131 | 45 | AliEMCALReconstructor(const AliEMCALReconstructor & rec); |
f6019cda | 46 | |
47 | virtual ~AliEMCALReconstructor() ; //dtor | |
48 | ||
85c25c2e | 49 | virtual void Init(); |
4800667c | 50 | Bool_t Debug() const { return fDebug ; } |
51 | ||
52 | using AliReconstructor::FillESD; | |
c47157cd | 53 | virtual void FillESD(TTree* digitsTree, TTree* clustersTree, |
54 | AliESDEvent* esd) const; | |
d76c31f4 | 55 | AliTracker* CreateTracker () const |
56 | {return new AliEMCALTracker;} | |
4800667c | 57 | using AliReconstructor::Reconstruct; |
c47157cd | 58 | virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const; |
59 | ||
60 | virtual Bool_t HasDigitConversion() const {return kTRUE;}; | |
61 | virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const; | |
a68156e6 | 62 | |
f6019cda | 63 | |
64 | AliEMCALReconstructor & operator = (const AliEMCALReconstructor & /*rvalue*/) { | |
65 | // assignement operator requested by coding convention but not needed | |
66 | Fatal("operator =", "not implemented") ; | |
67 | return *this ; | |
68 | } | |
69 | ||
56d6dcc9 | 70 | static void SetRecParam(AliEMCALRecParam * recParam){ fgkRecParam = recParam;} |
85c25c2e | 71 | |
72 | void ReadDigitsArrayFromTree(TTree *digitsTree) const; | |
c47157cd | 73 | |
85c25c2e | 74 | TList *GetList() {return fList;} |
75 | ||
0832a2bf | 76 | static const AliEMCALRecParam* GetRecParam() { |
77 | return dynamic_cast<const AliEMCALRecParam*>(AliReconstructor::GetRecoParam(6)); } | |
78 | ||
85c25c2e | 79 | static TClonesArray* GetDigitsArr() {return fgDigitsArr;} |
f6019cda | 80 | |
0c5b726e | 81 | void FillMisalMatrixes(AliESDEvent* esd)const ; |
82 | ||
f6019cda | 83 | private: |
84 | ||
85 | Bool_t fDebug; //! verbosity controller | |
9517d886 | 86 | |
85c25c2e | 87 | TList *fList; //! List of hists (only for trigger now) |
88 | AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry | |
89 | ||
9517d886 | 90 | static AliEMCALClusterizer* fgClusterizer; // clusterizer |
0832a2bf | 91 | static const AliEMCALRecParam* fgkRecParam; // reconstruction |
92 | // parameters for EMCAL | |
65bdc82f | 93 | static AliEMCALRawUtils* fgRawUtils; // raw utilities class - |
94 | // only need one per reco | |
85c25c2e | 95 | static TClonesArray* fgDigitsArr; // Array with EMCAL digits |
0c5b726e | 96 | AliEMCALCalibData * fCalibData ; //! Calibration database if aval |
c47157cd | 97 | |
0c5b726e | 98 | ClassDef(AliEMCALReconstructor,7) // Reconstruction algorithm class (Base Class) |
f6019cda | 99 | |
100 | }; | |
101 | ||
102 | #endif // ALIEMCALRECONSTRUCTOR_H |