]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerConstants.cxx
Generates the number of buspatches and DDL's per detection element (Christian)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerConstants.cxx
index 80a44754ee274cc0a0f3e2eb0c1cc7005ccc2d67..b0c84a572ea787fcfbc0de6168ed39524fe0d113 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.1  2000/06/26 09:57:57  pcrochet
-New class which contains quantities previously defined as global variables
-
-*/
+/* $Id$ */
 
 #include "AliMUONTriggerConstants.h"
 
@@ -26,6 +21,7 @@ ClassImp(AliMUONTriggerConstants)
 
 //----------------------------------------------------------------------
 AliMUONTriggerConstants::AliMUONTriggerConstants()
+  : TNamed()
 {
 // constructor
     ;
@@ -38,11 +34,11 @@ AliMUONTriggerConstants::~AliMUONTriggerConstants()
 }
 
 //----------------------------------------------------------------------
-const Int_t AliMUONTriggerConstants::fgNmodule = 126;
+const Int_t AliMUONTriggerConstants::fgkNmodule = 126;
 
 //----------------------------------------------------------------------
 // conv : line-column (line : from top to bottom, column : from left to right)
-const Int_t AliMUONTriggerConstants::fgModuleId[126] = 
+const Int_t AliMUONTriggerConstants::fgkModuleId[126] = 
 {11,12,13,14,15,16,17,         // right side of the chamber
  21,22,23,24,25,26,27,
  31,32,33,34,35,36,37,
@@ -63,7 +59,7 @@ const Int_t AliMUONTriggerConstants::fgModuleId[126] =
  -91,-92,-93,-94,-95,-96,-97};
 
 //----------------------------------------------------------------------
-const Int_t AliMUONTriggerConstants::fgNstripX[126]=
+const Int_t AliMUONTriggerConstants::fgkNstripX[126]=
 {16,16,16,16,16,16,16,  // right side of the chamber 
  32,32,32,32,32,32,16,
  32,32,32,32,32,32,16,
@@ -84,7 +80,7 @@ const Int_t AliMUONTriggerConstants::fgNstripX[126]=
  16,16,16,16,16,16,16};
 
 //----------------------------------------------------------------------  
-const Int_t AliMUONTriggerConstants::fgNstripY[126]=
+const Int_t AliMUONTriggerConstants::fgkNstripY[126]=
 { 8, 8, 8, 8, 8, 8,16,  // right side of the chamber
   8, 8, 8, 8, 8, 8,16,
   16,16,16,16,16, 8,16,
@@ -105,8 +101,9 @@ const Int_t AliMUONTriggerConstants::fgNstripY[126]=
   8, 8, 8, 8, 8, 8,16};
 
 //----------------------------------------------------------------------  
-const Float_t AliMUONTriggerConstants::fgXcMin[126]=
-{2.,36.,70.,104.,138.,172.,206., // right
+const Float_t AliMUONTriggerConstants::fgkXcMin[126]=
+{
+ 2.,36.,70.,104.,138.,172.,206., // left
  2.,36.,70.,104.,138.,172.,206.,
  2.,36.,70.,104.,138.,172.,206.,
  2.,36.,70.,104.,138.,172.,206.,
@@ -115,28 +112,30 @@ const Float_t AliMUONTriggerConstants::fgXcMin[126]=
  2.,36.,70.,104.,138.,172.,206.,
  2.,36.,70.,104.,138.,172.,206.,
  2.,36.,70.,104.,138.,172.,206.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274., //left
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
-   0.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.,
- -36.,-70.,-104.,-138.,-172.,-206.,-274.};
+ -36.,-70.,-104.,-138.,-172.,-206.,-257., //right
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+   0.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ -36.,-70.,-104.,-138.,-172.,-206.,-257.,
+ };
 
 //----------------------------------------------------------------------  
-const Float_t AliMUONTriggerConstants::fgXcMax[126]=
-{36.,70.,104.,138.,172.,206.,274., //right
- 36.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274.,
-  0.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274.,
- 36.,70.,104.,138.,172.,206.,274., 
- -2.,-36.,-70.,-104.,-138.,-172.,-206., // left
+const Float_t AliMUONTriggerConstants::fgkXcMax[126]=
+{
+ 36.,70.,104.,138.,172.,206.,257., //left
+ 36.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257.,
+  0.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257.,
+ 36.,70.,104.,138.,172.,206.,257., 
+ -2.,-36.,-70.,-104.,-138.,-172.,-206., // right
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
@@ -144,10 +143,11 @@ const Float_t AliMUONTriggerConstants::fgXcMax[126]=
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
  -2.,-36.,-70.,-104.,-138.,-172.,-206.,
- -2.,-36.,-70.,-104.,-138.,-172.,-206.};
+ -2.,-36.,-70.,-104.,-138.,-172.,-206.,
+};
 
 //----------------------------------------------------------------------  
-const Int_t AliMUONTriggerConstants::fgCircuitId[234]=
+const Int_t AliMUONTriggerConstants::fgkCircuitId[234]=
 {111, 121, 131, 141, 151, 161, 171,
  211, 212, 221, 222, 231, 232, 241, 242, 251, 252, 261, 262, 271,
  311, 312, 321, 322, 331, 332, 341, 342, 351, 352, 361, 362, 371,
@@ -171,54 +171,68 @@ const Int_t AliMUONTriggerConstants::fgCircuitId[234]=
  -811, -812, -821, -822, -831, -832, -841, -842, -851, -852, -861, -862, -871,
  -911, -921, -931, -941, -951, -961, -971};
 
+//----------------------------------------------------------------------  
+const Float_t AliMUONTriggerConstants::fgkStripWidth[3]={1.0625, 2.125, 4.25};
 
+//----------------------------------------------------------------------  
+const Float_t AliMUONTriggerConstants::fgkStripLength[4]={17., 34., 51., 68.};
 
 //----------------------------------------------------------------------
 // methods which returns public static const data
 //----------------------------------------------------------------------
 Int_t AliMUONTriggerConstants::Nmodule()
 {
-// returns fgNmodule
-    return fgNmodule;    
+// returns fgkNmodule
+    return fgkNmodule;    
 }
 //----------------------------------------------------------------------
 Int_t AliMUONTriggerConstants::ModuleId(Int_t imodule)
 {
-// returns fgModuleId
-    return fgModuleId[imodule];
+// returns fgkModuleId
+    return fgkModuleId[imodule];
 }
 //----------------------------------------------------------------------
 Int_t AliMUONTriggerConstants::NstripX(Int_t imodule) 
 {
-// returns fgNstripX
-    return fgNstripX[imodule];
+// returns fgkNstripX
+    return fgkNstripX[imodule];
 }
 //----------------------------------------------------------------------
 Int_t AliMUONTriggerConstants::NstripY(Int_t imodule)
 {
-// return fgNstripY
-    return fgNstripY[imodule];
+// return fgkNstripY
+    return fgkNstripY[imodule];
 }
 //----------------------------------------------------------------------
 Float_t AliMUONTriggerConstants::XcMin(Int_t imodule)
 {
-// returns fgXcMin
-    return fgXcMin[imodule];
+// returns fgkXcMin
+    return fgkXcMin[imodule];
 }
 //----------------------------------------------------------------------
 Float_t AliMUONTriggerConstants::XcMax(Int_t imodule)
 {
-// returns fgXcMax
-    return fgXcMax[imodule];
+// returns fgkXcMax
+    return fgkXcMax[imodule];
 }
 //----------------------------------------------------------------------
 Int_t AliMUONTriggerConstants::CircuitId(Int_t icircuit)
 {
-// returns fgCircuitId
-    return fgCircuitId[icircuit];
+// returns fgkCircuitId
+    return fgkCircuitId[icircuit];
+}
+//----------------------------------------------------------------------
+Float_t AliMUONTriggerConstants::StripWidth(Int_t istrip)
+{
+// returns fgkStripWidth
+    return fgkStripWidth[istrip];
+}
+//----------------------------------------------------------------------
+Float_t AliMUONTriggerConstants::StripLength(Int_t istrip)
+{
+// returns fgkStripLength
+    return fgkStripLength[istrip];
 }
-
-