-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39196 from missirol/devel_hltParserMaskOperator_3
introduce `MASKING` operator in `triggerExpression::Parser`
- Loading branch information
Showing
16 changed files
with
340 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 12 additions & 8 deletions
20
HLTrigger/HLTcore/interface/TriggerExpressionL1uGTReader.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
#ifndef HLTrigger_HLTfilters_TriggerExpressionL1uGTReader_h | ||
#define HLTrigger_HLTfilters_TriggerExpressionL1uGTReader_h | ||
|
||
#include <vector> | ||
#include <string> | ||
#ifndef HLTrigger_HLTcore_TriggerExpressionL1uGTReader_h | ||
#define HLTrigger_HLTcore_TriggerExpressionL1uGTReader_h | ||
|
||
#include "HLTrigger/HLTcore/interface/TriggerExpressionEvaluator.h" | ||
|
||
namespace triggerExpression { | ||
|
||
class L1uGTReader : public Evaluator { | ||
public: | ||
L1uGTReader(const std::string& pattern) : m_pattern{pattern}, m_triggers{}, m_initialised{false} {} | ||
L1uGTReader(const std::string& pattern) | ||
: m_pattern{pattern}, m_triggers{}, m_triggersAfterMasking{}, m_initialised{false} {} | ||
|
||
bool operator()(const Data& data) const override; | ||
|
||
void init(const Data& data) override; | ||
|
||
void dump(std::ostream& out) const override; | ||
void dump(std::ostream& out, bool const ignoreMasks = false) const override; | ||
|
||
void mask(Evaluator const& eval) override; | ||
|
||
std::vector<std::pair<std::string, unsigned int>> triggers() const override { return m_triggers; } | ||
std::vector<std::pair<std::string, unsigned int>> triggersAfterMasking() const { return m_triggersAfterMasking; } | ||
|
||
private: | ||
std::string m_pattern; | ||
std::vector<std::pair<std::string, unsigned int>> m_triggers; | ||
std::vector<std::pair<std::string, unsigned int>> m_triggersAfterMasking; | ||
bool m_initialised; | ||
}; | ||
|
||
} // namespace triggerExpression | ||
|
||
#endif // HLTrigger_HLTfilters_TriggerExpressionL1uGTReader_h | ||
#endif // HLTrigger_HLTcore_TriggerExpressionL1uGTReader_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.