32 : has_intersections_(
false) {}
35 : has_intersections_(
true)
36 , intersections_(std::make_pair(t1, t2)) {}
39 : has_intersections_(
true)
40 , intersections_(std::make_pair(
41 t, std::numeric_limits<TimeType::value_type>::infinity() * second)) {}
43 bool hasIntersections()
const {
return has_intersections_; }
47 if (has_intersections_)
48 return intersections_.first;
50 return std::numeric_limits<TimeType::value_type>::infinity() * second;
55 if (has_intersections_)
56 return intersections_.second;
58 return std::numeric_limits<TimeType::value_type>::infinity() * second;
62 bool has_intersections_;
63 std::pair<TimeType, TimeType> intersections_;
Import and extend the phys::units package.
TimeType getExit() const
! where did the trajectory currently exit the volume
Container to store and return a list of intersections of a trajectory with a geometric volume objects...
`, since they are used everywhere as integral part of the framework.
TimeType getEntry() const
! where did the trajectory currently enter the volume