73 <<
"Less that fTrajPoint trajectory points, bailing." <<
std::endl;
82 <<
"Bogus trajectory point bailing." <<
std::endl;
96 <<
"Shower start position not set" <<
std::endl;
99 TVector3 StartPosition_vec = {-999, -999, -999};
101 StartPosition.SetCoordinates(
102 StartPosition_vec.X(), StartPosition_vec.Y(), StartPosition_vec.Z());
105 StartPosition = InitialTrack.
Start();
109 Direction_vec = (TrajPosition - StartPosition).Unit();
116 TVector3
Direction = {Direction_vec.X(), Direction_vec.Y(), Direction_vec.Z()};
117 TVector3 DirectionErr = {-999, -999, -999};
static constexpr Flag_t NoPoint
The trajectory point is not defined.
Point_t const & LocationAtPoint(size_t i) const
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
size_t NumberTrajectoryPoints() const
Various functions related to the presence and the number of (valid) points.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
Point_t const & Start() const
Access to track position at different points.
bool CheckElement(const std::string &Name) const
int GetElement(const std::string &Name, T &Element) const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
PointFlags_t const & FlagsAtPoint(size_t i) const
Vector_t DirectionAtPoint(size_t i) const
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
QTextStream & endl(QTextStream &s)