]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpConstants.h
Adding new libraries
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
13985652 5// $MpId: AliMpConstants.h,v 1.11 2006/05/24 13:58:07 ivana Exp $
dee1d5f1 6
7/// \ingroup basic
8/// \class AliMpConstants
9/// \brief Globally used constants definition.
10///
13985652 11/// \author David Guez, Ivana Hrivnacova; IPN Orsay
5f91c9e8 12
13#ifndef ALI_MP_CONSTANTS_H
14#define ALI_MP_CONSTANTS_H
15
16#include <TObject.h>
d08b9187 17#include "AliMpPlaneType.h"
2998a151 18
19class TVector2;
5f91c9e8 20
21class AliMpConstants : public TObject
22{
23 public:
24 AliMpConstants();
25 virtual ~AliMpConstants();
26
27 // static compare methods
28 static Bool_t IsEqual(Double_t length1, Double_t length2);
29 static Bool_t IsEqual(const TVector2& v1, const TVector2& v2);
30
31 // static get methods
32 static Double_t LengthTolerance();
33 static Double_t LengthStep();
34 static Int_t StartPadIndex();
185ce53f 35 static Int_t NofChambers();
6061eac6 36 static Int_t NofTrackingChambers();
185ce53f 37 static Int_t NofGeomModules();
cddd101e 38 static Int_t ManuMask(AliMp::PlaneType planeType);
d08b9187 39
5f91c9e8 40 private:
f5671fc3 41 /// unused derived functions
5f91c9e8 42 virtual Bool_t IsEqual(const TObject*) const { return true; }
43
44 // static data members
829425a5 45 static const Double_t fgkLengthTolerance;///< the length precision for tests
46 static const Double_t fgkLengthStep; ///< \brief the step in length used to move from
47 /// a geometric border inside (pad, motif)
48 static const Int_t fgkStartPadIndex; ///< global pad indices start value
185ce53f 49 static const Int_t fgkNofChambers; ///< number of chambers
6061eac6 50 static const Int_t fgkNofTrackingChambers; ///< number of tracking chambers
185ce53f 51 static const Int_t fgkNofGeomModules; ///< number of geometry modules
829425a5 52 static const Int_t fgkNonBendingManuMask; ///< bit to set to indicate a manu located in non-bending plane
d08b9187 53
6061eac6 54 ClassDef(AliMpConstants,4) //Class for globally used constants definition
5f91c9e8 55};
56
57// inline functions
58
f5671fc3 59 /// Return the length precision for tests
185ce53f 60inline Double_t AliMpConstants::LengthTolerance() { return fgkLengthTolerance;}
f5671fc3 61 /// Return the step in length used to move from a geometric border
185ce53f 62inline Double_t AliMpConstants::LengthStep() { return fgkLengthStep;}
f5671fc3 63 /// Return global pad indices start value
185ce53f 64inline Int_t AliMpConstants::StartPadIndex() { return fgkStartPadIndex;}
f5671fc3 65 /// Return number of chambers
185ce53f 66inline Int_t AliMpConstants::NofChambers() { return fgkNofChambers;}
6061eac6 67 /// Return number of tracking chambers
68inline Int_t AliMpConstants::NofTrackingChambers() { return fgkNofTrackingChambers;}
f5671fc3 69 /// Return number of geometry modules
185ce53f 70inline Int_t AliMpConstants::NofGeomModules() { return fgkNofGeomModules;}
5f91c9e8 71
72#endif //ALI_MP_CONSTANTS_H
d08b9187 73