#include <MomentCondition.h>
Definition at line 25 of file MomentCondition.h.
◆ MomentCondition()
MomentCondition::MomentCondition |
( |
double |
mMin, |
|
|
double |
mMax, |
|
|
const std::string & |
moment |
|
) |
| |
◆ capacity()
virtual unsigned int MomentCondition::capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isSatisfied() [1/2]
◆ isSatisfied() [2/2]
Definition at line 20 of file MomentCondition.cxx.
25 if (!(
ip -> getAttribute(
m_moment, momentValue))){
28 auto j_addr =
static_cast<const void*
>(
ip.get());
30 std::stringstream ss0;
31 ss0 <<
"MomentCondition: "
32 <<
" unable to retrieve " <<
m_moment <<
'\n';
33 std::stringstream ss1;
34 ss1 <<
" jet : ("<< j_addr <<
")";
35 collector->
collect(ss0.str(), ss1.str());
40 bool pass = m_min <= momentValue and m_max > momentValue;
43 const void*
address =
static_cast<const void*
>(
this);
45 std::stringstream ss0;
46 ss0 <<
"MomentCondition: ("<<
address
47 <<
") min cut value " <<
m_min
48 <<
" max cut value " <<
m_max
50 <<
" pass: " << std::boolalpha << pass <<
'\n';
52 auto j_addr =
static_cast<const void*
>(
ip.get());
53 std::stringstream ss1;
54 ss1 <<
" jet : ("<< j_addr <<
") "
55 "moment " <<
m_moment <<
" value: " << momentValue<<
'\n';
57 collector->
collect(ss0.str(), ss1.str());
◆ toString()
std::string MomentCondition::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_max
double MomentCondition::m_max |
|
private |
◆ m_min
double MomentCondition::m_min |
|
private |
◆ m_moment
std::string MomentCondition::m_moment |
|
private |
◆ s_capacity
const unsigned int MomentCondition::s_capacity {1} |
|
staticprivate |
The documentation for this class was generated from the following files: