1 #ifndef ALIMUONSEGMENTATIONMANAGER_H
2 #define ALIMUONSEGMENTATIONMANAGER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONSegmentationManager
11 /// \brief Segmentation manager
17 #ifndef ALI_MP_EX_MAP_H
18 # include "AliMpExMap.h"
21 #ifndef ALI_MP_PLANE_TYPE
22 # include "AliMpPlaneType.h"
25 #ifndef ALI_MP_STATION_TYPE
26 # include "AliMpStationType.h"
30 class AliMpTriggerSegmentation;
31 class AliMpVSegmentation;
34 class AliMUONSegmentationManager : public TObject
37 AliMUONSegmentationManager();
38 virtual ~AliMUONSegmentationManager();
40 static Bool_t IsValidDetElemId(Int_t detElemId);
42 static AliMpVSegmentation* Segmentation(Int_t detElemId,
43 AliMpPlaneType planeType);
45 static TList* SegmentationList(Int_t localBoardNumber);
47 static const char* DetElemName(Int_t detElemId);
49 static AliMpStationType StationType(Int_t detElemId);
53 static void FillLocalBoardMap(AliMpTriggerSegmentation* seg);
55 static const char* SlatType(Int_t detElemId);
57 static bool ReadDetElemIdToName(AliMpStationType stationType);
59 static AliMpVSegmentation* ReadSegmentation(Int_t detElemId,
60 AliMpPlaneType planeType);
62 static AliMpExMap fgDetElemIdToNameMap; // map of int to TObjString
64 static AliMpExMap fgMap; // map of int to TPair<AliMpVSegmentation*, AliMpVSegmentation*>
66 static AliMpExMap fgLocalBoardMap; // map of int to TList* of AliMpVSegmentation*
68 ClassDef(AliMUONSegmentationManager,1) // Holder for various segmentations