28 const float& cov_vv = 1.0);
42 const float& meas_z) {
161 friend std::ostream&
operator<<(std::ostream& output,
194 float truth_u_{std::numeric_limits<float>::quiet_NaN()};
204typedef std::vector<Measurement> Measurements;
Class which encapsulates information from a hit in a simulated tracking detector.
void setTruthU(float u)
Set the truth local U [mm]: the sim-hit global position projected onto the sensor surface,...
float meas_y_
The global position in x (mm).
void setNStrips(int n)
Set the number of strips that formed this cluster (-1 if not a cluster).
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.
float getClusterAmplitude() const
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.
int n_strips_
Number of strips in the cluster (-1 = not from strip clustering).
float cluster_amplitude_
Total cluster amplitude [ADC counts] (0 = not from strip clustering).
void setEdep(float e)
Set the energy deposited in the sensor [MeV].
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 truth_u_
Truth local U [mm] projected from the SimTrackerHit before digitization.
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).
void setClusterAmplitude(float amp)
Set the total cluster amplitude [ADC counts].
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.