]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONReconstructor.h
Fixing minor bug recognizing diffractive events in simulation
[u/mrichter/AliRoot.git] / MUON / AliMUONReconstructor.h
index 91c0b269eb9e59aaaa80a4a304c7af6bb0213819..22d953d9929e35c274875bbe5f5ace48afe5ccad 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
 
-/* $Id$ */
-// Revision of includes 07/05/2004
+#ifndef ALIRECONSTRUCTOR_H
+#  include "AliReconstructor.h"
+#endif
+#ifndef ROOT_TObjArray
+#define "TObjArray.h"
+#endif
 
-#include "AliReconstructor.h"
+class AliMUONCalibrationData;
+class AliMUONDigitCalibrator;
+class AliMUONDigitMaker;
+class AliMUONGeometryTransformer;
+class AliMUONTracker;
+class AliMUONTriggerCircuit;
+class AliMUONVClusterFinder;
+class AliMUONVClusterServer;
+class AliMUONVClusterStore;
+class AliMUONVDigitStore;
+class AliMUONVTrackStore;
+class AliMUONVTriggerStore;
+class AliMUONTriggerElectronics;
+class TClonesArray;
+class AliMUONTriggerUtilities;
 
-class AliMUONReconstructor: public AliReconstructor 
+#include "AliMUONRecoParam.h"
+
+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;
-
-  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;
+  
+  /// Get param object
+  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;
+  void CreateCalibrationData() const;
+  void CreateCalibrator() const;
+  void CreateDigitMaker() const;
+  void CreateTriggerCircuit() const;
+  void CreateTriggerUtilities() const;
+  AliMUONVClusterServer* CreateClusterServer(const AliMUONRecoParam& rp) const;
+  void FillTreeR(AliMUONVTriggerStore* triggerStore,
+                 TTree& clustersTree) const;
+  
+  AliMUONVDigitStore* DigitStore() const;
+  AliMUONVTriggerStore* TriggerStore() const;
+  void ResponseRemovingChambers(AliMUONVTriggerStore* triggerStore) const;
+  
+private:
+
+  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 AliMUONVTriggerStore* fTriggerStore; //!< Trigger container
+  mutable AliMUONVTrackStore* fTrackStore; //!< Track container
+  mutable AliMUONVClusterStore* fClusterStore; //!< cluster store (when not in combined tracking mode)
+  mutable AliMUONTriggerElectronics* fTriggerProcessor; //!< Processor to recalculate trigger response
+  mutable AliMUONTriggerUtilities* fTriggerUtilities; //!< Trigger utilities for masks
+  mutable TObjArray fClusterServers; //!<  Clusterizers (one per event specie)
+  mutable TObjArray fTrackers; //!< trackers (one per event specie)
+    
+  ClassDef(AliMUONReconstructor,11) // Implementation of AliReconstructor
 };
 
 #endif