6#ifndef TRIGT2CALOEGAMMA_PHICOMPS_H
7#define TRIGT2CALOEGAMMA_PHICOMPS_H
18 if (reverse_wrap)
return (phi_center < (1.0 -
M_PI));
19 else return (phi_center > (
M_PI - 1.0));
28 if (phi_value > 0.)
return (phi_value - 2*
M_PI);
30 if (phi_value < 0.)
return (phi_value + 2*
M_PI);
Namespace dedicated for Ringer utilities.
bool check_wrap_around(const double phi_center, const bool reverse_wrap)
Helper function to identify wrap around cases.
double fix_wrap_around(const double phi_value, const bool reverse_wrap)
Helper function to fix wrap around cases.