]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpConstants.h
New class - the factory for building mapping segmentations
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 // $MpId: AliMpConstants.h,v 1.6 2005/08/26 15:43:36 ivana Exp $
6
7 /// \ingroup basic
8 /// \class AliMpConstants
9 /// \brief Globally used constants definition.
10 ///
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
12
13 #ifndef ALI_MP_CONSTANTS_H
14 #define ALI_MP_CONSTANTS_H
15
16 #include <TObject.h>
17
18 class TVector2;
19
20 class AliMpConstants : public TObject
21 {
22  public:
23   AliMpConstants();
24   virtual ~AliMpConstants();
25
26   // static compare methods
27   static Bool_t  IsEqual(Double_t length1, Double_t length2);
28   static Bool_t  IsEqual(const TVector2& v1, const TVector2& v2);
29
30   // static get methods
31   static Double_t LengthTolerance();
32   static Double_t LengthStep();
33   static Int_t    StartPadIndex();
34
35  private:
36   // unused derived functions
37   virtual Bool_t  IsEqual(const TObject*) const { return true; }
38  
39   // static data members
40   static const Double_t  fgkLengthTolerance;// the length precision for tests
41   static const Double_t  fgkLengthStep;     // the step in length used to move from
42                                             // a geometric border inside (pad, motif)
43   static const Int_t     fgkStartPadIndex;  // global pad indices start value
44
45   ClassDef(AliMpConstants,1) //Class for globally used constants definition
46 };
47
48 // inline functions
49
50 inline Double_t AliMpConstants::LengthTolerance() {return fgkLengthTolerance;}
51 inline Double_t AliMpConstants::LengthStep()      {return fgkLengthStep;}
52 inline Int_t    AliMpConstants::StartPadIndex()   {return fgkStartPadIndex;}
53
54 #endif //ALI_MP_CONSTANTS_H