]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpConstants.h
Main changes:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.h
index dbe15222e64a82e3723869de23a775668827efd6..1add9e71faf48cc0c0611d60ef1e366f79d18fd5 100755 (executable)
@@ -32,11 +32,18 @@ class AliMpConstants : public TObject
   static Double_t LengthTolerance();
   static Double_t LengthStep();
   static Int_t    StartPadIndex();
-  static Int_t    NCh();
-  static Int_t    ManuMask(AliMpPlaneType planeType);
-  
+  static Int_t    NofCathodes();
+  static Int_t    NofChambers();
+  static Int_t    NofTrackingChambers();
+  static Int_t    NofTriggerChambers();
+  static Int_t    NofGeomModules();
+  static Int_t    ManuMask(AliMp::PlaneType planeType);
+  static Int_t    NofLocalBoards();
+  static Int_t    ManuNofChannels();
+  static Int_t    LocalBoardNofChannels();
+
  private:
-  // unused derived functions
+                  /// unused derived functions
   virtual Bool_t  IsEqual(const TObject*) const { return true; }
  
   // static data members
@@ -44,18 +51,40 @@ class AliMpConstants : public TObject
   static const Double_t  fgkLengthStep;     ///< \brief the step in length used to move from
                                             /// a geometric border inside (pad, motif)
   static const Int_t     fgkStartPadIndex;  ///< global pad indices start value
-  static const Int_t     fgkNCh;            ///< number of chambers
+  static const Int_t     fgkNofCathodes;    ///< number of cathodes
+  static const Int_t     fgkNofChambers;    ///< number of chambers
+  static const Int_t     fgkNofTrackingChambers; ///< number of tracking chambers
+  static const Int_t     fgkNofGeomModules; ///< number of geometry modules
   static const Int_t     fgkNonBendingManuMask; ///< bit to set to indicate a manu located in non-bending plane
+  static const Int_t     fgkNofLocalBoards;  ///< number of notified trigger local boards 
+  static const Int_t     fgkManuNofChannels; ///< max number of channels per manu
+  static const Int_t     fgkLocalBoardNofChannels; ///< max number of channels per local trigger board
   
-  ClassDef(AliMpConstants,3) //Class for globally used constants definition
+  ClassDef(AliMpConstants,6) //Class for globally used constants definition
 };
 
 // inline functions
 
-inline Double_t AliMpConstants::LengthTolerance() {return fgkLengthTolerance;}
-inline Double_t AliMpConstants::LengthStep()      {return fgkLengthStep;}
-inline Int_t    AliMpConstants::StartPadIndex()   {return fgkStartPadIndex;}
-inline Int_t    AliMpConstants::NCh()             {return fgkNCh;}
+                /// Return the length precision for tests
+inline Double_t AliMpConstants::LengthTolerance() { return fgkLengthTolerance;}
+                /// Return the step in length used to move from a geometric border
+inline Double_t AliMpConstants::LengthStep()      { return fgkLengthStep;}
+                /// Return global pad indices start value
+inline Int_t    AliMpConstants::StartPadIndex()   { return fgkStartPadIndex;}
+                /// Return number of cathodes
+inline Int_t    AliMpConstants::NofCathodes()     { return fgkNofCathodes;}
+                /// Return number of chambers
+inline Int_t    AliMpConstants::NofChambers()     { return fgkNofChambers;}
+                /// Return number of tracking chambers
+inline Int_t    AliMpConstants::NofTrackingChambers() { return fgkNofTrackingChambers;}
+                /// Return number of geometry modules
+inline Int_t    AliMpConstants::NofGeomModules()  { return fgkNofGeomModules;}
+                /// Return number of trigger local boards
+inline Int_t    AliMpConstants::NofLocalBoards()  { return fgkNofLocalBoards;}
+                /// Max number of channels per manu
+inline Int_t    AliMpConstants::ManuNofChannels() { return fgkManuNofChannels; }
+                /// Max number of channels per local board
+inline Int_t    AliMpConstants::LocalBoardNofChannels() { return fgkLocalBoardNofChannels; }
 
 #endif //ALI_MP_CONSTANTS_H