LDMX Software
|
Our custom energy checker which makes sure that the input energy is "close enough" to the truth energy. More...
Public Member Functions | |
isCloseEnough (double const &truth, double const &abs_diff, double const &rel_diff) | |
Constructor. | |
bool | match (const double &daq_energy) 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) energy [MeV] | |
const double | max_absolute_diff_ |
maximum absolute energy difference [MeV] | |
const double | max_relative_diff_ |
maximum relative energy difference | |
Our custom energy checker which makes sure that the input energy is "close enough" to the truth energy.
Definition at line 95 of file EcalDigiPipelineTest.cxx.
|
inline |
Constructor.
Sets the truth level energy
Definition at line 112 of file EcalDigiPipelineTest.cxx.
|
inlineoverridevirtual |
Describes matcher for printing to terminal.
Definition at line 133 of file EcalDigiPipelineTest.cxx.
References max_absolute_diff_, max_relative_diff_, and truth_.
|
inlineoverride |
Performs the test for this matcher.
We check that the input energy is either within the absolute difference or the relative difference.
Definition at line 125 of file EcalDigiPipelineTest.cxx.
References max_absolute_diff_, max_relative_diff_, and truth_.
|
private |
maximum absolute energy difference [MeV]
Definition at line 101 of file EcalDigiPipelineTest.cxx.
Referenced by describe(), and match().
|
private |
maximum relative energy difference
Definition at line 104 of file EcalDigiPipelineTest.cxx.
Referenced by describe(), and match().
|
private |
correct (sim-level) energy [MeV]
Definition at line 98 of file EcalDigiPipelineTest.cxx.
Referenced by describe(), and match().