17 #define BOOST_TEST_MODULE ( charge_test ) 18 #include "boost/test/unit_test.hpp" 40 BOOST_TEST(obj.
charge() == charge);
56 bool const hasCharge =
false;
76 bool const hasCharge =
true;
BOOST_AUTO_TEST_CASE(ChargeTestDefaultConstructor_testcase)
void ChargeTestDefaultConstructor()
void CheckCharge(recob::PointCharge const &obj, bool hasCharge, recob::PointCharge::Charge_t charge)
static constexpr Charge_t InvalidCharge
Value used for default-constructed ("invalid") charge.
Information about charge reconstructed in the active volume.
constexpr bool hasCharge() const
Returns whether the reconstructed charge value is valid.
float Charge_t
Type for the amount of reconstructed charge.
void ChargeTestValueConstructors()
constexpr Charge_t charge() const
Returns the stored value of the reconstructed charge.
Charge reconstructed in the active volume.