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) |
~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 > | truthMatchingTool = nullptr |
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 52 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 57 of file TruthMatchingTool.h.
|
private |
Definition at line 55 of file TruthMatchingTool.h.
|
private |
Definition at line 56 of file TruthMatchingTool.h.
|
private |
Definition at line 58 of file TruthMatchingTool.h.