]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpConstants.h
PadByLocation() - pass warning parameter to sector segmentation
[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>
14#include <TVector2.h>
15
16class AliMpConstants : public TObject
17{
18 public:
19 AliMpConstants();
20 virtual ~AliMpConstants();
21
22 // static compare methods
23 static Bool_t IsEqual(Double_t length1, Double_t length2);
24 static Bool_t IsEqual(const TVector2& v1, const TVector2& v2);
25
26 // static get methods
27 static Double_t LengthTolerance();
28 static Double_t LengthStep();
29 static Int_t StartPadIndex();
30
31 private:
32 // unused derived functions
33 virtual Bool_t IsEqual(const TObject*) const { return true; }
34
35 // static data members
36 static const Double_t fgkLengthTolerance;// the length precision for tests
37 static const Double_t fgkLengthStep; // the step in length used to move from
38 // a geometric border inside (pad, motif)
39 static const Int_t fgkStartPadIndex; // global pad indices start value
40
41 ClassDef(AliMpConstants,1) //Class for globally used constants definition
42};
43
44// inline functions
45
46inline Double_t AliMpConstants::LengthTolerance() {return fgkLengthTolerance;}
47inline Double_t AliMpConstants::LengthStep() {return fgkLengthStep;}
48inline Int_t AliMpConstants::StartPadIndex() {return fgkStartPadIndex;}
49
50#endif //ALI_MP_CONSTANTS_H