Iguana 0.0.0
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Tools.h
Go to the documentation of this file.
1
2
3#include <optional>
4#include <Math/Vector3D.h>
5
6namespace iguana::physics::tools {
7
9 double const UNDEF{-10000};
10
19 std::optional<double> PlaneAngle(
20 ROOT::Math::XYZVector const v_a,
21 ROOT::Math::XYZVector const v_b,
22 ROOT::Math::XYZVector const v_c,
23 ROOT::Math::XYZVector const v_d);
24
29 std::optional<ROOT::Math::XYZVector> ProjectVector(
30 ROOT::Math::XYZVector const v_a,
31 ROOT::Math::XYZVector const v_b);
32
37 std::optional<ROOT::Math::XYZVector> RejectVector(
38 ROOT::Math::XYZVector const v_a,
39 ROOT::Math::XYZVector const v_b);
40
45 std::optional<double> VectorAngle(
46 ROOT::Math::XYZVector const v_a,
47 ROOT::Math::XYZVector const v_b);
48
49}
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
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
double const UNDEF
a value used when some calculation fails
Definition Tools.h:9