2 #include "Math/GenVector/VectorUtil.h" 17 tauTrigger = consumes<trigger::TriggerFilterObjectWithRefs>(iConfig.
getParameter<
InputTag>(
"L1TauTrigger"));
20 produces<CaloJetCollection>();
32 typedef std::vector<LeafCandidate> LeafCandidateCollection;
45 iEvent.getByToken(tauTrigger, l1TriggeredTaus);
47 std::vector<l1extra::L1JetParticleRef> tauCandRefVec;
48 std::vector<l1extra::L1JetParticleRef> jetCandRefVec;
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);
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
~L1HLTJetsMatching() override
#define DEFINE_FWK_MODULE(type)
constexpr auto deltaR(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