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 */
8 #include "AliReconstructor.h"
9 #include "AliTPCRecoParam.h"
12 class AliTPCclusterer;
14 class AliTPCAltroEmulator;
17 class AliTPCReconstructor: public AliReconstructor {
19 AliTPCReconstructor();
20 virtual ~AliTPCReconstructor();
21 virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
22 virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
24 virtual AliTracker* CreateTracker() const;
26 virtual void FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/,
27 AliESDEvent* esd) const;
28 virtual void FillESD(AliRawReader* /*rawReader*/, TTree* /*clustersTree*/,
29 AliESDEvent* esd) const
30 {FillESD((TTree*)NULL,(TTree*)NULL,esd);}
32 static const AliTPCRecoParam* GetRecoParam() { return dynamic_cast<const AliTPCRecoParam*>(AliReconstructor::GetRecoParam(1)); }
33 virtual void GetPidSettings(AliESDpid *esdPID);
36 static Double_t GetCtgRange() { return GetRecoParam()->GetCtgRange();}
37 static Double_t GetMaxSnpTracker(){ return GetRecoParam()->GetMaxSnpTracker();}
38 static Double_t GetMaxSnpTrack() { return GetRecoParam()->GetMaxSnpTrack();}
40 static Int_t StreamLevel() { return fgStreamLevel;}
41 static void SetStreamLevel(Int_t level) { fgStreamLevel = level;}
42 static void SetAltroEmulator(AliTPCAltroEmulator *altro) { fAltroEmulator=altro;}
43 static AliTPCAltroEmulator * GetAltroEmulator() { return fAltroEmulator;}
45 void ParseOptions(AliTPCtracker* tracker) const;
48 AliTPCReconstructor(const AliTPCReconstructor&); //Not implemented
49 AliTPCReconstructor& operator=(const AliTPCReconstructor&); //Not implemented
50 AliTPCParam* GetTPCParam() const;
51 static Int_t fgStreamLevel; // flag for streaming - for TPC reconstruction
52 AliTPCclusterer* fClusterer; // TPC clusterer
53 static AliTPCAltroEmulator * fAltroEmulator; // ALTRO emulator
55 TObjArray *fArrSplines; // array of pid splines
57 void SetSplinesFromOADB(const char* tmplt, AliESDpid *esdPID);
59 ClassDef(AliTPCReconstructor, 0) // class for the TPC reconstruction