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 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);