ATLAS Offline Software
Loading...
Searching...
No Matches
TIDARoiParameters.cxx
Go to the documentation of this file.
1
9
10#include <cmath>
11
13
15
16
17
18#ifndef M_PI
19#define M_PI 3.141592653589793238462643383279502884197
20#endif
21
22#ifndef M_2PI
23static const float M_2PI = 2*M_PI;
24#endif
25
26#ifndef M_PIF
27static const float M_PIF = float(M_PI);
28#endif
29
30double _phicheck(double phi) {
31 if ( !(phi > -M_PIF && phi < M_PIF ) ) { // use ! of range rather than range to also catch nan etc
32 if ( phi < -M_PIF ) phi += M_2PI;
33 else phi -= M_2PI;
34 }
35 return phi;
36}
37
38
39
46
48 double phi, double phiMinus, double phiPlus,
49 double zed, double zedMinus, double zedPlus ) :
52 // m_phiMinus(_phicheck(phiMinus)), m_phiPlus(_phicheck(phiPlus)),
55{
56 // std::cout << "TIDAParameters phi: " << phiMinus << " -> " << m_phiMinus << " : " << phiPlus << " -> " << m_phiPlus << std::endl;
57}
58
59
61
#define M_PI
Scalar phi() const
phi method
#define M_2PI
static const float M_PIF
double _phicheck(double phi)
ClassImp(TIDARoiParameters) static const float M_2PI
Define M_PI ONLY if it is not already defined in <cmath>
Class to store the eta, phi, zed, parameters and ranges for the TIDARoiDescriptor class.
float etaMinus() const
float phiPlus() const
float phiMinus() const
float zedMinus() const
float zedPlus() const
float etaPlus() const