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 */
8 //_________________________________________________________________________
9 // Wrapping class for reconstruction
11 //*-- Author: Yves Schutz (SUBATECH)
12 //*-- Dmitri Peressounko (SUBATECH & Kurchatov Institute)
14 // --- ROOT system ---
20 // --- AliRoot header files ---
21 #include "AliReconstructor.h"
22 #include "AliEMCALTracker.h"
23 #include "AliEMCALRecParam.h"
26 class AliEMCALDigitizer ;
27 class AliEMCALClusterizer ;
28 class AliEMCALSDigitizer ;
29 class AliEMCALRecParam;
32 class AliEMCALRawUtils;
33 class AliEMCALGeometry;
34 class AliEMCALCalibData ;
36 // --- Standard library ---
40 class AliEMCALReconstructor : public AliReconstructor {
44 AliEMCALReconstructor() ; //ctor
46 virtual ~AliEMCALReconstructor() ; //dtor
49 Bool_t Debug() const { return fDebug ; }
51 using AliReconstructor::FillESD;
52 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
53 AliESDEvent* esd) const;
54 AliTracker* CreateTracker () const
55 {return new AliEMCALTracker;}
56 using AliReconstructor::Reconstruct;
57 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
59 virtual Bool_t HasDigitConversion() const {return kTRUE;};
60 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
62 static void SetRecParam(AliEMCALRecParam * recParam){ fgkRecParam = recParam;}
64 void ReadDigitsArrayFromTree(TTree *digitsTree) const;
66 TList *GetList() {return fList;}
68 static const AliEMCALRecParam* GetRecParam() {
69 return dynamic_cast<const AliEMCALRecParam*>(AliReconstructor::GetRecoParam(6)); }
71 static TClonesArray* GetDigitsArr() {return fgDigitsArr;}
73 void FillMisalMatrixes(AliESDEvent* esd)const ;
77 AliEMCALReconstructor(const AliEMCALReconstructor &); //Not implemented
78 AliEMCALReconstructor & operator = (const AliEMCALReconstructor &); //Not implemented
80 Bool_t fDebug; //! verbosity controller
82 TList *fList; //! List of hists (only for trigger now)
83 AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry
85 static AliEMCALClusterizer* fgClusterizer; // clusterizer
86 static const AliEMCALRecParam* fgkRecParam; // reconstruction
87 // parameters for EMCAL
88 static AliEMCALRawUtils* fgRawUtils; // raw utilities class -
89 // only need one per reco
90 static TClonesArray* fgDigitsArr; // Array with EMCAL digits
91 AliEMCALCalibData * fCalibData ; //! Calibration database if aval
93 ClassDef(AliEMCALReconstructor,7) // Reconstruction algorithm class (Base Class)
97 #endif // ALIEMCALRECONSTRUCTOR_H