]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpConstants.h
Option for customized binning (as in AliUEHist), EventMixing binning now derived...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.h
index 8da2959ae102e03e7cf7cc49da06f56d4c0569c4..bd78a79a56e4afd6779617b03f51d330c188aa1a 100755 (executable)
@@ -16,8 +16,6 @@
 #include <TObject.h>
 #include "AliMpPlaneType.h"
 
-class TVector2;
-
 class AliMpConstants : public TObject
 {
  public:
@@ -26,18 +24,23 @@ class AliMpConstants : public TObject
 
   // static compare methods
   static Bool_t  IsEqual(Double_t length1, Double_t length2);
-  static Bool_t  IsEqual(const TVector2& v1, const TVector2& v2);
+  static Bool_t  IsEqual(Double_t v1x, Double_t v1y, 
+                         Double_t v2x, Double_t v2y);
 
   // static get methods
   static Double_t LengthTolerance();
   static Double_t LengthStep();
   static Int_t    StartPadIndex();
+  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    TotalNofLocalBoards();
+  static Int_t    ManuNofChannels();
+  static Int_t    LocalBoardNofChannels();
 
  private:
                   /// unused derived functions
@@ -48,13 +51,17 @@ 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     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 
-
-  ClassDef(AliMpConstants,5) //Class for globally used constants definition
+  static const Int_t     fgkTotalNofLocalBoards; ///< total number of 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,6) //Class for globally used constants definition
 };
 
 // inline functions
@@ -65,6 +72,8 @@ inline Double_t AliMpConstants::LengthTolerance() { return fgkLengthTolerance;}
 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
@@ -73,6 +82,12 @@ inline Int_t    AliMpConstants::NofTrackingChambers() { return fgkNofTrackingCha
 inline Int_t    AliMpConstants::NofGeomModules()  { return fgkNofGeomModules;}
                 /// Return number of trigger local boards
 inline Int_t    AliMpConstants::NofLocalBoards()  { return fgkNofLocalBoards;}
+               /// Return total number of trigger local boards
+inline Int_t    AliMpConstants::TotalNofLocalBoards()  { return fgkTotalNofLocalBoards;}
+                /// 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