]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSimpleClusterServer.h
Reverting revision 49171;
[u/mrichter/AliRoot.git] / MUON / AliMUONSimpleClusterServer.h
1 #ifndef ALIMUONSIMPLECLUSTERSERVER_H
2 #define ALIMUONSIMPLECLUSTERSERVER_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 AliMUONSimpleClusterServer
11 /// \brief Implementation of AliMUONVClusterServer interface
12 /// 
13 // Author Laurent Aphecetche, Subatech
14
15 #ifndef ALIMUONVCLUSTERSERVER_H
16 #  include "AliMUONVClusterServer.h"
17 #endif
18
19 class AliESDMuonPad;
20 class AliMUONGeometryTransformer;
21 class AliMUONTriggerTrackToTrackerClusters;
22 class AliMUONVClusterFinder;
23 class AliMUONCluster;
24 class AliMpVSegmentation;
25 class AliMpExMap;
26 class AliMpExMapIterator;
27 class TClonesArray;
28
29 class AliMUONSimpleClusterServer : public AliMUONVClusterServer
30 {
31 public:
32   AliMUONSimpleClusterServer(AliMUONVClusterFinder* clusterFinder,
33                              const AliMUONGeometryTransformer& transformer);
34   
35   virtual ~AliMUONSimpleClusterServer();
36   
37   Int_t Clusterize(Int_t chamberId,
38                    AliMUONVClusterStore& clusterStore,
39                    const AliMpArea& area,
40                    const AliMUONRecoParam* recoParam = 0x0);
41   
42   void UseDigits(TIter& next, AliMUONVDigitStore* digitStore = 0x0);
43   
44   void Print(Option_t* opt="") const;
45
46   /// Use trigger tracks. Return kFALSE if not used.
47   virtual Bool_t UseTriggerTrackStore(AliMUONVTriggerTrackStore* trackStore);
48
49 private:
50   /// Not implemented
51   AliMUONSimpleClusterServer(const AliMUONSimpleClusterServer& rhs);
52   /// Not implemented
53   AliMUONSimpleClusterServer& operator=(const AliMUONSimpleClusterServer& rhs);
54   
55   Bool_t Overlap(Int_t detElemId, const AliMpArea& area, AliMpArea& deArea) const;
56     
57   void Global2Local(Int_t detElemId, const AliMpArea& globalArea, AliMpArea& localArea) const;
58
59   TObjArray* PadArray(Int_t detElemId, Int_t cathode) const;
60   
61   Int_t FindMCLabel(const AliMUONCluster& cluster, Int_t detElemId, const AliMpVSegmentation* seg[2]) const;
62   
63 private:
64   AliMUONVDigitStore* fDigitStore; //!< the digit store (not owner)
65   AliMUONVClusterFinder* fClusterFinder; //!< the cluster finder (owner)
66   const AliMUONGeometryTransformer& fkTransformer; //!< the geometry transformer (not owner)
67   AliMpExMap* fPads[2]; ///< map of TClonesArray of AliMUONPads
68   AliMpExMapIterator* fPadsIterator[2]; ///< iterator for the map of TClonesArray of AliMUONPads
69   AliMUONVTriggerTrackStore* fTriggerTrackStore; ///< trigger track store (if bypassing of St45 was requested) (not owner)
70   AliMUONTriggerTrackToTrackerClusters* fBypass; ///< to convert trigger track into tracker clusters (owner)
71   
72   ClassDef(AliMUONSimpleClusterServer,0) // Cluster server
73 };
74
75 #endif