2 #include "Math/GenVector/VectorUtil.h" 12 tauSrc_ ( consumes<
trigger::TriggerFilterObjectWithRefs>(iConfig.getParameter<
edm::InputTag>(
"TauSrc" ) ) ),
14 matchingR2_ ( iConfig.getParameter<double>(
"Min_dR")*iConfig.getParameter<double>(
"Min_dR") )
16 produces<reco::PFJetCollection>();
33 if(PFJets->size() > 1){
34 for(
unsigned int iJet = 0; iJet < 2; iJet++){
37 for(
unsigned int iTau = 0; iTau < taus.size(); iTau++){
43 if(isMatched ==
false) cleanedPFJets->push_back(myPFJet);
45 if(PFJets->size() > 2) cleanedPFJets->push_back((*PFJets)[2]);
54 desc.
add<
edm::InputTag>(
"TauSrc",
edm::InputTag(
"hltSinglePFTau20TrackPt1LooseChargedIsolationReg"))->setComment(
"Input collection of PFTaus that have passed ID and isolation requirements");
55 desc.
add<
double> (
"Min_dR",0.5)->
setComment(
"Minimum dR outside of which PFJets will be saved");
56 descriptions.
setComment(
"This module produces a collection of PFJets that are cross-cleaned with respect to PFTaus passing a HLT filter.");
57 descriptions.
add (
"PFJetsTauOverlapRemoval",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:
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~PFJetsTauOverlapRemoval()
PFJetsTauOverlapRemoval(const edm::ParameterSet &)
Jets made from PFObjects.
const edm::EDGetTokenT< reco::PFJetCollection > pfJetSrc_
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)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
std::vector< PFJet > PFJetCollection
collection of PFJet objects
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tauSrc_
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
std::vector< reco::PFTauRef > VRpftau
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override