2 #include "Math/GenVector/VectorUtil.h"
15 using namespace l1extra;
23 produces<PFTauCollection>();
33 using namespace trigger;
34 using namespace l1extra;
39 double matchingR = 0.5;
50 tauCandRefVec.clear();
51 jetCandRefVec.clear();
58 for(
unsigned int iL1Tau=0; iL1Tau <tauCandRefVec.size();iL1Tau++)
60 for(
unsigned int iJet=0;iJet<tauJets->size();iJet++)
63 const PFTau & myJet = (*tauJets)[iJet];
64 deltaR = ROOT::Math::VectorUtil::DeltaR(myJet.
p4().Vect(), (tauCandRefVec[iL1Tau]->p4()).Vect());
70 PFTau myPFTau(std::numeric_limits<int>::quiet_NaN(), myJet.
p4(),
a);
71 if(myJet.
pt() > mEt_Min) {
73 tauL2jets->push_back(myPFTau);
80 for(
unsigned int iL1Tau=0; iL1Tau <jetCandRefVec.size();iL1Tau++)
82 for(
unsigned int iJet=0;iJet<tauJets->size();iJet++)
84 const PFTau & myJet = (*tauJets)[iJet];
86 deltaR = ROOT::Math::VectorUtil::DeltaR(myJet.
p4().Vect(), (jetCandRefVec[iL1Tau]->p4()).Vect());
93 PFTau myPFTau(std::numeric_limits<int>::quiet_NaN(), myJet.
p4(),
a);
94 if(myJet.
pt() > mEt_Min) {
96 tauL2jets->push_back(myPFTau);
106 iEvent.
put(tauL2jets);
T getParameter(std::string const &) const
std::vector< PFTau > PFTauCollection
collection of PFTau objects
double deltaR(double eta1, double phi1, double eta2, double phi2)
L1HLTTauMatching(const edm::ParameterSet &)
bool isNonnull() const
Checks for non-null.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const PFCandidateRef & leadPFChargedHadrCand() const
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual double pt() const
transverse momentum
XYZPointD XYZPoint
point in space with cartesian internal representation
virtual const LorentzVector & p4() const
four-momentum Lorentz vector