]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONConstants.h
Minor fixes in the event tag to take into account the new way of storing the trigger...
[u/mrichter/AliRoot.git] / MUON / AliMUONConstants.h
index 1af0eb3e09c4a82756d8f44b5a75060f79feb55c..181215f5a4cc0f8f7b350658ed11597e634dc229 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$*/
 // Revision of includes 07/05/2004
+//
+/// \ingroup base
+/// \class AliMUONConstants
+/// \brief MUON global constants
 
 #include <TObject.h>
 
@@ -18,26 +22,43 @@ class AliMUONConstants : public TObject {
     static Int_t    NTriggerCh() {return fgNTriggerCh;}
     // return number of trigger circuits
     static Int_t    NTriggerCircuit() {return fgNTriggerCircuit;}
-    // return number of detection elements in chamber i
-    static Int_t    NofDetElements(Int_t i) {return fgNofDetElements[i];}
+    // return number of detection element
+    static Int_t    NDetElem() {return fgNDetElem;}
     // return position of chamber i
     static Float_t  DefaultChamberZ(Int_t i) {return fgDefaultChamberZ[i];}
+    // return ratio between trigger chambers
+    static Float_t  DefaultRatioTriggerChamber(Int_t i) {return fgDefaultRatioTriggerChamber[i];}
+// return Inclination with respect the vertical axis of stations 345
+    static Float_t  St345Inclination() {return fgSt345inclination;}
     // return pointer to array of positions
     static Float_t* DefaultChamberZ() {return fgDefaultChamberZ;}
     // return chamber i inner diameter
     static Float_t  Dmin(Int_t i) {return fgDmin[i];}
+    // return chamber i inner radius
+    static Float_t  Rmin(Int_t i) {return Dmin(i)/2.0;}
     // return chamber i outer diameter
     static Float_t  Dmax(Int_t i) {return fgDmax[i];}
+    // return chamber i outer radius
+    static Float_t  Rmax(Int_t i) {return Dmax(i)/2.0;}
     // return maximum zoom for event display
     static Int_t    MaxZoom() {return fgMaxZoom;}
     // return half-distance between two half-chambers
     static Float_t    DzCh() {return fgDzCh;}
     // return half-distance between two slats
     static Float_t    DzSlat() {return fgDzSlat;}
-
-    // Conversion functions between chamber Id and detection element Id
-    static  Int_t GetChamberId(Int_t detElemId); 
-    static  Int_t GetFirstDetElemId(Int_t chamberId); 
+    static  Int_t ChamberNumber(Float_t z); 
+    // return SqrtKx3 and SqrtKy3 for Slat
+    static Float_t SqrtKx3() {return fgSqrtKx3;}
+    static Float_t SqrtKy3() {return fgSqrtKy3;}
+    // return SqrtKx3 and SqrtKy3 for Station 1 & 2
+    static Float_t SqrtKx3St1() {return fgSqrtKx3St1;}
+    static Float_t SqrtKy3St1() {return fgSqrtKy3St1;}
+       // return charge correlation (needed for response and for cluster finder !?)
+    static Float_t ChargeCorrel()    {return fgChargeCorrel;}
+    static Float_t ChargeCorrelSt1() {return fgChargeCorrelSt1;}
+     // return wire pitch
+    static Float_t Pitch()    {return fgPitch;}
+    static Float_t PitchSt1() {return fgPitchSt1;}
 
  protected:
     AliMUONConstants() : TObject() {}
@@ -48,14 +69,26 @@ class AliMUONConstants : public TObject {
     static Int_t  fgNTrackingCh;        //  Number of Tracking Chambers
     static Int_t  fgNTriggerCh;         //  Number of Trigger Chambers
     static Int_t  fgNTriggerCircuit;    //  Number of Trigger Circuits
+    static Int_t  fgNDetElem;           //  Number of Detection Elements.
 //
-    static Int_t    fgNofDetElements[14];     // ! Number of detection elements in chambers
     static Float_t  fgDefaultChamberZ[14];    // ! Z-positions of chambers
+    static Float_t  fgDefaultRatioTriggerChamber[4]; // ratio between trigger chambers
+    static Float_t  fgSt345inclination;       // ! Inclination with respect the vertical axis of stations 345
     static Float_t  fgDmin[7];                // ! inner diameter
     static Float_t  fgDmax[7];                // ! outer diameter
 
     static Float_t  fgDzCh;             // half-distance between two half-chambers 
     static Float_t  fgDzSlat;           // half-distance between two slat on the same chamber
+    static Float_t  fgSqrtKx3;          // SqrtKx3 for St2 & Slat
+    static Float_t  fgSqrtKy3;          // SqrtKy3 for St2 & Slat
+    static Float_t  fgSqrtKx3St1;       // SqrtKx3 for Station 1 
+    static Float_t  fgSqrtKy3St1;       // SqrtKy3 for Station 1 
+    static Float_t  fgChargeCorrel;      // charge correlation for St2 & Slats
+    static Float_t  fgChargeCorrelSt1;   // charge correlation for Station 1
+
+    static Float_t  fgPitch;             // wire pitch for St2 & Slats
+    static Float_t  fgPitchSt1;          // wire pitch for Station 1
 
 //
     static Int_t    fgMaxZoom;                // Maximum Zoom for event display