Fixed index (Adam)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructor.h
CommitLineData
f444a19f 1#ifndef ALIPHOSRECONSTRUCTOR_H
2#define ALIPHOSRECONSTRUCTOR_H
d15a28e7 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6ad0bfa0 6/* $Id$ */
7
702ab87e 8/* History of cvs commits:
9 *
10 * $Log$
d76c31f4 11 * Revision 1.13 2007/08/30 10:40:27 cvetan
12 * Minor
13 *
64c8ff4e 14 * Revision 1.12 2007/08/28 12:55:08 policheh
15 * Loaders removed from the reconstruction code (C.Cheshkov)
16 *
9a2cdbdf 17 * Revision 1.11 2007/07/24 17:20:35 policheh
18 * Usage of RecoParam objects instead of hardcoded parameters in reconstruction.
19 * (See $ALICE_ROOT/PHOS/macros/BeamTest2006/RawReconstruction.C).
20 *
3799bcb5 21 * Revision 1.10 2007/07/11 13:43:30 hristov
22 * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
23 *
af885e0f 24 * Revision 1.9 2006/11/15 16:05:03 kharlov
25 * New FillESD() for raw data is added
26 *
dd7ee508 27 * Revision 1.8 2005/05/28 14:19:04 schutz
28 * Compilation warnings fixed by T.P.
29 *
702ab87e 30 */
31
b2a60966 32//_________________________________________________________________________
9a6ec61a 33// Wrapping class for reconstruction
a3dfe79c 34//*--
dfe0be07 35//*-- Author: Yves Schutz (SUBATECH)
36// Reconstruction class. Redesigned from the old AliReconstructionner class and
37// derived from STEER/AliReconstructor.
38//_________________________________________________________________________
d15a28e7 39
40// --- ROOT system ---
41
dfe0be07 42#include "AliReconstructor.h"
7acf6008 43class AliPHOSDigitizer ;
44class AliPHOSClusterizer ;
45class AliPHOSTrackSegmentMaker ;
46class AliPHOSPID ;
47class AliPHOSSDigitizer ;
af885e0f 48class AliESDEvent ;
dd7ee508 49class AliRawReader;
3799bcb5 50class AliPHOSRecoParam;
9a2cdbdf 51class AliPHOSGeometry;
d15a28e7 52
53// --- Standard library ---
54
55// --- AliRoot header files ---
56
dfe0be07 57class AliPHOSReconstructor : public AliReconstructor {
d15a28e7 58
59public:
60
f444a19f 61 AliPHOSReconstructor() ; //ctor
9a2cdbdf 62 AliPHOSReconstructor(const AliPHOSReconstructor & rec) :
63 AliReconstructor(rec),
64 fGeom(rec.fGeom)
65 {
7acf6008 66 // cpy ctor:
839ffcb3 67 // requested by the Coding Convention
f1611b7c 68 Fatal("cpy ctor", "not implemented") ;
839ffcb3 69 }
0379a13e 70 ~AliPHOSReconstructor() ; //dtor
2e60107f 71 static void SetDebug() { fgDebug = kTRUE ; }
72 static void ResetDebug() { fgDebug = kFALSE ; }
73 static Bool_t Debug() { return fgDebug ; }
d76c31f4 74 AliTracker *CreateTracker() const;
702ab87e 75 using AliReconstructor::FillESD;
9a2cdbdf 76 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
77 AliESDEvent* esd) const;
702ab87e 78 using AliReconstructor::Reconstruct;
9a2cdbdf 79 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
9a2cdbdf 80
81 virtual Bool_t HasDigitConversion() const {return kTRUE;};
64c8ff4e 82 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
364de5c6 83
f444a19f 84 AliPHOSReconstructor & operator = (const AliPHOSReconstructor & /*rvalue*/) {
a3dfe79c 85 // assignement operator requested by coding convention but not needed
35293055 86 Fatal("operator =", "not implemented") ;
839ffcb3 87 return *this ;
88 }
89
3799bcb5 90 void SetRecoParamEmc(AliPHOSRecoParam * param){ fgkRecoParamEmc = param;}
91 void SetRecoParamCpv(AliPHOSRecoParam * param){ fgkRecoParamCpv = param;}
92
93 static const AliPHOSRecoParam* GetRecoParamEmc(){ return fgkRecoParamEmc;}
94 static const AliPHOSRecoParam* GetRecoParamCpv(){ return fgkRecoParamCpv;}
95
d15a28e7 96private:
97
2e60107f 98 static Bool_t fgDebug ; //! verbosity controller
3799bcb5 99 static AliPHOSRecoParam* fgkRecoParamEmc; // reconstruction parameters for EMC
100 static AliPHOSRecoParam* fgkRecoParamCpv; // reconstruction parameters for EMC
9a2cdbdf 101 AliPHOSGeometry* fGeom; // pointer to the PHOS geometry
7acf6008 102
d76c31f4 103 ClassDef(AliPHOSReconstructor,4) // PHOS Reconstruction class
d15a28e7 104
105};
106
f444a19f 107#endif // ALIPHOSRECONSTRUCTOR_H