]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONGeometryDEIndexing.h
- Removed AliMUONSegmentationManager; added AliMUONSegFactory
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryDEIndexing.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup base
7 /// \class AliMUONGeometryDEIndexing
8 /// \brief Conversion between the detection element Id and the array index
9 ///
10 /// The class that provides static methods for conversions
11 /// between the module & detection element Id
12 /// and the index in the array.
13 /// Used in storing DE transformations and segmentations.
14 /// The detection elements numbering:
15 ///    DetElemId = chamberId*100 + detElemNum
16 ///                where  chamberId  = 1, 2, ..., 14
17 ///                       detElemNum = 0, 1, ...
18 ///
19 /// Author: Ivana Hrivnacova, IPN Orsay
20
21 #ifndef ALI_MUON_GEOMETRY_DE_INDEXING_H
22 #define ALI_MUON_GEOMETRY_DE_INDEXING_H
23
24 class AliMUONGeometryDEIndexing 
25 {
26   public:
27     // static methods
28     static  Int_t GetModuleId(Int_t detElemId);
29     static  Int_t GetDEIndex(Int_t detElemId);
30     static  Int_t GetDEId(Int_t moduleId, Int_t detElemIndex);
31
32   private:
33     AliMUONGeometryDEIndexing() {}
34     ~AliMUONGeometryDEIndexing() {}
35     
36     // data members
37     static  const Int_t fgkSeparator; 
38 };
39
40 #endif //ALI_MUON_GEOMETRY_DE_INDEXING_H