47 double plainAbsDifference = std::abs(
m_value - other.m_value);
48 return plainAbsDifference <=
M_PI ? plainAbsDifference : 2*
M_PI - plainAbsDifference;
54 if (plainDifference >
M_PI) {
56 }
else if (plainDifference < -
M_PI) {
69 }
else if (
a >
M_PI) {
95 double dEta(
m_eta-other.m_eta);
96 double dPhi(
m_phi.getAbsDifference(other.m_phi));
97 return dEta*dEta + dPhi*dPhi;
Scalar eta() const
pseudorapidity method
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
Scalar phi() const
phi method
eflowAzimuth represents phi and has kinematic functions which correctly deal with phi wraparound etc.
eflowAzimuth operator-=(double deltaPhi)
eflowAzimuth & operator=(const eflowAzimuth &other)
double cycle(const eflowAzimuth &other)
eflowAzimuth operator+=(double deltaPhi)
double getAbsDifference(const eflowAzimuth &other) const
double operator()() const
double adjustRange(double a)
eflowAzimuth(const eflowAzimuth &other)
eflowAzimuth getPhi() const
eflowEtaPhiPosition(double eta, double phi)
double dR(const eflowEtaPhiPosition &other) const
double dRSq(const eflowEtaPhiPosition &other) const
eflowEtaPhiPosition()=default
eflowRangeBase is an object to represent a length in eta or phi, and this is used in eflowCellIntegra...
bool contains(const T &x)
void setCenterAndWidth(T center, double width)
std::string print() const
eflowRangeBase(const T &min, const T &max)
eflowRangeBase< double > eflowRange