LDMX Software
|
Public Member Functions | |
Measurement ()=default | |
Default constructor. | |
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, ID and measurement time. | |
virtual | ~Measurement ()=default |
Default destructor. | |
void | setGlobalPosition (const float &x, const float &y, const float &z) |
Set the global position i.e. | |
std::array< float, 3 > | getGlobalPosition () const |
void | setLocalPosition (const float &u, const float &v) |
Set the local position i.e. | |
std::array< float, 2 > | getLocalPosition () const |
void | setLocalCovariance (const float &cov_uu, const float &cov_vv) |
Set cov(U,U) and cov(V, V). | |
std::array< float, 2 > | getLocalCovariance () const |
void | setTime (const float &t) |
Set the measurement time in ns. | |
float | getTime () const |
void | setLayerID (const int &layerid) |
Set the layer ID of the sensor where this measurement took place. | |
int | getLayerID () const |
int | getLayer () const |
void | addTrackId (int trkId) |
Add a trackId to the internal vector. | |
std::vector< unsigned int > | getTrackIds () |
Private Member Functions | |
ClassDef (Measurement, 1) | |
Private Attributes | |
float | x_ {0.} |
The global position in x (mm). | |
float | y_ {0.} |
The global position in x (mm). | |
float | z_ {0.} |
The global position in x (mm). | |
float | t_ {0.} |
Measurement time (ns). | |
float | u_ {0.} |
Local position in u (mm). | |
float | v_ {0.} |
Local position in v (mm). | |
int | layerid_ {0} |
The ID of the sensor where the measurement took place. | |
int | layer_ {0} |
The layer number internal to the tracker. | |
float | edep_ {0.} |
The energy deposited in the sensor where the measurement took place. | |
float | cov_uu_ {0.} |
cov(U, U) | |
float | cov_vv_ {0.} |
cov(V, V) | |
int | id_ {0} |
The ID of the hit. | |
std::vector< unsigned int > | trackIds_ {} |
TrackIDs the vector of TrackIDs that form the measurement. | |
Friends | |
std::ostream & | operator<< (std::ostream &output, const Measurement &measurement) |
Overload the stream insertion operator to output a string representation of this Measurement. | |
Definition at line 12 of file Measurement.h.
ldmx::Measurement::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, ID and measurement time.
The cov(U, U) and cov(V, V) are optional.
hit | The SimTrackerHit used to set the initial Measurement values. |
cov_uu | cov(U, U) |
cov_vv | cov(V, V) |
|
inline |
Add a trackId to the internal vector.
Definition at line 112 of file Measurement.h.
References trackIds_.
|
inline |
Definition at line 47 of file Measurement.h.
Referenced by tracking::dqm::TrackerDigiDQM::analyze(), and tracking::reco::DigitizationProcessor::digitizeHits().
|
inline |
Definition at line 109 of file Measurement.h.
References layer_.
|
inline |
Definition at line 106 of file Measurement.h.
References layerid_.
|
inline |
Definition at line 81 of file Measurement.h.
|
inline |
Definition at line 64 of file Measurement.h.
|
inline |
|
inline |
Definition at line 114 of file Measurement.h.
References trackIds_.
|
inline |
Set the global position i.e.
position of the measurement in the detector frame.
x | Position in x in mm. |
y | Position in y in mm. |
z | Position in z in mm. |
Definition at line 40 of file Measurement.h.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits(), and tracking::reco::SeedFinderProcessor::produce().
|
inline |
Set the layer ID of the sensor where this measurement took place.
layerid | The layer ID of the sensor associated with this measurement. |
Definition at line 100 of file Measurement.h.
References layer_, and layerid_.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits().
|
inline |
Set cov(U,U) and cov(V, V).
cov_uu | cov(U, U). |
cov_vv | cov(V, V). |
Definition at line 74 of file Measurement.h.
References cov_uu_, and cov_vv_.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits(), and tracking::reco::SeedFinderProcessor::produce().
|
inline |
Set the local position i.e.
position of the measurement in the reference frame of the surface where the hit was created.
u | Position in U in mm. |
v | Position in V in mm. |
Definition at line 58 of file Measurement.h.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits(), and tracking::reco::SeedFinderProcessor::produce().
|
inline |
Set the measurement time in ns.
t | The time in ns. |
Definition at line 90 of file Measurement.h.
References t_.
Referenced by tracking::reco::SeedFinderProcessor::produce().
|
friend |
Overload the stream insertion operator to output a string representation of this Measurement.
[in] | output | The output stream where the string representation will be inserted. |
[in] | measurement | The Measurement object to print. |
|
private |
cov(U, U)
Definition at line 151 of file Measurement.h.
Referenced by getLocalCovariance(), and setLocalCovariance().
|
private |
cov(V, V)
Definition at line 153 of file Measurement.h.
Referenced by getLocalCovariance(), and setLocalCovariance().
|
private |
The energy deposited in the sensor where the measurement took place.
Definition at line 149 of file Measurement.h.
|
private |
|
private |
The layer number internal to the tracker.
Definition at line 147 of file Measurement.h.
Referenced by getLayer(), and setLayerID().
|
private |
The ID of the sensor where the measurement took place.
Definition at line 145 of file Measurement.h.
Referenced by getLayerID(), and setLayerID().
|
private |
|
private |
TrackIDs the vector of TrackIDs that form the measurement.
Definition at line 157 of file Measurement.h.
Referenced by addTrackId(), and getTrackIds().
|
private |
Local position in u (mm).
Definition at line 141 of file Measurement.h.
Referenced by getLocalPosition(), and setLocalPosition().
|
private |
Local position in v (mm).
Definition at line 143 of file Measurement.h.
Referenced by getLocalPosition(), and setLocalPosition().
|
private |
The global position in x (mm).
Definition at line 133 of file Measurement.h.
Referenced by getGlobalPosition(), and setGlobalPosition().
|
private |
The global position in x (mm).
Definition at line 135 of file Measurement.h.
Referenced by getGlobalPosition(), and setGlobalPosition().
|
private |
The global position in x (mm).
Definition at line 137 of file Measurement.h.
Referenced by getGlobalPosition(), and setGlobalPosition().