26 : hltPSProvider_(iPSet.getParameter<
edm::
ParameterSet>(
"hltPSProvCfg"), consumesCollector(), *this),
27 hltProcess_(iPSet.getParameter<
std::
string>(
"hltProcess")),
28 hltPath_(iPSet.getParameter<
std::
string>(
"hltPath")) {}
50 std::cout <<
"---------Begin Event--------" << std::endl;
51 std::cout <<
"hltDouble " << hltPSDouble <<
" hltInt " << hltPSInt <<
" hltPSUInt " << hltPSUInt <<
" hltFrac " 52 << hltPSFrac << std::endl;
54 std::cout <<
" l1HLTDouble " << l1HLTPSDouble.first <<
" " << l1HLTPSDouble.second <<
" l1HLTInt " << l1HLTPSInt.first
55 <<
" " << l1HLTPSInt.second <<
" l1HLTFrac " << l1HLTPSFrac.first <<
" " << l1HLTPSFrac.second
56 <<
" l1HLTDoubleFrac " << l1HLTPSDoubleFrac.first <<
" " << l1HLTPSDoubleFrac.second << std::endl;
59 for (
const auto&
entry :
val.first) {
62 out <<
" HLT : " <<
val.second << std::endl;
65 printL1HLTDetail(
"l1HLTDetailDouble ", l1HLTDetailPSDouble,
std::cout);
66 printL1HLTDetail(
"l1HLTDetailInt ", l1HLTDetailPSInt,
std::cout);
67 printL1HLTDetail(
"l1HLTDetailFrac ", l1HLTDetailPSFrac,
std::cout);
68 std::cout <<
"---------End Event--------" << std::endl << std::endl;
#define DEFINE_FWK_MODULE(type)
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)
HLTPrescaleExample(edm::ParameterSet const &iPSet)
boost::rational< int > FractionalPrescale
HLTPrescaleProvider hltPSProvider_
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.
void endRun(edm::Run const &iEvent, edm::EventSetup const &) override
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
void beginRun(edm::Run const &iEvent, edm::EventSetup const &) override
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)