14 if (not
data.hasL1T())
17 std::vector<bool>
const&
word =
data.l1tResults();
32 out <<
"Uninitialised_L1_Expression";
51 if (not
data.hasL1T())
60 auto const& triggerMap =
menu.getAlgorithmMap();
64 if (
entry != triggerMap.end()) {
69 if (
data.shouldThrow())
71 <<
"requested L1 trigger \"" <<
m_pattern <<
"\" does not exist in the current L1 menu";
74 <<
"requested L1 trigger \"" <<
m_pattern <<
"\" does not exist in the current L1 menu";
80 for (
auto const&
entry : triggerMap)
81 if (std::regex_match(
entry.first, re)) {
88 if (
data.shouldThrow())
90 <<
"requested pattern \"" <<
m_pattern <<
"\" does not match any L1 trigger in the current menu";
93 <<
"requested pattern \"" <<
m_pattern <<
"\" does not match any L1 trigger in the current menu";
102 auto const& triggersToMask = eval.
triggers();
104 if (triggersToMask.empty()) {
105 edm::LogInfo(
"NoTriggersToMask") <<
"\tL1uGTReader[\"" << *
this <<
"\"]::mask(arg = \"" << eval <<
"\")" 106 <<
" failed: arg.triggers() is empty";
114 <<
"\tL1uGTReader[\"" << *
this <<
"\"]::mask(arg = \"" << eval <<
"\")" 115 <<
" failed: arg.patterns() is not empty (arg is not a L1uGTReader)";
126 [&triggersToMask](
auto const& foo) {
127 return std::find(triggersToMask.begin(), triggersToMask.end(), foo) != triggersToMask.end();
virtual std::vector< std::string > patterns() const
void dump(std::ostream &out, bool const ignoreMasks=false) const override
bool operator()(const Data &data) const override
void mask(Evaluator const &eval) override
bool is_glob(std::string const &pattern)
std::string glob2reg(std::string const &pattern)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
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
std::vector< std::pair< std::string, unsigned int > > m_triggers
std::vector< std::pair< std::string, unsigned int > > m_triggersAfterMasking
void init(const Data &data) override
Log< level::Info, false > LogInfo
virtual std::vector< std::pair< std::string, unsigned int > > triggers() const
char data[epos_bytes_allocation]
virtual bool masksEnabled() const
Log< level::Warning, false > LogWarning
std::vector< std::pair< std::string, unsigned int > > triggers() const override