15 jetsInput_ = iConfig.template getParameter<edm::InputTag>(
"jetsInput");
16 L1TauJets_ = iConfig.template getParameter<edm::InputTag>(
"L1TauJets");
17 L1CenJets_ = iConfig.template getParameter<edm::InputTag>(
"L1CenJets");
18 L1ForJets_ = iConfig.template getParameter<edm::InputTag>(
"L1ForJets");
21 auto const DeltaR = iConfig.template getParameter<double>(
"DeltaR");
24 typedef std::vector<T> TCollection;
25 m_theJetToken = consumes<TCollection>(jetsInput_);
26 m_theL1TauJetToken = consumes<l1extra::L1JetParticleCollection>(L1TauJets_);
27 m_theL1CenJetToken = consumes<l1extra::L1JetParticleCollection>(L1CenJets_);
28 m_theL1ForJetToken = consumes<l1extra::L1JetParticleCollection>(L1ForJets_);
29 produces<TCollection>();
45 desc.add<
double>(
"DeltaR", 0.5);
53 auto result = std::make_unique<std::vector<T>>();
56 auto const& l1TauJets =
iEvent.get(m_theL1TauJetToken);
57 auto const& l1CenJets =
iEvent.get(m_theL1CenJetToken);
58 auto const& l1ForJets =
iEvent.get(m_theL1ForJetToken);
63 for (
auto const& l1t_obj : l1TauJets) {
75 for (
auto const& l1t_obj : l1CenJets) {
87 for (
auto const& l1t_obj : l1ForJets) {
std::string defaultModuleLabel()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~HLTJetL1MatchProducer() override
HLTJetL1MatchProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
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)