Simple test on a recob::Trajectory object. More...
#include "boost/test/unit_test.hpp"
#include "lardataobj/RecoBase/Trajectory.h"
#include "larcoreobj/SimpleTypesAndConstants/PhysicalConstants.h"
#include "TVector3.h"
#include "TMatrixD.h"
#include <algorithm>
#include <tuple>
#include <iostream>
Go to the source code of this file.
Classes | |
struct | Expected_t |
Macros | |
#define | BOOST_TEST_MODULE ( tracktrajectory_test ) |
Functions | |
template<typename T > | |
void | CheckValue (T v, T exp, T tol, std::string tag="") |
template<typename VectA , typename VectB > | |
void | CheckVectorsEqual (VectA const &v, VectB const &exp) |
template<typename VectA , typename VectB > | |
void | CheckVectorsClose (VectA const &v, VectB const &exp, double tol=0.01) |
recob::Trajectory::Rotation_t | makeRotationMatrix (TMatrixD const &Tm) |
void | TestTrajectory (recob::Trajectory const &traj, Expected_t const &expected) |
void | TrajectoryTestDefaultConstructor () |
void | TrajectoryTestMainConstructor () |
BOOST_AUTO_TEST_CASE (TrajectoryTestDefaultConstructorTestCase) | |
BOOST_AUTO_TEST_CASE (TrajectoryTestMainConstructorTestCase) | |
Simple test on a recob::Trajectory object.
This test simply creates recob::Trajectory objects and verifies that the values it can access are the right ones.
See http://www.boost.org/libs/test for the Boost test library home page.
Definition in file Trajectory_test.cc.
#define BOOST_TEST_MODULE ( tracktrajectory_test ) |
Definition at line 26 of file Trajectory_test.cc.
BOOST_AUTO_TEST_CASE | ( | TrajectoryTestDefaultConstructorTestCase | ) |
Definition at line 456 of file Trajectory_test.cc.
BOOST_AUTO_TEST_CASE | ( | TrajectoryTestMainConstructorTestCase | ) |
Definition at line 460 of file Trajectory_test.cc.
void CheckValue | ( | T | v, |
T | exp, | ||
T | tol, | ||
std::string | tag = "" |
||
) |
Definition at line 61 of file Trajectory_test.cc.
void CheckVectorsClose | ( | VectA const & | v, |
VectB const & | exp, | ||
double | tol = 0.01 |
||
) |
Definition at line 75 of file Trajectory_test.cc.
void CheckVectorsEqual | ( | VectA const & | v, |
VectB const & | exp | ||
) |
Definition at line 68 of file Trajectory_test.cc.
recob::Trajectory::Rotation_t makeRotationMatrix | ( | TMatrixD const & | Tm | ) |
Definition at line 82 of file Trajectory_test.cc.
void TestTrajectory | ( | recob::Trajectory const & | traj, |
Expected_t const & | expected | ||
) |
Definition at line 89 of file Trajectory_test.cc.
void TrajectoryTestDefaultConstructor | ( | ) |
Definition at line 295 of file Trajectory_test.cc.
void TrajectoryTestMainConstructor | ( | ) |
Definition at line 329 of file Trajectory_test.cc.