11 #include <TLorentzVector.h>
15 const std::string& moment) :
16 m_min(mMin), m_max(mMax), m_moment(moment) {
21 const std::unique_ptr<ITrigJetHypoInfoCollector>& collector)
const {
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());
65 const std::unique_ptr<ITrigJetHypoInfoCollector>&
c)
const {
73 ss <<
"MomentCondition (" <<
this <<
") "