]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONReconstructor.h
Changing fabs into TMath::Abs
[u/mrichter/AliRoot.git] / MUON / AliMUONReconstructor.h
index 221ba658357268c50e5c75875b980f7cc6c82d9f..0994b9d9e59f766b94fb98736017f0927191ed06 100644 (file)
 #ifndef ALIMUONRECONSTRUCTOR_H
 #define ALIMUONRECONSTRUCTOR_H
+
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
+* See cxx source for full Copyright notice                               */
+
+// $Id$
+
+/// \ingroup rec
+/// \class AliMUONReconstructor
+/// \brief Implementation of AliReconstructor for MUON (both tracker and trigger)
+/// 
+// Author Laurent Aphecetche, Subatech
+
+#ifndef ALIRECONSTRUCTOR_H
+#  include "AliReconstructor.h"
+#endif
+
+class AliMUONDigitMaker;
+class AliMUONVDigitStore;
+class AliMUONVTriggerStore;
+
+class AliMUONGeometryTransformer;
 
-/* $Id$ */
-// Revision of includes 07/05/2004
+class AliMUONTriggerCrateStore;
+class AliMUONTriggerCircuit;
+class TClonesArray;
+class AliMUONVTriggerStore;
 
-#include "AliReconstructor.h"
+class AliMUONDigitCalibrator;
+class AliMUONCalibrationData;
 
-class AliMUONReconstructor: public AliReconstructor 
+class AliMUONTracker;
+class AliMUONVTrackStore;
+
+class AliMUONRecoParam;
+
+class AliMUONVClusterFinder;
+
+class AliMUONVClusterServer;
+
+class AliMUONReconstructor : public AliReconstructor
 {
-  public:
-    AliMUONReconstructor();
-    virtual ~AliMUONReconstructor();
-
-    virtual void         Reconstruct(TTree* /*digitsTree*/, 
-                                    TTree* /*clustersTree*/) const {return;}
-    virtual void         Reconstruct(AliRawReader* /*rawReader*/, 
-                                    TTree* /*clustersTree*/) const {return;}
-    virtual void         Reconstruct(AliRunLoader* runLoader) const;
-    virtual void         Reconstruct(AliRunLoader* runLoader, 
-                                   AliRawReader* rawReader) const;
-
-    virtual void         FillESD(TTree* /*digitsTree*/, TTree* /*clustersTree*/, 
-                                AliESD* /*esd*/) const {return;}
-    virtual void         FillESD(AliRawReader* /*rawReader*/, TTree* /*clustersTree*/, 
-                                AliESD* /*esd*/) const {return;}
-    virtual void         FillESD(AliRunLoader* runLoader, AliESD* esd) const;
-    virtual void         FillESD(AliRunLoader* /*runLoader*/, 
-                                AliRawReader* /*rawReader*/, AliESD* /*esd*/) const {return;}
-
-  ClassDef(AliMUONReconstructor, 0)   // class for the MUON reconstruction
+public:
+  AliMUONReconstructor();
+  virtual ~AliMUONReconstructor();
+  
+  virtual Bool_t HasDigitConversion() const;
+
+  virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
+  
+  virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
+  
+  virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
+  
+  virtual AliTracker* CreateTracker() const;
+  
+  static const AliMUONRecoParam* GetRecoParam();
+  
+  static AliMUONVClusterFinder* CreateClusterFinder(const char* clusterFinderType);
+
+private:
+  /// Not implemented
+  AliMUONReconstructor(const AliMUONReconstructor&);
+  /// Not implemented
+  AliMUONReconstructor& operator=(const AliMUONReconstructor&);
+  
+  void ConvertDigits(AliRawReader* rawReader, 
+                     AliMUONVDigitStore* digitStore,
+                     AliMUONVTriggerStore* triggerStore) const;
+  void Calibrate(AliMUONVDigitStore& digitStore) const;
+  AliMUONTriggerCrateStore* CrateManager() const;
+  void CreateCalibrator() const;
+  void CreateDigitMaker() const;
+  void CreateTriggerCircuit() const;
+  void CreateClusterServer() const;
+  void FillTreeR(AliMUONVTriggerStore* triggerStore,
+                 TTree& clustersTree) const;
+  
+  AliMUONVDigitStore* DigitStore() const;
+  AliMUONVTriggerStore* TriggerStore() const;
+  
+private:
+  mutable AliMUONTriggerCrateStore* fCrateManager; //!< Trigger Crate manager
+  mutable AliMUONDigitMaker* fDigitMaker; //!< Raw to Digits converter
+  AliMUONGeometryTransformer* fTransformer; //!< Geometry transformer (local<->global)
+  mutable AliMUONVDigitStore* fDigitStore; //!< Digit container
+  mutable AliMUONTriggerCircuit* fTriggerCircuit; //!< Trigger Circuit
+  mutable AliMUONCalibrationData* fCalibrationData; //!< Calibration data
+  mutable AliMUONDigitCalibrator* fDigitCalibrator; //!<  Digit to calibrate digit converter
+  mutable AliMUONVClusterServer* fClusterServer; //!<  Clusterizer
+  mutable AliMUONVTriggerStore* fTriggerStore; //!< Trigger container
+  mutable AliMUONVTrackStore* fTrackStore; //!< Track container
+  
+  static AliMUONRecoParam* fgRecoParam; //!< parameters used to tune the MUON reconstruction
+  
+  ClassDef(AliMUONReconstructor,6) // Implementation of AliReconstructor
 };
 
 #endif