ATLAS Offline Software
Namespaces | Functions
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

 CxxUtils
 

Functions

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

Detailed Description

Helper for azimuthal angle calculations.

Author
Frank Winklmeier
Date
May 2019

Definition in file phihelper.h.