]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONReconstructor.h
- Use new AliMpSlatMotifMap::Instance() function to instantiate
[u/mrichter/AliRoot.git] / MUON / AliMUONReconstructor.h
1 #ifndef ALIMUONRECONSTRUCTOR_H
2 #define ALIMUONRECONSTRUCTOR_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup rec
10 /// \class AliMUONReconstructor
11 /// \brief Implementation of AliReconstructor for MUON (both tracker and trigger)
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ALIRECONSTRUCTOR_H
16 #  include "AliReconstructor.h"
17 #endif
18
19 class AliMUONDigitMaker;
20 class AliMUONVDigitStore;
21 class AliMUONVTriggerStore;
22
23 class AliMUONGeometryTransformer;
24
25 class AliMUONTriggerCrateStore;
26 class AliMUONTriggerCircuit;
27 class TClonesArray;
28 class AliMUONVTriggerStore;
29
30 class AliMUONDigitCalibrator;
31 class AliMUONCalibrationData;
32
33 class AliMUONTracker;
34 class AliMUONVTrackStore;
35
36 class AliMUONTriggerChamberEff;
37
38 class AliMUONRecoParam;
39
40 class AliMUONVClusterFinder;
41
42 class AliMUONVClusterServer;
43
44 class AliMUONReconstructor : public AliReconstructor
45 {
46 public:
47   AliMUONReconstructor();
48   virtual ~AliMUONReconstructor();
49   
50   virtual Bool_t HasDigitConversion() const;
51
52   virtual void ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const;
53   
54   virtual void Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const;
55   
56   virtual void Reconstruct(TTree* digitsTree, TTree* clustersTree) const;
57   
58   virtual AliTracker* CreateTracker() const;
59   
60   static const AliMUONRecoParam* GetRecoParam();
61   
62 private:
63   /// Not implemented
64   AliMUONReconstructor(const AliMUONReconstructor&);
65   /// Not implemented
66   AliMUONReconstructor& operator=(const AliMUONReconstructor&);
67   
68   void ConvertDigits(AliRawReader* rawReader, 
69                      AliMUONVDigitStore* digitStore,
70                      AliMUONVTriggerStore* triggerStore) const;
71   void Calibrate(AliMUONVDigitStore& digitStore) const;
72   AliMUONTriggerCrateStore* CrateManager() const;
73   void CreateCalibrator() const;
74   AliMUONVClusterFinder* CreateClusterFinder(const char* clusterFinderType) const;
75   void CreateDigitMaker() const;
76   void CreateTriggerCircuit() const;
77   void CreateClusterServer() const;
78   void CreateTriggerChamberEff() const;
79   void FillTreeR(AliMUONVTriggerStore* triggerStore,
80                  TTree& clustersTree) const;
81   
82   AliMUONVDigitStore* DigitStore() const;
83   AliMUONVTriggerStore* TriggerStore() const;
84
85 private:
86   mutable AliMUONTriggerCrateStore* fCrateManager; //!< Trigger Crate manager
87   mutable AliMUONDigitMaker* fDigitMaker; //!< Raw to Digits converter
88   AliMUONGeometryTransformer* fTransformer; //!< Geometry transformer (local<->global)
89   mutable AliMUONVDigitStore* fDigitStore; //!< Digit container
90   mutable AliMUONTriggerCircuit* fTriggerCircuit; //!< Trigger Circuit
91   mutable AliMUONCalibrationData* fCalibrationData; //!< Calibration data
92   mutable AliMUONDigitCalibrator* fDigitCalibrator; //!<  Digit to calibrate digit converter
93   mutable AliMUONVClusterServer* fClusterServer; //!<  Clusterizer
94   mutable AliMUONVTriggerStore* fTriggerStore; //!< Trigger container
95   mutable AliMUONVTrackStore* fTrackStore; //!< Track container
96   mutable AliMUONTriggerChamberEff* fTrigChamberEff; //!< pointer to trigger chamber efficiency class
97   
98   static AliMUONRecoParam* fgRecoParam; //!< parameters used to tune the MUON reconstruction
99   
100   ClassDef(AliMUONReconstructor,4) // Implementation of AliReconstructor
101 };
102
103 #endif