]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSReconstructor.h
Loaders removed from the reconstruction code (C.Cheshkov)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.h
1 #ifndef ALIPHOSRECONSTRUCTOR_H
2 #define ALIPHOSRECONSTRUCTOR_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 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.11  2007/07/24 17:20:35  policheh
12  * Usage of RecoParam objects instead of hardcoded parameters in reconstruction.
13  * (See $ALICE_ROOT/PHOS/macros/BeamTest2006/RawReconstruction.C).
14  *
15  * Revision 1.10  2007/07/11 13:43:30  hristov
16  * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
17  *
18  * Revision 1.9  2006/11/15 16:05:03  kharlov
19  * New FillESD() for raw data is added
20  *
21  * Revision 1.8  2005/05/28 14:19:04  schutz
22  * Compilation warnings fixed by T.P.
23  *
24  */
25
26 //_________________________________________________________________________
27 //  Wrapping class for reconstruction
28 //*--
29 //*-- Author: Yves Schutz (SUBATECH) 
30 // Reconstruction class. Redesigned from the old AliReconstructionner class and 
31 // derived from STEER/AliReconstructor. 
32 //_________________________________________________________________________
33
34 // --- ROOT system ---
35
36 #include "AliReconstructor.h" 
37 class AliPHOSDigitizer ;
38 class AliPHOSClusterizer ;
39 class AliPHOSTrackSegmentMaker ;
40 class AliPHOSPID ;
41 class AliPHOSSDigitizer ;
42 class AliESDEvent ;
43 class AliRawReader; 
44 class AliPHOSRecoParam;
45 class AliPHOSGeometry;
46
47 // --- Standard library ---
48
49 // --- AliRoot header files ---
50
51 class AliPHOSReconstructor : public AliReconstructor {
52
53 public:
54
55   AliPHOSReconstructor() ; //ctor            
56   AliPHOSReconstructor(const AliPHOSReconstructor & rec) :
57     AliReconstructor(rec),
58     fGeom(rec.fGeom)
59     {
60     // cpy ctor: 
61     // requested by the Coding Convention
62     Fatal("cpy ctor", "not implemented") ;
63   }
64   ~AliPHOSReconstructor() ; //dtor            
65   static void                SetDebug()   { fgDebug = kTRUE ; }
66   static void                ResetDebug() { fgDebug = kFALSE ; }
67   static Bool_t              Debug() { return fgDebug ; }
68   AliTracker *CreateTracker(AliRunLoader* runLoader) const;
69   using AliReconstructor::FillESD;
70   virtual void               FillESD(TTree* digitsTree, TTree* clustersTree, 
71                                      AliESDEvent* esd) const;
72   using AliReconstructor::Reconstruct;
73   virtual Bool_t             HasLocalReconstruction() const {return kTRUE;};
74   virtual void               Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
75   //  virtual void               Reconstruct(AliRunLoader* runLoader) const ;
76   //  virtual void               Reconstruct(AliRunLoader* runLoader, AliRawReader * rawreader) const ;
77
78   virtual Bool_t             HasDigitConversion() const {return kTRUE;};
79   virtual void               ConvertDigits(AliRawReader* /*rawReader*/, TTree* /*digitsTree*/) const;
80
81   AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/)  {
82     // assignement operator requested by coding convention but not needed
83     Fatal("operator =", "not implemented") ;
84     return *this ; 
85   }
86   
87   void SetRecoParamEmc(AliPHOSRecoParam * param){ fgkRecoParamEmc = param;}
88   void SetRecoParamCpv(AliPHOSRecoParam * param){ fgkRecoParamCpv = param;}
89
90   static const AliPHOSRecoParam* GetRecoParamEmc(){ return fgkRecoParamEmc;}
91   static const AliPHOSRecoParam* GetRecoParamCpv(){ return fgkRecoParamCpv;}
92
93 private:
94   
95   static Bool_t fgDebug ; //! verbosity controller
96   static AliPHOSRecoParam*   fgkRecoParamEmc; // reconstruction parameters for EMC
97   static AliPHOSRecoParam*   fgkRecoParamCpv; // reconstruction parameters for EMC
98   AliPHOSGeometry*           fGeom;           // pointer to the PHOS geometry
99
100   ClassDef(AliPHOSReconstructor,3)  // PHOS Reconstruction class
101
102 }; 
103
104 #endif // ALIPHOSRECONSTRUCTOR_H