ATLAS Offline Software
Loading...
Searching...
No Matches
CaloPhiRange.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef CALOGEOHELPER_CALOPHIRANGE_H
13#define CALOGEOHELPER_CALOPHIRANGE_H
14
15#include <numbers>
25
26
28{
29public:
30 static double twopi ();
31 static double phi_min ();
32 static double phi_max ();
33
34 static double fix ( double phi );
35
38 static double diff ( double phi1, double phi2 );
39
40private:
41 constexpr static const double m_phi_min = -std::numbers::pi;
42 constexpr static const double m_twopi = 2*std::numbers::pi;
43 constexpr static const double m_phi_max = std::numbers::pi;
44};
45
46inline double CaloPhiRange::twopi()
47{ return m_twopi;}
48
49inline double CaloPhiRange::phi_min()
50{ return m_phi_min;}
51
52inline double CaloPhiRange::phi_max()
53{ return m_phi_max;}
54
55#endif // CALODETDESCR_CALOPHIRANGE_H
Scalar phi() const
phi method
This class defines the phi convention for Calorimeters.
static double twopi()
static constexpr const double m_phi_max
static constexpr const double m_twopi
static double phi_max()
static double fix(double phi)
static constexpr const double m_phi_min
static double phi_min()
static double diff(double phi1, double phi2)
simple phi1 - phi2 calculation, but result is fixed to respect range.