Go to the documentation of this file.
112 void move(
const double step,
const double velocity)
116 __t += step / velocity;
197 in >> static_cast<JAxis3D&>(track);
198 in >> static_cast<JTime&> (track);
213 out << static_cast<const JAxis3D&>(track);
215 out << static_cast<const JTime&> (track);
230 in >> static_cast<JAxis3D&>(track);
231 in >> static_cast<JTime&> (track);
246 out << static_cast<const JAxis3D&>(track);
247 out << static_cast<const JTime&> (track);
friend JReader & operator>>(JReader &in, JTrack3D &track)
Read track from input.
double getDot(const JVector3D &pos) const
Get cosine angle of emission of Cherenkov light on PMT.
Interface for binary input.
void move(const double step, const double velocity)
Move vertex along this track with given velocity.
double getLengthSquared() const
Get length squared.
const JDirection3D & getDirection() const
Get direction.
friend std::ostream & operator<<(std::ostream &out, const JTrack3D &track)
Write track to output.
JVertex3D getVertex() const
Get vertex of this track.
double getT() const
Get time.
JPosition3D()
Default constructor.
Data structure for normalised vector in three dimensions.
void move(const double step)
Move vertex along this axis.
JTrack3D(const JAxis3D &axis, const JTime &t0)
Constructor.
JTrack3D(const JVertex3D &vertex, const JVersor3D &dir)
Constructor.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
double getDot(const JAngle3D &angle) const
Get dot product.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JTrack3D()
Default constructor.
Data structure for vector in three dimensions.
Data structure for position in three dimensions.
Interface for binary output.
friend JWriter & operator<<(JWriter &out, const JTrack3D &track)
Write track to output.
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
JTrack3D(const JVector3D &pos, const JVersor3D &dir, const JTime &t0)
Constructor.
JTime & add(const JTime &value)
Addition operator.
JDirection3D()
Default constructor.
const JPosition3D & getPosition() const
Get position.
Auxiliary classes and methods for 3D geometrical objects and operations.
JVector3D & add(const JVector3D &vector)
Add vector.
JVector3D & sub(const JVector3D &vector)
Subtract vector.
double getDot(const JAxis3D &axis) const
Get cosine angle of impact of Cherenkov light on PMT.
JTime & sub(const JTime &value)
Subtraction operator.
friend std::istream & operator>>(std::istream &in, JTrack3D &track)
Read track from input.