2 #include "Math/GenVector/VectorUtil.h"
13 using namespace l1extra;
17 tauTrigger = consumes<trigger::TriggerFilterObjectWithRefs>(iConfig.
getParameter<
InputTag>(
"L1TauTrigger"));
20 produces<CaloJetCollection>();
29 using namespace trigger;
30 using namespace l1extra;
32 typedef std::vector<LeafCandidate> LeafCandidateCollection;
45 iEvent.
getByToken(tauTrigger, l1TriggeredTaus);
47 tauCandRefVec.clear();
48 jetCandRefVec.clear();
55 for (
unsigned int iL1Tau = 0; iL1Tau < tauCandRefVec.size(); iL1Tau++) {
56 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
58 const Candidate& myJet = (*tauJets)[iJet];
63 if (myJet.
pt() > mEt_Min) {
65 tauL2jets->push_back(myCaloJet);
72 for (
unsigned int iL1Tau = 0; iL1Tau < jetCandRefVec.size(); iL1Tau++) {
73 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
74 const Candidate& myJet = (*tauJets)[iJet];
80 if (myJet.
pt() > mEt_Min) {
82 tauL2jets->push_back(myCaloJet);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Jets made from CaloTowers.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double pt() const =0
transverse momentum
void produce(edm::Event &, const edm::EventSetup &) override
~L1HLTJetsMatching() override
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
XYZPointD XYZPoint
point in space with cartesian internal representation
T getParameter(std::string const &) const
L1HLTJetsMatching(const edm::ParameterSet &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector