1 #ifndef ALIRECONSTRUCTOR_H
2 #define ALIRECONSTRUCTOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 // base class for reconstruction algorithm
10 // Derived classes should implement a default constructor and
11 // the virtual methods
22 class AliDetectorRecoParam;
26 #include "AliReconstruction.h"
28 class AliReconstructor: public TObject {
30 AliReconstructor(): TObject(), fOption(), fRunInfo(0x0), fEventInfo(0x0) {};
31 virtual ~AliReconstructor() {};
33 virtual void Init() {};
35 virtual Bool_t HasDigitConversion() const {return kFALSE;};
36 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
38 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
39 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
41 virtual AliVertexer* CreateVertexer() const
43 virtual AliTracker* CreateTracker() const
45 virtual AliTracker* CreateTrackleter() const
48 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
49 AliESDEvent* esd) const;
50 virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree,
51 AliESDEvent* esd) const;
53 virtual const char* GetDetectorName() const;
55 void SetOption(Option_t* option) {fOption = option;};
56 virtual Option_t* GetOption() const {return fOption.Data();};
58 void SetRunInfo(AliRunInfo *runInfo) {fRunInfo = runInfo;}
59 const AliRunInfo* GetRunInfo() const {return fRunInfo;}
60 void SetEventInfo(AliEventInfo *evInfo) {fEventInfo = evInfo;}
61 const AliEventInfo* GetEventInfo() const {return fEventInfo;}
63 void SetRecoParam(const AliDetectorRecoParam *par);
64 static const AliDetectorRecoParam* GetRecoParam(Int_t iDet);
68 AliReconstructor(const AliReconstructor &); // Not implemented
69 AliReconstructor& operator=(const AliReconstructor &); // Not implemented
71 TString fOption; //! option for reconstruction
72 static const AliDetectorRecoParam* fgRecoParam[AliReconstruction::kNDetectors]; //! event reconstruction parameters for all detectors
73 AliRunInfo* fRunInfo; //! pointer to the run info object
74 AliEventInfo* fEventInfo; //! pointer to the event info object
76 ClassDef(AliReconstructor, 0) // base class for reconstruction algorithms