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 
21 #include <vector>
22 #include <string>
23 
24 // forward declarations
25 namespace edm {
26  class TriggerResults;
27 }
29 
30 //
31 // class declaration
32 //
33 
34 class HLTHighLevel : public HLTFilter {
35 
36  public:
37 
38  explicit HLTHighLevel(const edm::ParameterSet&);
39  ~HLTHighLevel();
40  virtual bool filter(edm::Event&, const edm::EventSetup&);
41 
43  std::vector<std::string> pathsFromSetup(const std::string &key,
44  const edm::EventSetup &iSetup) const;
45  private:
47  void init(const edm::TriggerResults & results,
48  const edm::EventSetup &iSetup,
49  const edm::TriggerNames & triggerNames);
50 
53 
56 
58  bool andOr_;
59 
61  bool throw_;
62 
64  const std::string eventSetupPathsKey_;
67 
69  std::vector<std::string> HLTPatterns_;
70 
72  std::vector<std::string> HLTPathsByName_;
73 
75  std::vector<unsigned int> HLTPathsByIndex_;
76 };
77 
78 #endif //HLTHighLevel_h
bool andOr_
false = and-mode (all requested triggers), true = or-mode (at least one)
Definition: HLTHighLevel.h:58
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:75
edm::ParameterSetID triggerNamesID_
HLT trigger names.
Definition: HLTHighLevel.h:55
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:64
virtual bool filter(edm::Event &, const edm::EventSetup &)
bool throw_
throw on any requested trigger being unknown
Definition: HLTHighLevel.h:61
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:72
std::vector< std::string > HLTPatterns_
input patterns that will be expanded into trigger names
Definition: HLTHighLevel.h:69
edm::InputTag inputTag_
HLT TriggerResults EDProduct.
Definition: HLTHighLevel.h:52
edm::ESWatcher< AlCaRecoTriggerBitsRcd > * watchAlCaRecoTriggerBitsRcd_
Watcher to be created and used if &#39;eventSetupPathsKey_&#39; non empty:
Definition: HLTHighLevel.h:66