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;
24 #include "AliReconstruction.h"
26 class AliReconstructor: public TObject {
28 AliReconstructor(): TObject(), fOption() {};
29 virtual ~AliReconstructor() {};
31 virtual void Init() {};
33 virtual Bool_t HasDigitConversion() const {return kFALSE;};
34 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
36 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
37 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
39 virtual AliVertexer* CreateVertexer() const
41 virtual AliTracker* CreateTracker() const
43 virtual AliTracker* CreateTrackleter() const
46 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
47 AliESDEvent* esd) const;
48 virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree,
49 AliESDEvent* esd) const;
51 virtual const char* GetDetectorName() const;
53 void SetOption(Option_t* option) {fOption = option;};
54 virtual Option_t* GetOption() const {return fOption.Data();};
56 void SetRecoParam(const AliDetectorRecoParam *par);
57 static const AliDetectorRecoParam* GetRecoParam(Int_t iDet);
60 TString fOption; //! option for reconstruction
61 static const AliDetectorRecoParam* fgRecoParam[AliReconstruction::kNDetectors]; //! event reconstruction parameters for all detectors
63 ClassDef(AliReconstructor, 0) // base class for reconstruction algorithms