|
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 &meas_x, const float &meas_y, const float &meas_z) |
| Set the global position i.e. | |
| std::array< float, 3 > | getGlobalPosition () const |
| void | setLocalPosition (const float &meas_u, const float &meas_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 &meas_t) |
| Set the measurement time in ns. | |
| float | getTime () const |
| void | setLayerID (const int &layer_id) |
| Set the layer ID of the sensor where this measurement took place. | |
| int | getLayerID () const |
| int | getLayer () const |
| void | addTrackId (int trk_id) |
| Add a trackId to the internal vector. | |
| std::vector< unsigned int > | getTrackIds () const |
| float | getEdep () const |
Private Member Functions | |
| ClassDef (Measurement, 2) | |
Private Attributes | |
| float | meas_x_ {0.} |
| The global position in x (mm). | |
| float | meas_y_ {0.} |
| The global position in x (mm). | |
| float | meas_z_ {0.} |
| The global position in x (mm). | |
| float | meas_t_ {0.} |
| Measurement time (ns). | |
| float | meas_u_ {0.} |
| Local position in u (mm). | |
| float | meas_v_ {0.} |
| Local position in v (mm). | |
| int | layer_id_ {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 > | track_ids_ {} |
| 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) |
Definition at line 6 of file Measurement.cxx.
References addTrackId(), cov_uu_, cov_vv_, edep_, ldmx::SimTrackerHit::getEdep(), ldmx::SimTrackerHit::getID(), ldmx::SimTrackerHit::getPosition(), ldmx::SimTrackerHit::getTime(), ldmx::SimTrackerHit::getTrackID(), id_, meas_t_, meas_x_, meas_y_, and meas_z_.
|
inline |
Add a trackId to the internal vector.
Definition at line 114 of file Measurement.h.
References track_ids_.
Referenced by Measurement().
|
inline |
Definition at line 120 of file Measurement.h.
References edep_.
|
inlinenodiscard |
Definition at line 48 of file Measurement.h.
References meas_x_, meas_y_, and meas_z_.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits().
|
inline |
Definition at line 111 of file Measurement.h.
References layer_.
|
inlinenodiscard |
Definition at line 108 of file Measurement.h.
References layer_id_.
|
inlinenodiscard |
|
inlinenodiscard |
Definition at line 65 of file Measurement.h.
|
inlinenodiscard |
|
inline |
Definition at line 116 of file Measurement.h.
References track_ids_.
|
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.
References meas_x_, meas_y_, and meas_z_.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits(), and tracking::reco::SeedFinderProcessor::produce().
|
inline |
Set the layer ID of the sensor where this measurement took place.
| layer_id | The layer ID of the sensor associated with this measurement. |
Definition at line 102 of file Measurement.h.
References layer_, and layer_id_.
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 75 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 59 of file Measurement.h.
References meas_u_, and meas_v_.
Referenced by tracking::reco::DigitizationProcessor::digitizeHits(), and tracking::reco::SeedFinderProcessor::produce().
|
inline |
Set the measurement time in ns.
| meas_t | The time in ns. |
Definition at line 91 of file Measurement.h.
References meas_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. |
Definition at line 30 of file Measurement.cxx.
|
private |
cov(U, U)
Definition at line 157 of file Measurement.h.
Referenced by getLocalCovariance(), Measurement(), and setLocalCovariance().
|
private |
cov(V, V)
Definition at line 159 of file Measurement.h.
Referenced by getLocalCovariance(), Measurement(), and setLocalCovariance().
|
private |
The energy deposited in the sensor where the measurement took place.
Definition at line 155 of file Measurement.h.
Referenced by getEdep(), and Measurement().
|
private |
The ID of the hit.
Definition at line 161 of file Measurement.h.
Referenced by Measurement().
|
private |
The layer number internal to the tracker.
Definition at line 153 of file Measurement.h.
Referenced by getLayer(), and setLayerID().
|
private |
The ID of the sensor where the measurement took place.
Definition at line 151 of file Measurement.h.
Referenced by getLayerID(), and setLayerID().
|
private |
Measurement time (ns).
Definition at line 145 of file Measurement.h.
Referenced by getTime(), Measurement(), and setTime().
|
private |
Local position in u (mm).
Definition at line 147 of file Measurement.h.
Referenced by getLocalPosition(), and setLocalPosition().
|
private |
Local position in v (mm).
Definition at line 149 of file Measurement.h.
Referenced by getLocalPosition(), and setLocalPosition().
|
private |
The global position in x (mm).
Definition at line 139 of file Measurement.h.
Referenced by getGlobalPosition(), Measurement(), and setGlobalPosition().
|
private |
The global position in x (mm).
Definition at line 141 of file Measurement.h.
Referenced by getGlobalPosition(), Measurement(), and setGlobalPosition().
|
private |
The global position in x (mm).
Definition at line 143 of file Measurement.h.
Referenced by getGlobalPosition(), Measurement(), and setGlobalPosition().
|
private |
TrackIDs the vector of TrackIDs that form the measurement.
Definition at line 163 of file Measurement.h.
Referenced by addTrackId(), and getTrackIds().