#include <TagRules.h>
Definition at line 69 of file TagRules.h.
Definition at line 61 of file TagRules.cxx.
63 if (jcfg.empty() or !jcfg.isArray()) {
67 const int nrss = jcfg.size();
70 for (
int ind=0; ind<nrss; ++ind) {
71 auto jone = jcfg[ind];
72 for (
auto name : jone.getMemberNames()) {
75 rsv[ind] = convert<tagrules::ruleset_t>(jone[
name]);
std::unordered_map< std::string, std::vector< ruleset_t > > m_rulesets
Definition at line 80 of file TagRules.cxx.
84 if (rsv.empty() or ind >= rsv.size()) {
87 const auto& rs = rsv[ind];
std::unordered_set< tag_t > tagset_t
tagset_t transform(const tagset_t &ts, const ruleset_t &rs, bool all_rules=true)
std::unordered_map< std::string, std::vector< ruleset_t > > m_rulesets
template<typename Tags >
Tags WireCell::tagrules::Context::transform |
( |
size_t |
ind, |
|
|
const std::string & |
name, |
|
|
const Tags & |
tags |
|
) |
| |
|
inline |
Definition at line 83 of file TagRules.h.
85 if (rsv.empty() or ind >= rsv.size()) {
89 const auto& rs = rsv[ind];
91 return Tags(out.begin(), out.end());
std::unordered_set< tag_t > tagset_t
tagset_t transform(const tagset_t &ts, const ruleset_t &rs, bool all_rules=true)
std::unordered_map< std::string, std::vector< ruleset_t > > m_rulesets
The documentation for this class was generated from the following files: