#include <TimeSignificanceCondition.h>
Definition at line 22 of file TimeSignificanceCondition.h.
◆ TimeSignificanceCondition()
TimeSignificanceCondition::TimeSignificanceCondition |
( |
double |
t_minTimeSignificance, |
|
|
double |
t_maxTime |
|
) |
| |
◆ capacity()
virtual unsigned int TimeSignificanceCondition::capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getTmin()
float TimeSignificanceCondition::getTmin |
( |
const float |
pt, |
|
|
const float |
m_minTimeSignificance |
|
) |
| const |
◆ isSatisfied()
Implements ICondition.
Definition at line 28 of file TimeSignificanceCondition.cxx.
30 if (ips.size() != 1) {
32 ss <<
"TimeSignificanceCondition::isSatisfied must see exactly 1 particle, but received " << ips.size() <<
'\n';
33 throw std::runtime_error(
ss.str());
39 if (!(
jet->getAttribute(
"Timing",
timing))) {
40 throw std::runtime_error(
"ERROR: TimeSignificanceCondition cannot retrieve jet moment 'Timing'");
44 if (!(
pt =
jet->pt())) {
45 throw std::runtime_error(
"ERROR: TimeSignificanceCondition cannot retrieve jet pt");
53 std::stringstream ss0;
54 const void*
address =
static_cast<const void*
>(
this);
55 ss0 <<
"TimeSignificanceCondition: (" <<
address <<
") timing[" << t_minTime <<
", " <<
m_maxTime <<
"]"
56 <<
" pass: " << std::boolalpha << pass <<
'\n';
58 auto j_addr =
static_cast<const void*
>(
jet.get());
59 std::stringstream ss1;
61 ss1 <<
" jet : " << j_addr <<
") timing " <<
timing <<
'\n';
62 collector->
collect(ss0.str(), ss1.str());
◆ toString()
std::string TimeSignificanceCondition::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_maxTime
double TimeSignificanceCondition::m_maxTime |
|
private |
◆ m_minTimeSignificance
double TimeSignificanceCondition::m_minTimeSignificance |
|
private |
◆ s_capacity
const unsigned int TimeSignificanceCondition::s_capacity {1} |
|
staticprivate |
The documentation for this class was generated from the following files: