Tracks pass rate by discrimination threshold and trigger pattern name. More...
#include <TriggerEfficiencyPlotsBase.h>
Public Types | |
| using | Threshold_t = std::string |
| using | Counter_t = icarus::ns::util::PassCounter< unsigned int > |
| Type used as counter for a specific trigger. More... | |
| using | IndexPair_t = std::pair< std::size_t, std::size_t > |
Public Member Functions | |
| IndexPair_t | create (Threshold_t const &threshold, std::string const &patternName) |
| Creates and returns a new counter. More... | |
| std::size_t | thresholdIndex (Threshold_t const &threshold) const |
Returns the index of the specified threshold (max() if not registered). More... | |
| std::size_t | patternIndex (std::string const &patternName) const |
Returns the index of the specified pattern (max() if not registered). More... | |
| Threshold_t const & | threshold (std::size_t index) const |
| std::string const & | patternName (std::size_t index) const |
| std::size_t | nThresholds () const |
| Returns the number of thresholds currently registered. More... | |
| std::size_t | nPatterns () const |
| Returns the number of patterns currently registered. More... | |
| void | dump (std::ostream &out) const |
| Dump all the counters on the specified stream. More... | |
| Counter_t const & | counter (Threshold_t const &threshold, std::string const &patternName) const |
| Counter_t const & | counter (std::size_t threshold, std::string const &patternName) const |
| Counter_t const & | counter (Threshold_t const &threshold, std::size_t patternName) const |
| Counter_t const & | counter (std::size_t threshold, std::size_t patternName) const |
| Counter_t const & | counter (IndexPair_t indices) const |
| Counter_t const & | operator() (Threshold_t const &threshold, std::string const &patternName) const |
| Counter_t const & | operator() (std::size_t threshold, std::string const &patternName) const |
| Counter_t const & | operator() (Threshold_t const &threshold, std::size_t patternName) const |
| Counter_t const & | operator() (std::size_t threshold, std::size_t patternName) const |
| Counter_t const & | operator() (IndexPair_t indices) const |
| Counter_t & | counter (Threshold_t const &threshold, std::string const &patternName) |
| Counter_t & | counter (std::size_t threshold, std::string const &patternName) |
| Counter_t & | counter (Threshold_t const &threshold, std::size_t patternName) |
| Counter_t & | counter (std::size_t threshold, std::size_t patternName) |
| Counter_t & | counter (IndexPair_t indices) |
| Counter_t & | operator() (Threshold_t const &threshold, std::string const &patternName) |
| Counter_t & | operator() (std::size_t threshold, std::string const &patternName) |
| Counter_t & | operator() (Threshold_t const &threshold, std::size_t patternName) |
| Counter_t & | operator() (std::size_t threshold, std::size_t patternName) |
| Counter_t & | operator() (IndexPair_t indices) |
| bool | hasThreshold (Threshold_t const &threshold) const |
| Returns whether the specified threshold is registered. More... | |
| bool | hasThreshold (std::size_t index) const |
| bool | hasPattern (std::string const &patternName) const |
| Returns whether the specified pattern is registered. More... | |
| bool | hasPattern (std::size_t patternIndex) const |
Static Public Attributes | |
| static constexpr std::size_t | NoIndex = std::numeric_limits<std::size_t>::max() |
| Represents the index of a threshold or pattern that is not registered. More... | |
Private Member Functions | |
| std::size_t | registerThreshold (Threshold_t const &threshold) |
| Registers a new threshold in the index and returns its index (unchecked). More... | |
| std::size_t | registerPattern (std::string const &name) |
| Registers a new pattern in the index and returns its index (unchecked). More... | |
Private Attributes | |
| std::vector< std::vector < Counter_t > > | fCounters |
| All counters; indices: [threshold][pattern]. More... | |
| std::unordered_map < Threshold_t, std::size_t > | fThresholdIndex |
| Map: threshold -> threshold index. More... | |
| std::unordered_map < std::string, std::size_t > | fPatternIndex |
| Map: pattern name -> pattern index. More... | |
Tracks pass rate by discrimination threshold and trigger pattern name.
Definition at line 100 of file TriggerEfficiencyPlotsBase.h.
| using icarus::trigger::details::TriggerPassCounters::Counter_t = icarus::ns::util::PassCounter<unsigned int> |
Type used as counter for a specific trigger.
Definition at line 106 of file TriggerEfficiencyPlotsBase.h.
| using icarus::trigger::details::TriggerPassCounters::IndexPair_t = std::pair<std::size_t, std::size_t> |
Definition at line 108 of file TriggerEfficiencyPlotsBase.h.
| using icarus::trigger::details::TriggerPassCounters::Threshold_t = std::string |
Definition at line 103 of file TriggerEfficiencyPlotsBase.h.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | Threshold_t const & | threshold, |
| std::string const & | patternName | ||
| ) | const |
Returns the counter for the specified threshold and pattern.
| std::out_of_range | if not registered. |
Definition at line 152 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | std::size_t | threshold, |
| std::string const & | patternName | ||
| ) | const |
Definition at line 167 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | Threshold_t const & | threshold, |
| std::size_t | patternName | ||
| ) | const |
Definition at line 181 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | std::size_t | threshold, |
| std::size_t | patternName | ||
| ) | const |
Definition at line 196 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | IndexPair_t | indices | ) | const |
Definition at line 210 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | Threshold_t const & | threshold, |
| std::string const & | patternName | ||
| ) |
Definition at line 225 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | std::size_t | threshold, |
| std::string const & | patternName | ||
| ) |
Definition at line 239 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | Threshold_t const & | threshold, |
| std::size_t | patternName | ||
| ) |
Definition at line 252 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | std::size_t | threshold, |
| std::size_t | patternName | ||
| ) |
Definition at line 266 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::counter | ( | IndexPair_t | indices | ) |
Definition at line 278 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::create | ( | Threshold_t const & | threshold, |
| std::string const & | patternName | ||
| ) |
Creates and returns a new counter.
If the counter already exists, it is returned.
Definition at line 89 of file TriggerEfficiencyPlotsBase.cxx.
| void icarus::trigger::details::TriggerPassCounters::dump | ( | std::ostream & | out | ) | const |
Dump all the counters on the specified stream.
Definition at line 358 of file TriggerEfficiencyPlotsBase.cxx.
| bool icarus::trigger::details::TriggerPassCounters::hasPattern | ( | std::string const & | patternName | ) | const |
Returns whether the specified pattern is registered.
Definition at line 306 of file TriggerEfficiencyPlotsBase.cxx.
| bool icarus::trigger::details::TriggerPassCounters::hasPattern | ( | std::size_t | patternIndex | ) | const |
Definition at line 312 of file TriggerEfficiencyPlotsBase.cxx.
| bool icarus::trigger::details::TriggerPassCounters::hasThreshold | ( | Threshold_t const & | threshold | ) | const |
Returns whether the specified threshold is registered.
Definition at line 294 of file TriggerEfficiencyPlotsBase.cxx.
| bool icarus::trigger::details::TriggerPassCounters::hasThreshold | ( | std::size_t | index | ) | const |
Definition at line 300 of file TriggerEfficiencyPlotsBase.cxx.
| std::size_t icarus::trigger::details::TriggerPassCounters::nPatterns | ( | ) | const |
Returns the number of patterns currently registered.
Definition at line 118 of file TriggerEfficiencyPlotsBase.cxx.
| std::size_t icarus::trigger::details::TriggerPassCounters::nThresholds | ( | ) | const |
Returns the number of thresholds currently registered.
Definition at line 113 of file TriggerEfficiencyPlotsBase.cxx.
|
inline |
Definition at line 139 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 142 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 145 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 148 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 150 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 161 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 163 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 165 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 167 of file TriggerEfficiencyPlotsBase.h.
|
inline |
Definition at line 169 of file TriggerEfficiencyPlotsBase.h.
| std::size_t icarus::trigger::details::TriggerPassCounters::patternIndex | ( | std::string const & | patternName | ) | const |
Returns the index of the specified pattern (max() if not registered).
Definition at line 327 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::patternName | ( | std::size_t | index | ) | const |
Returns the name of the pattern with the specified index.
| std::out_of_range | if the index is not available |
Definition at line 347 of file TriggerEfficiencyPlotsBase.cxx.
|
private |
Registers a new pattern in the index and returns its index (unchecked).
Definition at line 138 of file TriggerEfficiencyPlotsBase.cxx.
|
private |
Registers a new threshold in the index and returns its index (unchecked).
Definition at line 124 of file TriggerEfficiencyPlotsBase.cxx.
| auto icarus::trigger::details::TriggerPassCounters::threshold | ( | std::size_t | index | ) | const |
Returns the value of the threshold with the specified index.
| std::out_of_range | if the index is not available |
Definition at line 336 of file TriggerEfficiencyPlotsBase.cxx.
| std::size_t icarus::trigger::details::TriggerPassCounters::thresholdIndex | ( | Threshold_t const & | threshold | ) | const |
Returns the index of the specified threshold (max() if not registered).
Definition at line 318 of file TriggerEfficiencyPlotsBase.cxx.
|
private |
All counters; indices: [threshold][pattern].
Definition at line 211 of file TriggerEfficiencyPlotsBase.h.
|
private |
Map: pattern name -> pattern index.
Definition at line 217 of file TriggerEfficiencyPlotsBase.h.
|
private |
Map: threshold -> threshold index.
Definition at line 214 of file TriggerEfficiencyPlotsBase.h.
|
static |
Represents the index of a threshold or pattern that is not registered.
Definition at line 112 of file TriggerEfficiencyPlotsBase.h.
1.8.5