Major commit related to steering of the reco parameters: AliDAQ and trigger classes...
[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;
b649205a 18class AliRawReader;
59697224 19class AliVertexer;
20class AliTracker;
af885e0f 21class AliESDEvent;
7e88424f 22class AliDetectorRecoParam;
59697224 23
7e88424f 24#include "AliReconstruction.h"
59697224 25
26class AliReconstructor: public TObject {
27public:
efd2085e 28 AliReconstructor(): TObject(), fOption() {};
c757bafd 29 virtual ~AliReconstructor() {};
30
d76c31f4 31 virtual void Init() {};
b26c3770 32
33 virtual Bool_t HasDigitConversion() const {return kFALSE;};
34 virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
35
b26c3770 36 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
37 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
b26c3770 38
d76c31f4 39 virtual AliVertexer* CreateVertexer() const
59697224 40 {return NULL;}
d76c31f4 41 virtual AliTracker* CreateTracker() const
59697224 42 {return NULL;}
b26c3770 43
44 virtual void FillESD(TTree* digitsTree, TTree* clustersTree,
af885e0f 45 AliESDEvent* esd) const;
b26c3770 46 virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree,
af885e0f 47 AliESDEvent* esd) const;
59697224 48
c757bafd 49 virtual const char* GetDetectorName() const;
50
efd2085e 51 void SetOption(Option_t* option) {fOption = option;};
52 virtual Option_t* GetOption() const {return fOption.Data();};
53
7e88424f 54 void SetRecoParam(const AliDetectorRecoParam *par);
55 static const AliDetectorRecoParam* GetRecoParam(Int_t iDet);
56
efd2085e 57private:
7e88424f 58 TString fOption; //! option for reconstruction
59 static const AliDetectorRecoParam* fgRecoParam[AliReconstruction::fgkNDetectors]; //! event reconstruction parameters for all detectors
efd2085e 60
59697224 61 ClassDef(AliReconstructor, 0) // base class for reconstruction algorithms
62};
63
64#endif