|
LDMX Software
|
Our custom checker which makes sure that the input energy/position is "close enough" to the truth energy/position. More...
Public Member Functions | |
| IsCloseEnough (double const &truth, double const &abs_diff, double const &rel_diff) | |
| Constructor. | |
| bool | match (const double &daq) const override |
| Performs the test for this matcher. | |
| virtual std::string | describe () const override |
| Describes matcher for printing to terminal. | |
Private Attributes | |
| double | truth_ |
| correct (sim-level) | |
| const double | MAX_ABSOLUTE_DIFF |
| maximum absolute difference | |
| const double | MAX_RELATIVE_DIFF |
| maximum relative difference | |
Our custom checker which makes sure that the input energy/position is "close enough" to the truth energy/position.
Definition at line 66 of file HcalDigiPipelineTest.cxx.
|
inline |
Constructor.
Sets the truth level
Definition at line 83 of file HcalDigiPipelineTest.cxx.
|
inlineoverridevirtual |
Describes matcher for printing to terminal.
Definition at line 104 of file HcalDigiPipelineTest.cxx.
References MAX_ABSOLUTE_DIFF, MAX_RELATIVE_DIFF, and truth_.
|
inlineoverride |
Performs the test for this matcher.
We check that the input is either within the absolute difference or the relative difference.
Definition at line 96 of file HcalDigiPipelineTest.cxx.
References MAX_ABSOLUTE_DIFF, MAX_RELATIVE_DIFF, and truth_.
|
private |
maximum absolute difference
Definition at line 72 of file HcalDigiPipelineTest.cxx.
Referenced by describe(), and match().
|
private |
maximum relative difference
Definition at line 75 of file HcalDigiPipelineTest.cxx.
Referenced by describe(), and match().
|
private |
correct (sim-level)
Definition at line 69 of file HcalDigiPipelineTest.cxx.
Referenced by describe(), and match().