]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONSegmentationManager.h
Updated for replacement of AliMpReader with AliMpSectorReader
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentationManager.h
CommitLineData
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
9#ifndef ROOT_TObject
10#include "TObject.h"
11#endif
12
13#ifndef ROOT_TExMap
14#include "TExMap.h"
15#endif
16
17#include "AliMpPlaneType.h"
18
19class AliMpSlat;
20class AliMpVSegmentation;
21
22class AliMUONSegmentationManager : public TObject
23{
24public:
25 AliMUONSegmentationManager();
26 virtual ~AliMUONSegmentationManager();
27
28 static Bool_t IsValidDetElemId(Int_t detElemId);
29
30 static AliMpVSegmentation* Segmentation(Int_t detElemId,
31 AliMpPlaneType planeType);
32
33private:
34
35 static const char* SlatType(Int_t detElemId);
36
37 static AliMpSlat* ReadSlat(Int_t detElemId, AliMpPlaneType planeType);
38
39 static bool ReadDetElemIdToSlatType();
40
41 static AliMpVSegmentation* ReadSegmentation(Int_t detElemId,
42 AliMpPlaneType planeType);
43
44 static TExMap fgDetElemIdToSlatTypeMap; // map of int to TObjString
45
46 static TExMap fgMap; // map of int to TPair<AliMpVSegmentation*, AliMpVSegmentation*>
47
48 ClassDef(AliMUONSegmentationManager,1) // Holder for various segmentations
49};
50
51#endif