2 #include "Math/GenVector/VectorUtil.h" 20 tauTrigger = consumes<trigger::TriggerFilterObjectWithRefs>(iConfig.
getParameter<
InputTag>(
"L1TauTrigger"));
23 produces<CaloJetCollection>();
33 typedef std::vector<LeafCandidate> LeafCandidateCollection;
46 iEvent.getByToken(tauTrigger, l1TriggeredTaus);
48 std::vector<l1extra::L1JetParticleRef> tauCandRefVec;
49 std::vector<l1extra::L1JetParticleRef> jetCandRefVec;
56 for (
unsigned int iL1Tau = 0; iL1Tau < tauCandRefVec.size(); iL1Tau++) {
57 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
59 const Candidate& myJet = (*tauJets)[iJet];
60 double deltaR2 = ROOT::Math::VectorUtil::DeltaR2(myJet.
p4().Vect(), (tauCandRefVec[iL1Tau]->p4()).Vect());
64 if (myJet.
pt() > mEt_Min) {
66 tauL2jets->push_back(myCaloJet);
73 for (
unsigned int iL1Tau = 0; iL1Tau < jetCandRefVec.size(); iL1Tau++) {
74 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
75 const Candidate& myJet = (*tauJets)[iJet];
77 double deltaR2 = ROOT::Math::VectorUtil::DeltaR2(myJet.
p4().Vect(), (jetCandRefVec[iL1Tau]->p4()).Vect());
81 if (myJet.
pt() > mEt_Min) {
83 tauL2jets->push_back(myCaloJet);
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
T getParameter(std::string const &) const
Jets made from CaloTowers.
virtual double pt() const =0
transverse momentum
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
XYZPointD XYZPoint
point in space with cartesian internal representation
L1HLTJetsMatching(const edm::ParameterSet &)
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector