]> 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 15f771f7b66d2ab4b65ce2f6321caee3da85d18b..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,14 +22,24 @@ 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 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
@@ -34,17 +48,17 @@ class AliMUONConstants : public TObject {
     static Float_t    DzSlat() {return fgDzSlat;}
     static  Int_t ChamberNumber(Float_t z); 
     // return SqrtKx3 and SqrtKy3 for Slat
-    static Float_t SqrtKx3Slat() {return fgSqrtKx3Slat;}
-    static Float_t SqrtKy3Slat() {return fgSqrtKy3Slat;}
+    static Float_t SqrtKx3() {return fgSqrtKx3;}
+    static Float_t SqrtKy3() {return fgSqrtKy3;}
     // return SqrtKx3 and SqrtKy3 for Station 1 & 2
-    static Float_t SqrtKx3St12() {return fgSqrtKx3St12;}
-    static Float_t SqrtKy3St12() {return fgSqrtKy3St12;}
+    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 ChargeCorrelSlat() {return fgChargeCorrelSlat;}
-    static Float_t ChargeCorrelSt12() {return fgChargeCorrelSt12;}
+    static Float_t ChargeCorrel()    {return fgChargeCorrel;}
+    static Float_t ChargeCorrelSt1() {return fgChargeCorrelSt1;}
      // return wire pitch
-    static Float_t PitchSlat() {return fgPitchSlat;}
-    static Float_t PitchSt12() {return fgPitchSt12;}
+    static Float_t Pitch()    {return fgPitch;}
+    static Float_t PitchSt1() {return fgPitchSt1;}
 
  protected:
     AliMUONConstants() : TObject() {}
@@ -55,23 +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 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  fgSqrtKx3Slat;      // SqrtKx3 for Slat
-    static Float_t  fgSqrtKy3Slat;      // SqrtKy3 for Slat
-    static Float_t  fgSqrtKx3St12;      // SqrtKx3 for Station 1 & 2
-    static Float_t  fgSqrtKy3St12;      // SqrtKy3 for Station 1 & 2
+    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  fgChargeCorrelSlat;      // charge correlation for Slats
-    static Float_t  fgChargeCorrelSt12;      // charge correlation for Station 1 & 2
+    static Float_t  fgChargeCorrel;      // charge correlation for St2 & Slats
+    static Float_t  fgChargeCorrelSt1;   // charge correlation for Station 1
 
-    static Float_t  fgPitchSlat;      // wire pitch for Slats
-    static Float_t  fgPitchSt12;      // wire pitch for Station 1 & 2
+    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