ATLAS Offline Software
Loading...
Searching...
No Matches
phihelper.h File Reference

Helper for azimuthal angle calculations. More...

#include <cmath>
#include <type_traits>
Include dependency graph for phihelper.h:

Go to the source code of this file.

Namespaces

namespace  CxxUtils

Functions

template<typename T>
CxxUtils::wrapToPi (T phi)
 Wrap angle in radians to [-pi, pi].
template<typename T>
CxxUtils::deltaPhi (T phiA, T phiB)
 Return difference phiA - phiB in range [-pi, pi].
template<typename T>
CxxUtils::phiMean (T phiA, T phiB)
 Calculate average of two angles.
template<typename T>
CxxUtils::phiBisect (T phiA, T phiB)
 Bisect (average) the angle spanned by phiA and phiB.

Detailed Description

Helper for azimuthal angle calculations.

Author
Frank Winklmeier
Date
May 2019

Definition in file phihelper.h.