added histograms
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALReconstructor.h
CommitLineData
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 21class TList;
22class TClonesArray;
23class TTree;
24
0c5b726e 25
26// --- AliRoot header files ---
27#include "AliReconstructor.h"
28#include "AliEMCALTracker.h"
29#include "AliEMCALRecParam.h"
30
31
f6019cda 32class AliEMCALDigitizer ;
33class AliEMCALClusterizer ;
f6019cda 34class AliEMCALSDigitizer ;
c47157cd 35class AliEMCALRecParam;
af885e0f 36class AliESDEvent ;
1d59832c 37class AliRawReader ;
65bdc82f 38class AliEMCALRawUtils;
39class AliEMCALGeometry;
0c5b726e 40class AliEMCALCalibData ;
40164976 41class AliCaloCalibPedestal ;
916f1e76 42class AliEMCALTriggerElectronics;
f6019cda 43
44// --- Standard library ---
45
0c5b726e 46
f6019cda 47
48class AliEMCALReconstructor : public AliReconstructor {
49
50public:
51
52 AliEMCALReconstructor() ; //ctor
f6019cda 53
54 virtual ~AliEMCALReconstructor() ; //dtor
55
85c25c2e 56 virtual void Init();
4800667c 57 Bool_t Debug() const { return fDebug ; }
58
59 using AliReconstructor::FillESD;
c47157cd 60 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
61 AliESDEvent* esd) const;
d76c31f4 62 AliTracker* CreateTracker () const
63 {return new AliEMCALTracker;}
4800667c 64 using AliReconstructor::Reconstruct;
c47157cd 65 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
66
67 virtual Bool_t HasDigitConversion() const {return kTRUE;};
68 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
a68156e6 69
56d6dcc9 70 static void SetRecParam(AliEMCALRecParam * recParam){ fgkRecParam = recParam;}
85c25c2e 71
72 void ReadDigitsArrayFromTree(TTree *digitsTree) const;
c47157cd 73
40164976 74 TList *GetList() const {return fList;}
85c25c2e 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 83private:
84
3abc001d 85 AliEMCALReconstructor(const AliEMCALReconstructor &); //Not implemented
86 AliEMCALReconstructor & operator = (const AliEMCALReconstructor &); //Not implemented
87
f6019cda 88 Bool_t fDebug; //! verbosity controller
9517d886 89
85c25c2e 90 TList *fList; //! List of hists (only for trigger now)
91 AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry
92
9517d886 93 static AliEMCALClusterizer* fgClusterizer; // clusterizer
0832a2bf 94 static const AliEMCALRecParam* fgkRecParam; // reconstruction
95 // parameters for EMCAL
65bdc82f 96 static AliEMCALRawUtils* fgRawUtils; // raw utilities class -
97 // only need one per reco
85c25c2e 98 static TClonesArray* fgDigitsArr; // Array with EMCAL digits
40164976 99 AliEMCALCalibData * fCalibData ; //! Calibration database if aval
100 AliCaloCalibPedestal * fPedestalData ; //! Tower status database if aval
c47157cd 101
916f1e76 102 static AliEMCALTriggerElectronics* fgTriggerProcessor;
103
104 ClassDef(AliEMCALReconstructor,9) // Reconstruction algorithm class (Base Class)
f6019cda 105
106};
107
108#endif // ALIEMCALRECONSTRUCTOR_H
916f1e76 109