4 // Class AliMpConstants
5 // --------------------
6 // Class for globally used constants definition.
7 // Included in AliRoot: 2003/05/02
8 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
13 #include "AliMpConstants.h"
15 ClassImp(AliMpConstants)
18 const Double_t AliMpConstants::fgkLengthTolerance = 1e-04; // 0.1 mum;
19 const Double_t AliMpConstants::fgkLengthStep = 1.; // 1 mm;
20 const Int_t AliMpConstants::fgkStartPadIndex = 1;
22 //_____________________________________________________________________________
23 AliMpConstants::AliMpConstants()
28 //_____________________________________________________________________________
29 AliMpConstants::~AliMpConstants() {
33 //_____________________________________________________________________________
34 Bool_t AliMpConstants::IsEqual(Double_t length1, Double_t length2)
36 // Compares lengths within the length tolerance.
39 return TMath::Abs(length1 - length2) < fgkLengthTolerance;
43 //_____________________________________________________________________________
44 Bool_t AliMpConstants::IsEqual(const TVector2& v1, const TVector2& v2)
46 // Compares x, y vector coordinates within the length tolerance.
49 return ( TMath::Abs(v1.X() - v2.X())
50 + TMath::Abs(v1.Y() - v2.Y())) < 2.*fgkLengthTolerance;