]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpConstants.h
Coding conventions corrections only
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConstants.h
CommitLineData
5f91c9e8 1// $Id$
2// Category: basic
3//
4// Class AliMpConstants
5// --------------------
6// Class for globally used constants definition.
7//
8// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
9
10#ifndef ALI_MP_CONSTANTS_H
11#define ALI_MP_CONSTANTS_H
12
13#include <TObject.h>
2998a151 14
15class TVector2;
5f91c9e8 16
17class AliMpConstants : public TObject
18{
19 public:
20 AliMpConstants();
21 virtual ~AliMpConstants();
22
23 // static compare methods
24 static Bool_t IsEqual(Double_t length1, Double_t length2);
25 static Bool_t IsEqual(const TVector2& v1, const TVector2& v2);
26
27 // static get methods
28 static Double_t LengthTolerance();
29 static Double_t LengthStep();
30 static Int_t StartPadIndex();
31
32 private:
33 // unused derived functions
34 virtual Bool_t IsEqual(const TObject*) const { return true; }
35
36 // static data members
37 static const Double_t fgkLengthTolerance;// the length precision for tests
38 static const Double_t fgkLengthStep; // the step in length used to move from
39 // a geometric border inside (pad, motif)
40 static const Int_t fgkStartPadIndex; // global pad indices start value
41
42 ClassDef(AliMpConstants,1) //Class for globally used constants definition
43};
44
45// inline functions
46
47inline Double_t AliMpConstants::LengthTolerance() {return fgkLengthTolerance;}
48inline Double_t AliMpConstants::LengthStep() {return fgkLengthStep;}
49inline Int_t AliMpConstants::StartPadIndex() {return fgkStartPadIndex;}
50
51#endif //ALI_MP_CONSTANTS_H