CMS 3D CMS Logo

HLTHighLevel.h
Go to the documentation of this file.
1 #ifndef HLTHighLevel_h
2 #define HLTHighLevel_h
3 
15 // C++ headers
16 #include <vector>
17 #include <string>
18 #include <optional>
19 
20 // CMSSW headers
28 
29 // forward declarations
30 namespace edm {
32  class TriggerResults;
33 } // namespace edm
34 
37 
38 //
39 // class declaration
40 //
41 
43 public:
44  explicit HLTHighLevel(const edm::ParameterSet &);
45  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
46 
47  bool filter(edm::Event &, const edm::EventSetup &) override;
48 
50  std::vector<std::string> pathsFromSetup(const std::string &key,
51  const edm::Event &,
52  const edm::EventSetup &iSetup) const;
53 
54 private:
56  void init(const edm::TriggerResults &results,
57  const edm::Event &,
58  const edm::EventSetup &iSetup,
60 
64 
67 
69  bool andOr_;
70 
72  bool throw_;
73 
75  std::string const &pathName(const edm::Event &) const;
76  std::string const &moduleLabel() const;
77 
82  std::optional<edm::ESWatcher<AlCaRecoTriggerBitsRcd>> watchAlCaRecoTriggerBitsRcd_;
85 
87  std::vector<std::string> HLTPatterns_;
88 
90  std::vector<std::string> HLTPathsByName_;
91 
93  std::vector<unsigned int> HLTPathsByIndex_;
94 };
95 
96 #endif //HLTHighLevel_h
void init(const edm::TriggerResults &results, const edm::Event &, const edm::EventSetup &iSetup, const edm::TriggerNames &triggerNames)
initialize the trigger conditions (call this if the trigger paths have changed)
Definition: HLTHighLevel.cc:89
bool andOr_
false = and-mode (all requested triggers), true = or-mode (at least one)
Definition: HLTHighLevel.h:69
std::string const & moduleLabel() const
std::vector< unsigned int > HLTPathsByIndex_
list of required HLT triggers by HLT index
Definition: HLTHighLevel.h:93
edm::ParameterSetID triggerNamesID_
HLT trigger names.
Definition: HLTHighLevel.h:66
key
prepare the HTCondor submission files and eventually submit them
std::vector< std::string > pathsFromSetup(const std::string &key, const edm::Event &, const edm::EventSetup &iSetup) const
get HLTPaths with key &#39;key&#39; from EventSetup (AlCaRecoTriggerBitsRcd)
bool filter(edm::Event &, const edm::EventSetup &) override
std::optional< edm::ESWatcher< AlCaRecoTriggerBitsRcd > > watchAlCaRecoTriggerBitsRcd_
Watcher to be created and used if &#39;eventSetupPathsKey_&#39; non empty:
Definition: HLTHighLevel.h:82
edm::ESGetToken< AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd > alcaRecotriggerBitsToken_
ESGetToken to read AlCaRecoTriggerBits.
Definition: HLTHighLevel.h:84
edm::EDGetTokenT< edm::TriggerResults > inputToken_
Definition: HLTHighLevel.h:63
const std::string eventSetupPathsKey_
not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
Definition: HLTHighLevel.h:79
bool throw_
throw on any requested trigger being unknown
Definition: HLTHighLevel.h:72
HLTHighLevel(const edm::ParameterSet &)
Definition: HLTHighLevel.cc:36
HLT enums.
results
Definition: mysort.py:8
std::vector< std::string > HLTPathsByName_
list of required HLT triggers by HLT name
Definition: HLTHighLevel.h:90
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTHighLevel.cc:69
std::vector< std::string > HLTPatterns_
input patterns that will be expanded into trigger names
Definition: HLTHighLevel.h:87
const std::string eventSetupPathsLabel_
Definition: HLTHighLevel.h:80
edm::InputTag inputTag_
HLT TriggerResults EDProduct.
Definition: HLTHighLevel.h:62
std::string const & pathName(const edm::Event &) const
stolen from HLTFilter