#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$ */
-// Revision of includes 07/05/2004
+// $Id$
/// \ingroup rec
/// \class AliMUONReconstructor
-/// \brief Class for the MUON reconstruction
+/// \brief Implementation of AliReconstructor for MUON (both tracker and trigger)
+///
+// Author Laurent Aphecetche, Subatech
-#include "AliReconstructor.h"
+#ifndef ALIRECONSTRUCTOR_H
+# include "AliReconstructor.h"
+#endif
class AliMUONCalibrationData;
-class AliMUONData;
-class TTask;
+class AliMUONDigitCalibrator;
class AliMUONDigitMaker;
+class AliMUONGeometryTransformer;
+class AliMUONRecoParam;
+class AliMUONTracker;
+class AliMUONTriggerCircuit;
+class AliMUONVClusterFinder;
+class AliMUONVClusterServer;
+class AliMUONVClusterStore;
+class AliMUONVDigitStore;
+class AliMUONVTrackStore;
+class AliMUONVTriggerStore;
+class AliMUONVTriggerStore;
+class TClonesArray;
+
+#include "AliDetectorRecoParam.h"
+#include "AliMUONRecoParam.h"
-class AliMUONReconstructor: public AliReconstructor
+class AliMUONReconstructor : public AliReconstructor
{
- public:
- AliMUONReconstructor();
- virtual ~AliMUONReconstructor();
-
- virtual void Init(AliRunLoader* runLoader);
-
- 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;
-
-private:
+public:
+ AliMUONReconstructor();
+ virtual ~AliMUONReconstructor();
+
+ virtual Bool_t HasDigitConversion() const;
- TTask* GetCalibrationTask(AliMUONData* data) 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() { return dynamic_cast<const AliMUONRecoParam*>(AliReconstructor::GetRecoParam(7)); }
+
+ static AliMUONVClusterFinder* CreateClusterFinder(const char* clusterFinderType);
private:
- AliRunLoader* fRunLoader; //!< pointer to runloader
- AliMUONDigitMaker* fDigitMaker; //!< pointer to the digit maker class
-
- mutable AliMUONCalibrationData* fCalibrationData; //!< pointer to calibration data
-
- AliMUONReconstructor(const AliMUONReconstructor& right);
- AliMUONReconstructor& operator = (const AliMUONReconstructor& right);
+ /// 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 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:
- ClassDef(AliMUONReconstructor, 0) // class for the MUON reconstruction
+ 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
+ mutable AliMUONVClusterStore* fClusterStore; //!< cluster store (when not in combined tracking mode)
+
+ ClassDef(AliMUONReconstructor,8) // Implementation of AliReconstructor
};
#endif