1 #ifndef HLTcore_HLTPrescaleProvider_h
2 #define HLTcore_HLTPrescaleProvider_h
31 class ConsumesCollector;
62 template <
typename T =
unsigned int>
71 template <
typename TL1 =
int,
typename THLT = TL1>
76 prescaleValue<THLT>(iEvent, iSetup, trigger)};
81 template <
typename TL1 =
int,
typename THLT = TL1>
85 std::pair<std::vector<std::pair<std::string, TL1> >, THLT> retval;
89 retval.second = prescaleValue<THLT>(
iEvent, iSetup, trigger);
112 unsigned char count_[5] = {0, 0, 0, 0, 0};
116 template <
typename T>
120 template <
typename T>
123 if (stageL1Trigger <= 1) {
134 unsigned int HLTPrescaleProvider::prescaleValue<unsigned int>(
const edm::Event&
iEvent,
HLTConfigProvider hltConfigProvider_
static int l1PrescaleDenominator()
T convertL1PS(double val) const
std::unique_ptr< L1GtUtils > l1GtUtils_
T prescaleValue(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
combining the two methods above
std::pair< std::vector< std::pair< std::string, TL1 > >, THLT > prescaleValuesInDetail(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
double getL1PrescaleValue(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
void checkL1GtUtils() const
boost::rational< int > FractionalPrescale
std::pair< TL1, THLT > prescaleValues(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
Combined L1T (pair.first) and HLT (pair.second) prescales per HLT path.
static std::string const triggerResults
void checkL1TGlobalUtil() const
bool rejectedByHLTPrescaler(const edm::TriggerResults &triggerResults, unsigned int i) const
int prescaleSet(const edm::Event &iEvent, const edm::EventSetup &iSetup)
l1t::L1TGlobalUtil const & l1tGlobalUtil() const
HLTPrescaleProvider(edm::ParameterSet const &pset, edm::ConsumesCollector &&iC, T &module)
std::unique_ptr< l1t::L1TGlobalUtil > l1tGlobalUtil_
T getParameter(std::string const &) const
std::vector< std::pair< std::string, double > > getL1PrescaleValueInDetail(const edm::Event &iEvent, const edm::EventSetup &iSetup, const std::string &trigger)
HLTConfigProvider const & hltConfigProvider() const
T prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
L1GtUtils const & l1GtUtils() const
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
static constexpr int kL1PrescaleDenominator_