Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
TrackState.cc
Go to the documentation of this file.
1
10
11namespace pandora
12{
13
14TrackState::TrackState(float x, float y, float z, float px, float py, float pz) :
15 m_position(CartesianVector(x, y, z)),
16 m_momentum(CartesianVector(px, py, pz))
17{
18}
19
20//------------------------------------------------------------------------------------------------------------------------------------------
21
22TrackState::TrackState(const CartesianVector &position, const CartesianVector &momentum) :
23 m_position(position),
24 m_momentum(momentum)
25{
26}
27
28//------------------------------------------------------------------------------------------------------------------------------------------
29//------------------------------------------------------------------------------------------------------------------------------------------
30
31std::ostream &operator<<(std::ostream &stream, const TrackState &trackState)
32{
33 stream << " Position: " << trackState.GetPosition() << std::endl
34 << " Momentum: " << trackState.GetMomentum();
35
36 return stream;
37}
38
39} // namespace pandora
Header file for the track state class.
CartesianVector class.
TrackState class.
Definition TrackState.h:22
const CartesianVector & GetMomentum() const
Get the track momentum vector.
Definition TrackState.h:80
TrackState(float x, float y, float z, float px, float py, float pz)
Constructor, from position and momentum components.
Definition TrackState.cc:14
const CartesianVector & GetPosition() const
Get the track position vector.
Definition TrackState.h:73
std::ostream & operator<<(std::ostream &stream, const CartesianVector &cartesianVector)
Operator to dump cartesian vector properties to an ostream.