#include <CutFlow.h>
Definition at line 165 of file CutFlow.h.
◆ CutMode
◆ EReservedCuts
| Enumerator |
|---|
| kAll | |
| kIsValidParticle | |
| kNReserved | |
Definition at line 173 of file CutFlow.h.
◆ CutFlow() [1/2]
◆ CutFlow() [2/2]
Definition at line 181 of file CutFlow.h.
185 {}
std::vector< unsigned int > m_counter
bool m_accumulateIntegrated
◆ clear()
Definition at line 219 of file CutFlow.h.
219 {
221 }
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ counter() [1/2]
| std::vector< unsigned int > & CutFlow::counter |
( |
| ) |
|
|
inline |
◆ counter() [2/2]
| const std::vector< unsigned int > & CutFlow::counter |
( |
| ) |
const |
|
inline |
◆ merge()
| void CutFlow::merge |
( |
CutFlow && | a_cutflow | ) |
|
|
inline |
Definition at line 202 of file CutFlow.h.
202 {
207 }
208 else {
210 throw std::logic_error("Tried to merge non matching cut_flows.");
211 }
215 }
216 }
217 }
◆ report()
| std::string CutFlow::report |
( |
const std::vector< std::string > & | names | ) |
|
|
inline |
Produce a formatted string report of the results.
Definition at line 225 of file CutFlow.h.
225 {
228 for(std::vector<unsigned int>::reverse_iterator iter =
m_counter.rbegin();
230 ++iter) {
233 };
235 }
236
239 std::string modeString = (
m_accumulateIntegrated) ?
"\nAll cuts were applied\n" :
"\nCuts were applied until one fails\n";
240 op += modeString;
241 for (
unsigned int idx=0;
idx<
names.size(); ++
idx) {
243 }
245 throw std::logic_error(std::string( "Number of cuts and counters do not match. Resulting report:\n") + op );
246 }
247 return op;
248 }
◆ update() [1/2]
| void CutFlow::update |
( |
bool | | ) |
|
|
inlineprivate |
◆ update() [2/2]
| void CutFlow::update |
( |
unsigned int | missing_cuts | ) |
|
|
inline |
◆ m_accumulateIntegrated
| bool CutFlow::m_accumulateIntegrated = false |
|
private |
◆ m_counter
| std::vector<unsigned int> CutFlow::m_counter |
|
private |
◆ m_integrated
| bool CutFlow::m_integrated = false |
|
private |
The documentation for this class was generated from the following file: