#include <FastReductionMatcher.h>
Definition at line 23 of file FastReductionMatcher.h.
◆ FastReductionMatcher()
Definition at line 13 of file FastReductionMatcher.cxx.
16 :
21
25 m_msg =
"Condition tree root node is not AcceptAll";
26 }
27
28 int minNjets{0};
29 for (
const auto& il :
m_tree.leaves()){
31
34 m_msg =
"Tree leaf condition but not from ChainPart";
35 }
37
38 }
39
41
45 ss <<
"ConditionFilterInds and Conditions sequence sizes differ: ";
48 }
49
50}
ConditionPtrs m_conditions
Tree m_tree
tree structure for Conditions objects.
ConditionFilterInds m_conditionFilterInds
ConditionFilters m_conditionFilters
long unsigned int m_minNjets
◆ match()
determine whether a set of jets satisfies all hypo conditions.
the jets are packed into jet grpups of length 1. groups_b and groups_e are iterators into the data structure containing these groups. Jet collector is used to transport the jets that matched the hypo conditions. Collector collects information for testing and debugging the final bool argument is used to allow further debugging within the method.
Implements IJetsMatcher.
Definition at line 54 of file FastReductionMatcher.cxx.
57 {
58
59
60
61
62
63
64
65
66
67
68
69
70
71 auto njets = jv.size();
72
74 if (collector) {
75 collector->
collect(
"FastReductionMatcher",
76 "have " + std::to_string(njets) +
78 " pass: false");
79 }
80 return false;
81 }
82
83 FastReducer reducer(jv,
88 jetCollector,
89 collector);
90
91 return std::make_optional<bool>(reducer.pass());
92}
virtual void collect(const std::string &, const std::string &)=0
◆ msg()
| std::string FastReductionMatcher::msg |
( |
| ) |
const |
|
overridevirtual |
◆ toString()
| std::string FastReductionMatcher::toString |
( |
| ) |
const |
|
overridevirtual |
Implements IJetsMatcher.
Definition at line 95 of file FastReductionMatcher.cxx.
95 {
97 ss <<
"FastReductionMatcher:\n"
98 <<
" treeVector: " <<
m_tree <<
'\n'
99 <<
" min required jets " <<
m_minNjets <<
"\n\n"
100 << "FastReductionMatcher Conditions ["
102
105 auto sc = std::to_string(
count++);
106 sc.insert(
sc.begin(), 3-
sc.length(),
' ');
107 ss <<
sc <<
": "<<
c->toString() +
'\n';
108 }
109
110
111 ss <<
"FastReductionMatcher ConditionFilter indices ["
113
114
117 auto sc = std::to_string(
count++);
118 sc.insert(
sc.begin(), 3-
sc.length(),
' ');
119 ss <<
sc <<
": "<<
c <<
'\n';
120 }
121
122
123 ss <<
"FastReductionMatcher ConditionFilters ["
125
126
129 auto sc = std::to_string(
count++);
130 sc.insert(
sc.begin(), 3-
sc.length(),
' ');
131 ss <<
sc <<
": "<<
c->toString() +
'\n';
132 }
133
134
136}
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
@ u
Enums for curvilinear frames.
◆ valid()
| bool FastReductionMatcher::valid |
( |
| ) |
const |
|
overridevirtual |
◆ m_conditionFilterInds
◆ m_conditionFilters
◆ m_conditions
◆ m_minNjets
| long unsigned int FastReductionMatcher::m_minNjets {0u} |
|
private |
◆ m_msg
| std::string FastReductionMatcher::m_msg |
|
private |
◆ m_tree
| Tree FastReductionMatcher::m_tree |
|
private |
tree structure for Conditions objects.
The conditions tree gives relations among conditions (eg parent-child and siblings-of)
Definition at line 66 of file FastReductionMatcher.h.
◆ m_validState
| bool FastReductionMatcher::m_validState {true} |
|
private |
The documentation for this class was generated from the following files: