ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4Util Namespace Reference

Functions

template<class T >
constexpr T square (T x)
 square
 
template<class T >
constexpr T get_r (T x, T y)
 radius
 
template<class T >
const T delta_phi (T phi1, T phi2)
 angle difference between [-pi, pi[
 
template<float(PHG4Hit::*)(int) const accessor>
float interpolate (std::set< PHG4Hit * > hits, float rextrap)
 calculate the best average of member function called on all members in collection, extrapolated at a given radius
 

Function Documentation

template<class T >
const T QAG4Util::delta_phi ( T  phi1,
T  phi2 
)
inline

angle difference between [-pi, pi[

Definition at line 33 of file QAG4Util.h.

View newest version in sPHENIX GitHub at line 33 of file QAG4Util.h

References M_PI.

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), QAG4SimulationMvtx::evaluate_clusters(), QAG4SimulationIntt::evaluate_clusters(), QAG4SimulationTpc::evaluate_clusters(), RawClusterBuilderTopo::get_adjacent_towers_by_ID(), getVectors::process_event(), PHTpcDeltaZCorrection::process_track(), TpcDirectLaserReconstruction::process_track(), and TpcSpaceChargeReconstruction::process_track().

+ Here is the caller graph for this function:

template<class T >
constexpr T QAG4Util::get_r ( T  x,
T  y 
)
inline
template<float(PHG4Hit::*)(int) const accessor>
float QAG4Util::interpolate ( std::set< PHG4Hit * >  hits,
float  rextrap 
)

calculate the best average of member function called on all members in collection, extrapolated at a given radius

each hit is weighted by its deposited energy

Definition at line 44 of file QAG4Util.h.

View newest version in sPHENIX GitHub at line 44 of file QAG4Util.h

References alpha, denom, get_r(), r1, square(), sw, Acts::IntegrationTest::valid(), w, and x1.

+ Here is the call graph for this function:

template<class T >
constexpr T QAG4Util::square ( T  x)
inline

square

Definition at line 19 of file QAG4Util.h.

View newest version in sPHENIX GitHub at line 19 of file QAG4Util.h

References x.

Referenced by get_r(), and interpolate().

+ Here is the caller graph for this function: