27 const float& cov_vv = 1.0);
48 return std::array<float, 3>{
x_,
y_,
z_};
65 return std::array<float, 2>{
u_,
v_};
162typedef std::vector<Measurement> Measurements;
Class which encapsulates information from a hit in a simulated tracking detector.
std::vector< unsigned int > getTrackIds()
Measurement(const ldmx::SimTrackerHit &hit, const float &cov_uu=0.05, const float &cov_vv=1.0)
Constructor that uses a SimTrackerHit to populate the global position, deposited energy,...
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
void setTime(const float &t)
Set the measurement time in ns.
int layer_
The layer number internal to the tracker.
void setGlobalPosition(const float &x, const float &y, const float &z)
Set the global position i.e.
virtual ~Measurement()=default
Default destructor.
std::array< float, 2 > getLocalPosition() const
float v_
Local position in v (mm).
std::array< float, 2 > getLocalCovariance() const
std::vector< unsigned int > trackIds_
TrackIDs the vector of TrackIDs that form the measurement.
float edep_
The energy deposited in the sensor where the measurement took place.
float z_
The global position in x (mm).
float u_
Local position in u (mm).
float t_
Measurement time (ns).
float x_
The global position in x (mm).
void setLayerID(const int &layerid)
Set the layer ID of the sensor where this measurement took place.
void setLocalPosition(const float &u, const float &v)
Set the local position i.e.
void setLocalCovariance(const float &cov_uu, const float &cov_vv)
Set cov(U,U) and cov(V, V).
void addTrackId(int trkId)
Add a trackId to the internal vector.
float y_
The global position in x (mm).
int layerid_
The ID of the sensor where the measurement took place.
int id_
The ID of the hit.
Represents a simulated tracker hit in the simulation.