27 const float& cov_vv = 1.0);
41 const float& meas_z) {
134 friend std::ostream&
operator<<(std::ostream& output,
168typedef std::vector<Measurement> Measurements;
Class which encapsulates information from a hit in a simulated tracking detector.
float meas_y_
The global position in x (mm).
friend std::ostream & operator<<(std::ostream &output, const Measurement &measurement)
Overload the stream insertion operator to output a string representation of this Measurement.
Measurement()=default
Default constructor.
std::array< float, 3 > getGlobalPosition() const
int layer_
The layer number internal to the tracker.
void setLocalPosition(const float &meas_u, const float &meas_v)
Set the local position i.e.
void setLayerID(const int &layer_id)
Set the layer ID of the sensor where this measurement took place.
void addTrackId(int trk_id)
Add a trackId to the internal vector.
virtual ~Measurement()=default
Default destructor.
std::vector< unsigned int > track_ids_
TrackIDs the vector of TrackIDs that form the measurement.
std::array< float, 2 > getLocalPosition() const
std::array< float, 2 > getLocalCovariance() const
float meas_v_
Local position in v (mm).
float edep_
The energy deposited in the sensor where the measurement took place.
float meas_z_
The global position in x (mm).
float meas_u_
Local position in u (mm).
float meas_t_
Measurement time (ns).
float meas_x_
The global position in x (mm).
void setGlobalPosition(const float &meas_x, const float &meas_y, const float &meas_z)
Set the global position i.e.
void setLocalCovariance(const float &cov_uu, const float &cov_vv)
Set cov(U,U) and cov(V, V).
int layer_id_
The ID of the sensor where the measurement took place.
std::vector< unsigned int > getTrackIds() const
void setTime(const float &meas_t)
Set the measurement time in ns.
int id_
The ID of the hit.
Represents a simulated tracker hit in the simulation.