]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliReconstructor.h
Added method GetDeltaForBranch getting the delta transformation, for a sensitive...
[u/mrichter/AliRoot.git] / STEER / AliReconstructor.h
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                               */
5
6 /* $Id$ */
7
8 //
9 // base class for reconstruction algorithm
10 // Derived classes should implement a default constructor and
11 // the virtual methods
12 //
13
14 #include <TObject.h>
15 #include <TString.h>
16
17 class TTree;
18 class AliRawReader;
19 class AliVertexer;
20 class AliTracker;
21 class AliESDEvent;
22
23
24 class AliReconstructor: public TObject {
25 public:
26   AliReconstructor(): TObject(), fOption() {};
27   virtual ~AliReconstructor() {};
28
29   virtual void         Init() {};
30
31   virtual Bool_t       HasDigitConversion() const {return kFALSE;};
32   virtual void         ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
33
34   virtual void         Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
35   virtual void         Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
36
37   virtual AliVertexer* CreateVertexer() const 
38     {return NULL;}
39   virtual AliTracker*  CreateTracker() const 
40     {return NULL;}
41
42   virtual void         FillESD(TTree* digitsTree, TTree* clustersTree, 
43                                AliESDEvent* esd) const;
44   virtual void         FillESD(AliRawReader* rawReader, TTree* clustersTree, 
45                                AliESDEvent* esd) const;
46
47   virtual const char*  GetDetectorName() const;
48
49   void                 SetOption(Option_t* option) {fOption = option;};
50   virtual Option_t*    GetOption() const {return fOption.Data();};
51
52 private:
53   TString              fOption;   //! option for reconstruction
54
55   ClassDef(AliReconstructor, 0)   // base class for reconstruction algorithms
56 };
57
58 #endif