New class AliESDEvent, backward compatibility with the old AliESD (Christian)
[u/mrichter/AliRoot.git] / STEER / AliReconstructor.h
CommitLineData
59697224 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
0742d588 8//
9// base class for reconstruction algorithm
10// Derived classes should implement a default constructor and
11// the virtual methods
12//
13
59697224 14#include <TObject.h>
efd2085e 15#include <TString.h>
59697224 16
b26c3770 17class TTree;
59697224 18class AliRunLoader;
b649205a 19class AliRawReader;
59697224 20class AliVertexer;
21class AliTracker;
af885e0f 22class AliESDEvent;
59697224 23
24
25class AliReconstructor: public TObject {
26public:
efd2085e 27 AliReconstructor(): TObject(), fOption() {};
c757bafd 28 virtual ~AliReconstructor() {};
29
b26c3770 30 virtual void Init(AliRunLoader* /*runLoader*/) {};
31
32 virtual Bool_t HasDigitConversion() const {return kFALSE;};
33 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
34
35 virtual Bool_t HasLocalReconstruction() const {return kFALSE;};
36 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
37 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
38 virtual void Reconstruct(AliRunLoader* runLoader) const;
b649205a 39 virtual void Reconstruct(AliRunLoader* runLoader,
40 AliRawReader* rawReader) const;
b26c3770 41
59697224 42 virtual AliVertexer* CreateVertexer(AliRunLoader* /*runLoader*/) const
43 {return NULL;}
44 virtual AliTracker* CreateTracker(AliRunLoader* /*runLoader*/) const
45 {return NULL;}
b26c3770 46
47 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
af885e0f 48 AliESDEvent* esd) const;
b26c3770 49 virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree,
af885e0f 50 AliESDEvent* esd) const;
51 virtual void FillESD(AliRunLoader* runLoader, AliESDEvent* esd) const;
b649205a 52 virtual void FillESD(AliRunLoader* runLoader,
af885e0f 53 AliRawReader* rawReader, AliESDEvent* esd) const;
59697224 54
c757bafd 55 virtual const char* GetDetectorName() const;
56
efd2085e 57 void SetOption(Option_t* option) {fOption = option;};
58 virtual Option_t* GetOption() const {return fOption.Data();};
59
60private:
61 TString fOption; //! option for reconstruction
62
59697224 63 ClassDef(AliReconstructor, 0) // base class for reconstruction algorithms
64};
65
66#endif