]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCReconstructor.h
Add task for D meson v2 with event plane in compilation
[u/mrichter/AliRoot.git] / TPC / AliTPCReconstructor.h
index df77a6d56fa6d60a25f26f63b04f9978388178bf..d618b52725e5bcfa7bb952d7789152306bf2f141 100644 (file)
 
 class AliTPCParam;
 class AliTPCclustererMI;
+class AliTPCtrackerMI;
+class AliTPCAltroEmulator;
 
 class AliTPCReconstructor: public AliReconstructor {
 public:
   AliTPCReconstructor();
   virtual ~AliTPCReconstructor();
-
   virtual void         Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
   virtual void         Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
 
@@ -27,22 +28,26 @@ public:
                               AliESDEvent* esd) const
   {FillESD((TTree*)NULL,(TTree*)NULL,esd);}
 
-  void SetRecoParam(AliTPCRecoParam * param){ fgkRecoParam = param;}
-  static const AliTPCRecoParam* GetRecoParam(){ return fgkRecoParam;}
+  static const AliTPCRecoParam* GetRecoParam() { return dynamic_cast<const AliTPCRecoParam*>(AliReconstructor::GetRecoParam(1)); }
   //
-  static Double_t GetCtgRange()     { return fgkRecoParam->GetCtgRange();}
-  static Double_t GetMaxSnpTracker(){ return fgkRecoParam->GetMaxSnpTracker();}
-  static Double_t GetMaxSnpTrack()  { return fgkRecoParam->GetMaxSnpTrack();}
+  static Double_t GetCtgRange()     { return GetRecoParam()->GetCtgRange();}
+  static Double_t GetMaxSnpTracker(){ return GetRecoParam()->GetMaxSnpTracker();}
+  static Double_t GetMaxSnpTrack()  { return GetRecoParam()->GetMaxSnpTrack();}
 
   static Int_t StreamLevel()               { return fgStreamLevel;}
   static void  SetStreamLevel(Int_t level) { fgStreamLevel = level;}
+  static void  SetAltroEmulator(AliTPCAltroEmulator *altro) { fAltroEmulator=altro;}
+  static AliTPCAltroEmulator *  GetAltroEmulator() { return fAltroEmulator;}
+
+  void ParseOptions(AliTPCtrackerMI* tracker) const;
 
 private:
+  AliTPCReconstructor(const AliTPCReconstructor&); //Not implemented
+  AliTPCReconstructor& operator=(const AliTPCReconstructor&); //Not implemented
   AliTPCParam*         GetTPCParam() const;
-  static AliTPCRecoParam *   fgkRecoParam; // reconstruction parameters
   static Int_t               fgStreamLevel; // flag for streaming      - for TPC reconstruction
   AliTPCclustererMI*         fClusterer;   // TPC clusterer
-
+  static AliTPCAltroEmulator * fAltroEmulator;    // ALTRO emulator
   ClassDef(AliTPCReconstructor, 0)   // class for the TPC reconstruction
 };