CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TriggerResultsFilterFromDB.h
Go to the documentation of this file.
1 #ifndef TriggerResultsFilterFromDB_h
2 #define TriggerResultsFilterFromDB_h
3 
18 #include <vector>
19 #include <string>
20 
25 
26 // forward declaration
27 namespace edm {
29 }
30 namespace triggerExpression {
31  class Evaluator;
32 }
33 
34 //
35 // class declaration
36 //
37 
39 {
40 public:
43  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
44  bool filter(edm::Event &, const edm::EventSetup &) override;
45 
46 private:
48  void pathsFromSetup(const edm::Event &, const edm::EventSetup & setup);
49 
51  void parse(const std::string & expression);
52  void parse(const std::vector<std::string> & expressions);
53 
57 
60 
63 };
64 
65 #endif //TriggerResultsFilterFromDB_h
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::string m_eventSetupPathsKey
read the triggerConditions from the database
edm::ESWatcher< AlCaRecoTriggerBitsRcd > m_eventSetupWatcher
bool filter(edm::Event &, const edm::EventSetup &) override
triggerExpression::Evaluator * m_expression
evaluator for the trigger condition
triggerExpression::Data m_eventCache
cache some data from the Event for faster access by the m_expression
void parse(const std::string &expression)
parse the logical expression into functionals
TriggerResultsFilterFromDB(const edm::ParameterSet &)
void pathsFromSetup(const edm::Event &, const edm::EventSetup &setup)
read the triggerConditions from the database
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")