1#include "Tracking/Event/Measurement.h"
7 const float& sigma_v) {
30 std::ostream& operator<<(std::ostream& output,
31 const Measurement& measurement) {
32 output <<
"[ Measurement ]:\n\tGlobal position (mm): [ " << measurement.x_
33 <<
", " << measurement.y_ <<
", " << measurement.z_
34 <<
" ]\n\tLocal position (mm): [ " << measurement.u_ <<
", "
35 << measurement.v_ <<
"]\n\tcov(U,U) " << measurement.cov_uu_
36 <<
" cov(V,V) " << measurement.cov_vv_
37 <<
"\n\tTime: " << measurement.t_
38 <<
" ns \n\tLayer ID: " << measurement.layerid_
39 <<
"\n\tLayer: " << measurement.layer_
40 <<
"\n\tEnergy Deposition: " << measurement.edep_ <<
" MeV"
Measurement()=default
Default constructor.
float edep_
The energy deposited in the sensor where the measurement took place.
float z_
The global position in x (mm).
float t_
Measurement time (ns).
float x_
The global position in x (mm).
void addTrackId(int trkId)
Add a trackId to the internal vector.
float y_
The global position in x (mm).
int id_
The ID of the hit.
Represents a simulated tracker hit in the simulation.
float getEdep() const
Get the energy deposited on the hit [MeV].
std::vector< float > getPosition() const
Get the XYZ position of the hit [mm].
int getID() const
Get the detector ID of the hit.
float getTime() const
Get the global time of the hit [ns].
int getTrackID() const
Get the Sim particle track ID of the hit.