]>
Commit | Line | Data |
---|---|---|
90e8f97c | 1 | #ifndef ALIMUONSEGMENTATIONMANAGER_H |
2 | #define ALIMUONSEGMENTATIONMANAGER_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 | ||
692de412 | 9 | /// \ingroup base |
10 | /// \class AliMUONSegmentationManager | |
11 | /// \brief Segmentation manager | |
12 | ||
90e8f97c | 13 | #ifndef ROOT_TObject |
79a5624e | 14 | # include "TObject.h" |
90e8f97c | 15 | #endif |
16 | ||
79a5624e | 17 | #ifndef ALI_MP_EX_MAP_H |
18 | # include "AliMpExMap.h" | |
90e8f97c | 19 | #endif |
20 | ||
79a5624e | 21 | #ifndef ALI_MP_PLANE_TYPE |
22 | # include "AliMpPlaneType.h" | |
23 | #endif | |
24 | ||
25 | #ifndef ALI_MP_STATION_TYPE | |
26 | # include "AliMpStationType.h" | |
27 | #endif | |
90e8f97c | 28 | |
29 | class AliMpSlat; | |
79a5624e | 30 | class AliMpTriggerSegmentation; |
90e8f97c | 31 | class AliMpVSegmentation; |
79a5624e | 32 | class TList; |
90e8f97c | 33 | |
34 | class AliMUONSegmentationManager : public TObject | |
35 | { | |
36 | public: | |
37 | AliMUONSegmentationManager(); | |
38 | virtual ~AliMUONSegmentationManager(); | |
39 | ||
40 | static Bool_t IsValidDetElemId(Int_t detElemId); | |
41 | ||
42 | static AliMpVSegmentation* Segmentation(Int_t detElemId, | |
43 | AliMpPlaneType planeType); | |
79a5624e | 44 | |
45 | static TList* SegmentationList(Int_t localBoardNumber); | |
90e8f97c | 46 | |
79a5624e | 47 | static const char* DetElemName(Int_t detElemId); |
48 | ||
49 | static AliMpStationType StationType(Int_t detElemId); | |
50 | ||
90e8f97c | 51 | private: |
52 | ||
79a5624e | 53 | static void FillLocalBoardMap(AliMpTriggerSegmentation* seg); |
90e8f97c | 54 | |
79a5624e | 55 | static const char* SlatType(Int_t detElemId); |
90e8f97c | 56 | |
79a5624e | 57 | static bool ReadDetElemIdToName(AliMpStationType stationType); |
90e8f97c | 58 | |
59 | static AliMpVSegmentation* ReadSegmentation(Int_t detElemId, | |
60 | AliMpPlaneType planeType); | |
61 | ||
79a5624e | 62 | static AliMpExMap fgDetElemIdToNameMap; // map of int to TObjString |
63 | ||
64 | static AliMpExMap fgMap; // map of int to TPair<AliMpVSegmentation*, AliMpVSegmentation*> | |
90e8f97c | 65 | |
79a5624e | 66 | static AliMpExMap fgLocalBoardMap; // map of int to TList* of AliMpVSegmentation* |
90e8f97c | 67 | |
68 | ClassDef(AliMUONSegmentationManager,1) // Holder for various segmentations | |
69 | }; | |
70 | ||
71 | #endif |