]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALITPCRECONSTRUCTOR_H | |
2 | #define ALITPCRECONSTRUCTOR_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 | #include "AliReconstructor.h" | |
9 | #include "AliTPCRecoParam.h" | |
10 | ||
11 | class AliTPCParam; | |
12 | ||
13 | ||
14 | class AliTPCReconstructor: public AliReconstructor { | |
15 | public: | |
16 | AliTPCReconstructor(); | |
17 | virtual ~AliTPCReconstructor() {if (fgkRecoParam) delete fgkRecoParam;}; | |
18 | ||
19 | virtual void Reconstruct(AliRunLoader* runLoader) const; | |
20 | virtual void Reconstruct(AliRunLoader* runLoader, | |
21 | AliRawReader* rawReader) const; | |
22 | virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const { | |
23 | AliReconstructor::Reconstruct(digitsTree,clustersTree); | |
24 | } | |
25 | virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const { | |
26 | AliReconstructor::Reconstruct(rawReader,clustersTree); | |
27 | } | |
28 | virtual AliTracker* CreateTracker(AliRunLoader* runLoader) const; | |
29 | virtual void FillESD(AliRunLoader* runLoader, AliESD* esd) const; | |
30 | virtual void FillESD(TTree* digitsTree, TTree* clustersTree, | |
31 | AliESD* esd) const { | |
32 | AliReconstructor::FillESD(digitsTree,clustersTree,esd); | |
33 | } | |
34 | virtual void FillESD(AliRawReader* rawReader, TTree* clustersTree, | |
35 | AliESD* esd) const { | |
36 | AliReconstructor::FillESD(rawReader,clustersTree,esd); | |
37 | } | |
38 | virtual void FillESD(AliRunLoader* runLoader, | |
39 | AliRawReader* rawReader, AliESD* esd) const { | |
40 | AliReconstructor::FillESD(runLoader,rawReader,esd); | |
41 | } | |
42 | ||
43 | void SetRecoParam(AliTPCRecoParam * param){ fgkRecoParam = param;} | |
44 | static const AliTPCRecoParam* GetRecoParam(){ return fgkRecoParam;} | |
45 | // | |
46 | static Double_t GetCtgRange() { return fgkRecoParam->GetCtgRange();} | |
47 | static Double_t GetMaxSnpTracker(){ return fgkRecoParam->GetMaxSnpTracker();} | |
48 | static Double_t GetMaxSnpTrack() { return fgkRecoParam->GetMaxSnpTrack();} | |
49 | ||
50 | static Int_t StreamLevel() { return fgStreamLevel;} | |
51 | static void SetStreamLevel(Int_t level) { fgStreamLevel = level;} | |
52 | ||
53 | private: | |
54 | AliTPCParam* GetTPCParam(AliRunLoader* runLoader) const; | |
55 | static AliTPCRecoParam * fgkRecoParam; // reconstruction parameters | |
56 | static Int_t fgStreamLevel; // flag for streaming - for TPC reconstruction | |
57 | ||
58 | ClassDef(AliTPCReconstructor, 0) // class for the TPC reconstruction | |
59 | }; | |
60 | ||
61 | #endif |