#include <FPGATrackSimMultiTruth.h>
Definition at line 46 of file FPGATrackSimMultiTruth.h.
◆ Barcode
◆ TruthMap
◆ Weight
◆ FPGATrackSimMultiTruth() [1/2]
| FPGATrackSimMultiTruth::FPGATrackSimMultiTruth |
( |
| ) |
|
|
default |
◆ FPGATrackSimMultiTruth() [2/2]
Definition at line 54 of file FPGATrackSimMultiTruth.h.
FPGATrackSimMultiTruth::Weight weight(const FPGATrackSimMultiTruth::Barcode &code) const
◆ ~FPGATrackSimMultiTruth()
| virtual FPGATrackSimMultiTruth::~FPGATrackSimMultiTruth |
( |
| ) |
|
|
virtualdefault |
◆ add() [1/3]
◆ add() [2/3]
◆ add() [3/3]
◆ assign_equal_normalization()
| void FPGATrackSimMultiTruth::assign_equal_normalization |
( |
| ) |
|
◆ begin() [1/2]
| auto FPGATrackSimMultiTruth::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
| auto FPGATrackSimMultiTruth::begin |
( |
| ) |
const |
|
inline |
◆ best()
Definition at line 86 of file FPGATrackSimMultiTruth.h.
87 {
88 if (
m_truth.empty())
return false;
92 return true;
93 }
FPGATrackSimMultiTruth::Weight total_weight() const
◆ best_barcode()
| unsigned long FPGATrackSimMultiTruth::best_barcode |
( |
| ) |
const |
Definition at line 16 of file FPGATrackSimMultiTruth.cxx.
16 {
20}
bool best(FPGATrackSimMultiTruth::Barcode &code, FPGATrackSimMultiTruth::Weight &weight) const
std::pair< unsigned long, unsigned long > Barcode
◆ end() [1/2]
| auto FPGATrackSimMultiTruth::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
| auto FPGATrackSimMultiTruth::end |
( |
| ) |
const |
|
inline |
◆ isEmpty()
| bool FPGATrackSimMultiTruth::isEmpty |
( |
| ) |
const |
|
inline |
◆ maximize() [1/3]
Definition at line 50 of file FPGATrackSimMultiTruth.cxx.
51{
52 if (rval.
m_truth.empty())
return;
53
54
56 Barcode maxweight_barcode(-1l, -1l);
57 for (
const auto & rval_truth : rval.
m_truth)
58 {
59 if (rval_truth.second > maxweight)
60 {
61 maxweight = rval_truth.second;
62 maxweight_barcode = rval_truth.first;
63 }
64 }
65
66 maximize(maxweight_barcode, maxweight);
67}
void maximize(const FPGATrackSimMultiTruth::Barcode &code, const FPGATrackSimMultiTruth::Weight &weight)
◆ maximize() [2/3]
◆ maximize() [3/3]
◆ multiplicity()
| unsigned FPGATrackSimMultiTruth::multiplicity |
( |
| ) |
const |
|
inline |
◆ total_weight()
◆ weight()
◆ m_truth
| TruthMap FPGATrackSimMultiTruth::m_truth |
|
private |
The documentation for this class was generated from the following files: