CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTHighLevel.h
Go to the documentation of this file.
1 #ifndef HLTHighLevel_h
2 #define HLTHighLevel_h
3 
17 // C++ headers
18 #include <vector>
19 #include <string>
20 
21 // CMSSW headers
29 
30 // forward declarations
31 namespace edm {
32  class TriggerResults;
33 }
35 
36 //
37 // class declaration
38 //
39 
40 class HLTHighLevel : public edm::EDFilter {
41 
42  public:
43 
44  explicit HLTHighLevel(const edm::ParameterSet&);
45  ~HLTHighLevel();
46  virtual bool filter(edm::Event&, const edm::EventSetup&);
47 
49  std::vector<std::string> pathsFromSetup(const std::string &key,
50  const edm::EventSetup &iSetup) const;
51  private:
53  void init(const edm::TriggerResults & results,
54  const edm::EventSetup &iSetup,
55  const edm::TriggerNames & triggerNames);
56 
59 
62 
64  bool andOr_;
65 
67  bool throw_;
68 
70  std::string const & pathName() const;
71  std::string const & moduleLabel() const;
72 
74  const std::string eventSetupPathsKey_;
77 
79  std::vector<std::string> HLTPatterns_;
80 
82  std::vector<std::string> HLTPathsByName_;
83 
85  std::vector<unsigned int> HLTPathsByIndex_;
86 };
87 
88 #endif //HLTHighLevel_h
bool andOr_
false = and-mode (all requested triggers), true = or-mode (at least one)
Definition: HLTHighLevel.h:64
std::string const & moduleLabel() const
std::vector< std::string > pathsFromSetup(const std::string &key, const edm::EventSetup &iSetup) const
get HLTPaths with key &#39;key&#39; from EventSetup (AlCaRecoTriggerBitsRcd)
std::vector< unsigned int > HLTPathsByIndex_
list of required HLT triggers by HLT index
Definition: HLTHighLevel.h:85
edm::ParameterSetID triggerNamesID_
HLT trigger names.
Definition: HLTHighLevel.h:61
void init(const edm::TriggerResults &results, const edm::EventSetup &iSetup, const edm::TriggerNames &triggerNames)
initialize the trigger conditions (call this if the trigger paths have changed)
Definition: HLTHighLevel.cc:76
const std::string eventSetupPathsKey_
not empty =&gt; use read paths from AlCaRecoTriggerBitsRcd via this key
Definition: HLTHighLevel.h:74
std::string const & pathName() const
stolen from HLTFilter
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool throw_
throw on any requested trigger being unknown
Definition: HLTHighLevel.h:67
HLTHighLevel(const edm::ParameterSet &)
Definition: HLTHighLevel.cc:36
list key
Definition: combine.py:13
std::vector< std::string > HLTPathsByName_
list of required HLT triggers by HLT name
Definition: HLTHighLevel.h:82
std::vector< std::string > HLTPatterns_
input patterns that will be expanded into trigger names
Definition: HLTHighLevel.h:79
edm::InputTag inputTag_
HLT TriggerResults EDProduct.
Definition: HLTHighLevel.h:58
edm::ESWatcher< AlCaRecoTriggerBitsRcd > * watchAlCaRecoTriggerBitsRcd_
Watcher to be created and used if &#39;eventSetupPathsKey_&#39; non empty:
Definition: HLTHighLevel.h:76