]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpConstants.cxx
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.cxx
index 887135d1a96fd66076ececd54ef90f0437afa6dc..da9c92fc0acd061bf6994920521d8a0f67998aab 100755 (executable)
 // $Id$
 // $MpId: AliMpConstants.cxx,v 1.11 2006/05/24 13:58:29 ivana Exp $
 // Category: basic
-//
+
+//-----------------------------------------------------------------------------
 // Class AliMpConstants
 // --------------------
 // Class for globally used constants definition.
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
+//-----------------------------------------------------------------------------
 
 #include "AliMpConstants.h"
 
@@ -36,8 +38,15 @@ ClassImp(AliMpConstants)
 const Double_t AliMpConstants::fgkLengthTolerance = 1e-05; // 0.1 mum
 const Double_t AliMpConstants::fgkLengthStep = 0.1; // 1 mm
 const Int_t    AliMpConstants::fgkStartPadIndex = 1;
-const Int_t    AliMpConstants::fgkNCh = 14;
-const Int_t AliMpConstants::fgkNonBendingManuMask(1<<10);
+const Int_t    AliMpConstants::fgkNofCathodes = 2;
+const Int_t    AliMpConstants::fgkNofChambers = 14;
+const Int_t    AliMpConstants::fgkNofTrackingChambers = 10;
+const Int_t    AliMpConstants::fgkNofGeomModules = 20;
+const Int_t    AliMpConstants::fgkNofLocalBoards = 234;
+const Int_t    AliMpConstants::fgkTotalNofLocalBoards = 242;
+const Int_t    AliMpConstants::fgkNonBendingManuMask(1<<10);
+const Int_t    AliMpConstants::fgkManuNofChannels(64);
+const Int_t    AliMpConstants::fgkLocalBoardNofChannels(16);
 
 //_____________________________________________________________________________
 AliMpConstants::AliMpConstants()
@@ -71,11 +80,17 @@ Bool_t  AliMpConstants::IsEqual(const TVector2& v1, const TVector2& v2)
 }
 
 //_____________________________________________________________________________
-Int_t
-AliMpConstants::ManuMask(AliMpPlaneType planeType)
+Int_t AliMpConstants::ManuMask(AliMp::PlaneType planeType)
 {
-  //
-  // The manuIDs get an offset if they are in the non-bending plane
-  //
-  return ( planeType == kNonBendingPlane ) ? fgkNonBendingManuMask : 0;
+/// The manuIDs get an offset if they are in the non-bending plane
+
+  return ( planeType == AliMp::kNonBendingPlane ) ? fgkNonBendingManuMask : 0;
+}
+
+//_____________________________________________________________________________
+Int_t AliMpConstants::NofTriggerChambers() 
+{ 
+/// Return number of trigger chambers
+
+  return fgkNofChambers - fgkNofTrackingChambers;
 }