CMS 3D CMS Logo

HLTPrescaleProvider.h
Go to the documentation of this file.
1 #ifndef HLTcore_HLTPrescaleProvider_h
2 #define HLTcore_HLTPrescaleProvider_h
3 
23 
24 #include <string>
25 #include <utility>
26 #include <vector>
27 
28 namespace edm {
29  class ConsumesCollector;
30  class Event;
31  class EventSetup;
32  class ParameterSet;
33  class Run;
34 } // namespace edm
35 
37 public:
38  template <typename T>
40 
41  template <typename T>
43 
47  bool init(const edm::Run& iRun, const edm::EventSetup& iSetup, const std::string& processName, bool& changed);
48 
49  HLTConfigProvider const& hltConfigProvider() const { return hltConfigProvider_; }
50  L1GtUtils const& l1GtUtils() const { return l1GtUtils_; }
51  l1t::L1TGlobalUtil const& l1tGlobalUtil() const { return l1tGlobalUtil_; }
52 
55  int prescaleSet(const edm::Event& iEvent, const edm::EventSetup& iSetup);
56  // negative == error
57 
59  unsigned int prescaleValue(const edm::Event& iEvent, const edm::EventSetup& iSetup, const std::string& trigger);
60 
62  std::pair<int, int> prescaleValues(const edm::Event& iEvent,
63  const edm::EventSetup& iSetup,
64  const std::string& trigger);
65  // any one negative => error in retrieving this (L1T or HLT) prescale
66 
67  // In case of a complex Boolean expression as L1 seed
68  std::pair<std::vector<std::pair<std::string, int> >, int> prescaleValuesInDetail(const edm::Event& iEvent,
69  const edm::EventSetup& iSetup,
70  const std::string& trigger);
71  // Event rejected by HLTPrescaler on ith HLT path?
72  bool rejectedByHLTPrescaler(const edm::TriggerResults& triggerResults, unsigned int i) const;
73 
74 private:
78  unsigned char count_[5] = {0, 0, 0, 0, 0};
79 };
80 
81 template <typename T>
83  : HLTPrescaleProvider(pset, iC, module) {}
84 
85 template <typename T>
87  : l1GtUtils_(pset, iC, false, module), l1tGlobalUtil_(pset, iC, module) {}
88 #endif
HLTConfigProvider hltConfigProvider_
int init
Definition: HydjetWrapper.h:64
int iEvent
Definition: GenABIO.cc:224
l1t::L1TGlobalUtil const & l1tGlobalUtil() const
l1t::L1TGlobalUtil l1tGlobalUtil_
L1GtUtils const & l1GtUtils() const
HLTPrescaleProvider(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
static std::string const triggerResults("TriggerResults")
HLTConfigProvider const & hltConfigProvider() const
HLT enums.
long double T
Definition: vlib.h:198
Definition: Run.h:45