|
LDMX Software
|
Classes | |
| struct | TruthInfo |
Public Member Functions | |
| TruthMatchingTool (const std::map< int, ldmx::SimParticle > &particleMap, const std::vector< ldmx::Measurement > &measurements) | |
| Constructor. | |
| void | setup (const std::map< int, ldmx::SimParticle > &particleMap, const std::vector< ldmx::Measurement > &measurements) |
| virtual | ~TruthMatchingTool ()=default |
| Destructor. | |
| TruthInfo | truthMatch (const ldmx::Track &trk) |
| Performs the truth matching by checking all the trackIDs associated to the measurements on track. | |
| TruthInfo | evaluate (const std::unordered_map< unsigned int, unsigned int > &trk_trackIDs, int n_meas) |
| TruthInfo | truthMatch (const std::vector< ldmx::Measurement > &vmeas) |
| bool | configured () |
Private Attributes | |
| std::map< int, ldmx::SimParticle > | map_ |
| std::vector< ldmx::Measurement > | measurements_ |
| bool | debug_ {false} |
| std::shared_ptr< tracking::sim::TruthMatchingTool > | truth_matching_tool_ |
| bool | configured_ {false} |
Definition at line 11 of file TruthMatchingTool.h.
|
inline |
Constructor.
| particleMap | The map of all the simulated particles in the event. |
| measurements | All the measurements in the event. |
Definition at line 28 of file TruthMatchingTool.h.
|
inline |
Definition at line 51 of file TruthMatchingTool.h.
| TruthMatchingTool::TruthInfo tracking::sim::TruthMatchingTool::evaluate | ( | const std::unordered_map< unsigned int, unsigned int > & | trk_trackIDs, |
| int | n_meas ) |
Definition at line 6 of file TruthMatchingTool.cxx.
|
inline |
Definition at line 33 of file TruthMatchingTool.h.
| TruthMatchingTool::TruthInfo tracking::sim::TruthMatchingTool::truthMatch | ( | const ldmx::Track & | trk | ) |
Performs the truth matching by checking all the trackIDs associated to the measurements on track.
| trk | The track that needs to be truth matched |
Definition at line 54 of file TruthMatchingTool.cxx.
| TruthMatchingTool::TruthInfo tracking::sim::TruthMatchingTool::truthMatch | ( | const std::vector< ldmx::Measurement > & | vmeas | ) |
Definition at line 29 of file TruthMatchingTool.cxx.
|
private |
Definition at line 59 of file TruthMatchingTool.h.
|
private |
Definition at line 56 of file TruthMatchingTool.h.
|
private |
Definition at line 54 of file TruthMatchingTool.h.
|
private |
Definition at line 55 of file TruthMatchingTool.h.
|
private |
Definition at line 57 of file TruthMatchingTool.h.