]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALGeoParams.h
Adding a reminder for coders
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGeoParams.h
index 0c16ae6307f0beb257491e79ea7315e55b854507..16578513b682b0d6c1d9e9665e1b2061f17035d3 100644 (file)
@@ -6,8 +6,7 @@
 /* $Id: AliEMCALGeoParams.h $ */
 
 //////////////////////////////////////////////////////////
-// class for holding various parameters; to be used by new 
-// AliEMCALGeoUtils class //
+// class for holding various parameters; 
 //////////////////////////////////////////////////////////
 
 class AliEMCALGeoParams
@@ -20,10 +19,21 @@ public:
   static const int fgkEMCALCols = 48; // number of columns per module for EMCAL
 
   static const int fgkEMCALLEDRefs = 24; // number of LEDs (reference/monitors) per module for EMCAL; one per StripModule
+  static const int fgkEMCALTempSensors = 8; // number Temperature sensors per module for EMCAL
+
+  Int_t GetStripModule(Int_t iSM, Int_t iCol) const
+    // Strip 0 is the one closest to the FEE crates; different for A (iColumn/2) and C sides
+    { return ( (iSM%2==0) ? iCol/2 : AliEMCALGeoParams::fgkEMCALLEDRefs - 1 - iCol/2 ); }
 
   // also a few readout related variables:
+  static const int fgkLastAltroDDL = 43; // 0..23 (i.e. 24) for EMCAL; 24..43 (i.e. 20) allocated for DCAL 
   static const int fgkSampleMax = 1023; // highest possible sample value (10-bit = 0x3ff)
+  static const int fgkOverflowCut = 950; // saturation starts around here; also exist as private constant in AliEMCALRawUtils, should probably be replaced
   static const int fgkSampleMin = 0; // lowest possible sample value 
+
+  // TRU numbers
+  static const int fgkEMCALTRUsPerSM = 3; // number of TRU's in a SuperModule
+  static const int fgkEMCAL2x2PerTRU = 96; // number of 2x2's in a TRU
   
   // RAW/AliCaloAltroMapping provides the correspondence information between
   // an electronics HWAddress (Branch<<1 | FEC<<7 | ALTRO<<4 | Channel) 
@@ -47,7 +57,7 @@ public:
   Int_t GetCSPFromAddress(Int_t i) const { return ( i & 0x1f ); }; // 
 
   /* // Below is some placeholder info that can later be added
-     // in AliEMCALGeoUtils, together with the Get methods just above 
+     // in AliEMCALGeometry, together with the Get methods just above 
 
   // But which CSP (0..31) corresponds to which ALTRO and Channel is not 
   // given anywhere (CSPs are used for APD biases etc).