19 {
20
21 bool momentValue;
22
23 if (!(
ip->getAttribute(
m_cName, momentValue)))
24 {
25
26 if (collector)
27 {
28 auto j_addr =
static_cast<const void *
>(
ip.get());
29
30 std::stringstream ss0;
31 ss0 << "CleanCondition: "
32 <<
" unable to retrieve " <<
m_cName <<
'\n';
33 std::stringstream ss1;
34 ss1 << " jet : (" << j_addr << ")";
35 collector->
collect(ss0.str(), ss1.str());
36 }
37 return false;
38 }
39
40 bool pass = momentValue;
41
42 if (collector)
43 {
44 const void *address = static_cast<const void *>(this);
45
46 std::stringstream ss0;
47 ss0 << "CleanCondition: (" << address
48 << ")"
50 << " pass: " << std::boolalpha << pass << '\n';
51
52 auto j_addr =
static_cast<const void *
>(
ip.get());
53 std::stringstream ss1;
54 ss1 << " jet : (" << j_addr << ") "
55 "moment "
56 <<
m_cName <<
" value: " << momentValue <<
'\n';
57
58 collector->
collect(ss0.str(), ss1.str());
59 }
60
61 return pass;
62}
virtual void collect(const std::string &, const std::string &)=0