Major commit related to steering of the reco parameters: AliDAQ and trigger classes...
[u/mrichter/AliRoot.git] / TPC / AliTPCReconstructor.h
index df77a6d..56870f0 100644 (file)
@@ -27,19 +27,17 @@ 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;}
 
 private:
   AliTPCParam*         GetTPCParam() const;
-  static AliTPCRecoParam *   fgkRecoParam; // reconstruction parameters
   static Int_t               fgStreamLevel; // flag for streaming      - for TPC reconstruction
   AliTPCclustererMI*         fClusterer;   // TPC clusterer