15 jetsInput_ = iConfig.template getParameter<edm::InputTag>(
"jetsInput");
16 L1Jets_ = iConfig.template getParameter<edm::InputTag>(
"L1Jets");
19 auto const DeltaR = iConfig.template getParameter<double>(
"DeltaR");
22 m_theJetToken = consumes(jetsInput_);
23 m_theL1JetToken = consumes(L1Jets_);
25 produces<std::vector<T>>();
33 desc.add<
double>(
"DeltaR", 0.5);
40 auto const l1Jets =
iEvent.getHandle(m_theL1JetToken);
42 bool trigger_bx_only =
true;
44 auto result = std::make_unique<std::vector<T>>();
46 if (l1Jets.isValid()) {
49 for (
int ibx = l1Jets->getFirstBX(); ibx <= l1Jets->getLastBX(); ++ibx) {
50 if (trigger_bx_only && (ibx != 0))
52 for (
auto it = l1Jets->begin(ibx);
it != l1Jets->end(ibx);
it++) {
66 edm::LogWarning(
"MissingProduct") <<
"L1Upgrade l1Jets bx collection not found.";
std::string defaultModuleLabel()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Abs< T >::type abs(const T &t)
bool isMatched(TrackingRecHit const &hit)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &, const edm::EventSetup &) override
HLTJetL1TMatchProducer(const edm::ParameterSet &)
Log< level::Warning, false > LogWarning