![]() |
Iguana 1.2.1
Implementation Guardian of Analysis Algorithms
|
physics tools
Functions | |
| double | AdjustAnglePi (double ang) |
| shift angle to the range \((-\pi,+\pi]\) | |
| double | AdjustAngleTwoPi (double ang) |
| shift angle to the range \((0,2\pi]\) | |
| template<typename MOMENTUM_TYPE, typename AXIS_TYPE> | |
| std::optional< double > | ParticleRapidity (MOMENTUM_TYPE const &momentum_vec, AXIS_TYPE const &axis_vec) |
| calculate the rapidity of a particle, relative to an axis | |
| std::optional< double > | PlaneAngle (ROOT::Math::XYZVector const v_a, ROOT::Math::XYZVector const v_b, ROOT::Math::XYZVector const v_c, ROOT::Math::XYZVector const v_d) |
| calculate the angle between two planes | |
| std::optional< ROOT::Math::XYZVector > | ProjectVector (ROOT::Math::XYZVector const v_a, ROOT::Math::XYZVector const v_b) |
| projection of one vector onto another | |
| std::optional< ROOT::Math::XYZVector > | RejectVector (ROOT::Math::XYZVector const v_a, ROOT::Math::XYZVector const v_b) |
| projection of one vector onto the plane transverse to another vector | |
| std::optional< double > | VectorAngle (ROOT::Math::XYZVector const v_a, ROOT::Math::XYZVector const v_b) |
| calculate the angle between two vectors | |
Variables | |
| double const | UNDEF {-10000} |
| a value used when some calculation fails | |
| double iguana::physics::tools::AdjustAnglePi | ( | double | ang | ) |
shift angle to the range \((-\pi,+\pi]\)
| ang | the angle, in radians |
| double iguana::physics::tools::AdjustAngleTwoPi | ( | double | ang | ) |
shift angle to the range \((0,2\pi]\)
| ang | the angle, in radians |
| std::optional< double > iguana::physics::tools::ParticleRapidity | ( | MOMENTUM_TYPE const & | momentum_vec, |
| AXIS_TYPE const & | axis_vec ) |
calculate the rapidity of a particle, relative to an axis
Given a particle momentum, this method calculates the rapidity of the boost along an axis which takes an observer to the frame in which the particle is moving perpendicular to the axis
| momentum_vec | the particle 4-momentum |
| axis_vec | the axis 3-vector |
| std::optional< double > iguana::physics::tools::PlaneAngle | ( | ROOT::Math::XYZVector const | v_a, |
| ROOT::Math::XYZVector const | v_b, | ||
| ROOT::Math::XYZVector const | v_c, | ||
| ROOT::Math::XYZVector const | v_d ) |
calculate the angle between two planes
The two planes are transverse to \(\vec{v}_a\times\vec{v}_b\) and \(\vec{v}_c\times\vec{v}_d\)
| v_a | vector \(\vec{v}_a\) |
| v_b | vector \(\vec{v}_b\) |
| v_c | vector \(\vec{v}_c\) |
| v_d | vector \(\vec{v}_d\) |
| std::optional< ROOT::Math::XYZVector > iguana::physics::tools::ProjectVector | ( | ROOT::Math::XYZVector const | v_a, |
| ROOT::Math::XYZVector const | v_b ) |
projection of one vector onto another
| v_a | vector \(\vec{v}_a\) |
| v_b | vector \(\vec{v}_b\) |
| std::optional< ROOT::Math::XYZVector > iguana::physics::tools::RejectVector | ( | ROOT::Math::XYZVector const | v_a, |
| ROOT::Math::XYZVector const | v_b ) |
projection of one vector onto the plane transverse to another vector
| v_a | vector \(\vec{v}_a\) |
| v_b | vector \(\vec{v}_b\) |
| std::optional< double > iguana::physics::tools::VectorAngle | ( | ROOT::Math::XYZVector const | v_a, |
| ROOT::Math::XYZVector const | v_b ) |
calculate the angle between two vectors
| v_a | vector \(\vec{v}_a\) |
| v_b | vector \(\vec{v}_b\) |