]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONConstants.cxx
1. Added array of numbers of detection elements in chambers and its getter 2. Added...
[u/mrichter/AliRoot.git] / MUON / AliMUONConstants.cxx
index 13216eb4cd2053a19133c797d646c91156a3ea84..6b066682330fe479ec965d59f711b46bfd66d688 100644 (file)
@@ -24,6 +24,9 @@ Int_t   AliMUONConstants::fgNCh = 14;
 Int_t   AliMUONConstants::fgNTrackingCh = 10;
 Int_t   AliMUONConstants::fgNTriggerCh = 4;
 Int_t   AliMUONConstants::fgNTriggerCircuit = 234;
+Int_t   AliMUONConstants::fgNofDetElements[14] =
+{ 4, 4, 4, 4, 18, 18, 26, 26, 26, 26, 18, 18, 18, 18 };
+
 Float_t AliMUONConstants::fgDefaultChamberZ[14] =
 {-533.5, -546.5, -678.5, -693.5, -964.0, -986.0, -1251.5, -1278.5, -1416.5, -1443.5,
  -1603.5, -1620.5, -1703.5, -1720.5};
@@ -32,3 +35,20 @@ Float_t  AliMUONConstants::fgDmin[7] = {  36.4,  46.2,  66.0,   80.,   80., 100.
 Float_t  AliMUONConstants::fgDmax[7]  = {183., 245., 395.,  560.,  563., 850., 900.};  
 Int_t   AliMUONConstants::fgMaxZoom = 20;
 
+//______________________________________________________________________________
+Int_t AliMUONConstants::GetChamberId(Int_t detElemId)
+{ 
+// Get chamber Id from detection element Id
+// ---
+
+  return detElemId/100 - 1;
+}  
+
+//______________________________________________________________________________
+Int_t AliMUONConstants::GetFirstDetElemId(Int_t chamberId)
+{
+// Get first detection element Id for chamber specified by chamber Id
+// ---
+
+  return (chamberId+1)*100;
+}