13 if (not
data.hasHLT() && not
data.usePathStatus())
27 out <<
"Uninitialised_Path_Expression";
57 std::stringstream
msg;
58 msg <<
"requested HLT path \"" <<
m_pattern <<
"\" does not exist - known paths are:";
59 if (
data.triggerNames().empty())
62 for (
auto const&
p :
data.triggerNames())
64 if (
data.shouldThrow())
71 const std::vector<std::vector<std::string>::const_iterator>&
matches =
75 std::stringstream
msg;
76 msg <<
"requested pattern \"" <<
m_pattern <<
"\" does not match any HLT paths - known paths are:";
77 if (
data.triggerNames().empty())
80 for (
auto const&
p :
data.triggerNames())
82 if (
data.shouldThrow())
88 for (
auto const& match :
matches) {
101 auto const& triggersToMask = eval.
triggers();
103 if (triggersToMask.empty()) {
104 edm::LogInfo(
"NoTriggersToMask") <<
"\tPathReader[\"" << *
this <<
"\"]::mask(arg = \"" << eval <<
"\")" 105 <<
" failed: arg.triggers() is empty";
113 <<
"\tPathReader[\"" << *
this <<
"\"]::mask(arg = \"" << eval <<
"\")" 114 <<
" failed: arg.patterns() is empty (arg is not a PathReader)";
125 [&triggersToMask](
auto const& foo) {
126 return std::find(triggersToMask.begin(), triggersToMask.end(), foo) != triggersToMask.end();
virtual std::vector< std::string > patterns() const
std::vector< std::pair< std::string, unsigned int > > triggers() const override
bool is_glob(std::string const &pattern)
void dump(std::ostream &out, bool const ignoreMasks=false) const override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void mask(Evaluator const &eval) override
std::vector< std::pair< std::string, unsigned int > > m_triggersAfterMasking
bool operator()(const Data &data) const override
void init(const Data &data) override
virtual void enableMasks()
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Log< level::Info, false > LogInfo
virtual std::vector< std::pair< std::string, unsigned int > > triggers() const
std::vector< std::vector< std::string >::const_iterator > regexMatch(std::vector< std::string > const &strings, std::regex const ®exp)
char data[epos_bytes_allocation]
virtual bool masksEnabled() const
Log< level::Warning, false > LogWarning
std::vector< std::pair< std::string, unsigned int > > m_triggers