// $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"
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()
}
//_____________________________________________________________________________
-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;
}