2 #include "Math/GenVector/VectorUtil.h" 13 L1JetSrc_ ( consumes<
trigger::TriggerFilterObjectWithRefs>(iConfig.getParameter<
edm::InputTag>(
"L1JetSrc") ) ),
14 matchingR2_ ( iConfig.getParameter<double>(
"MatchingdR")*iConfig.getParameter<double>(
"MatchingdR") ),
15 minTauPt_ (iConfig.getParameter<double>(
"MinTauPt") ),
16 minL1TPt_ (iConfig.getParameter<double>(
"MinL1TPt") )
18 produces<reco::PFTauCollection>();
40 for(
unsigned int iTau = 0; iTau < taus->size(); iTau++){
43 for (
unsigned int iJet = 0; iJet < jetCandRefVec.size(); iJet++) {
53 if(isMatched) L1TmatchedPFTau->push_back((*taus)[iTau]);
62 desc.
add<
edm::InputTag>(
"TauSrc",
edm::InputTag(
"hltSelectedPFTausTrackFindingLooseChargedIsolationAgainstMuon"))->setComment(
"Input collection of PFTaus");
63 desc.
add<
double> (
"MatchingdR",0.5)->
setComment(
"Maximum dR for matching between PFTaus and L1 filter jets");
64 desc.
add<
double> (
"MinTauPt",20.0)->
setComment(
"PFTaus above this pt will be considered");
65 desc.
add<
double> (
"MinL1TPt",115.0)->
setComment(
"L1T Objects above this pt will be considered");
66 descriptions.
setComment(
"This module produces a collection of PFTaus matched to the leading jet passing the L1 seed filter.");
67 descriptions.
add (
"PFTauL1TJetsMatching",desc);
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
std::vector< PFTau > PFTauCollection
collection of PFTau objects
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< JetRef > JetVectorRef
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > L1JetSrc_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~PFTauL1TJetsMatching() override
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
bool isMatched(TrackingRecHit const &hit)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
PFTauL1TJetsMatching(const edm::ParameterSet &)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
const edm::EDGetTokenT< reco::PFTauCollection > tauSrc_