Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
double | computeRelativeIsolation (const pat::PackedCandidate &photon, const pat::PackedCandidateCollection &pfcands, const double &isoConeMax2, const double &isoConeMin2) const |
bool | electronFootprintVeto (pat::PackedCandidateRef &pfcandRef, edm::Handle< pat::ElectronCollection > electronsForVeto) const |
void | produce (edm::StreamID, edm::Event &, const edm::EventSetup &) const override |
Private Attributes | |
const double | drEtCut |
const double | drSafe |
const edm::EDGetTokenT < edm::View< reco::GsfElectron > > | electrons_ |
const edm::EDGetTokenT < pat::ElectronCollection > | electronsForVeto_ |
const double | etaCutE |
const double | etaCutMu |
const double | isoCut |
const edm::EDGetTokenT < edm::View< reco::Muon > > | muons_ |
const edm::EDGetTokenT < pat::PackedCandidateCollection > | pfcands_ |
const double | photonPtCut |
const double | ptCutE |
const double | ptCutMu |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Search for FSR photons for muons and electrons.
Photon candidates are searched among the "packedPFCandidates" collection with the specified cuts, and are required to be isolated (relIso, with a cone of 0.3) and not to be in the footprint of all electrons in the "electrons" collection. Each photon is matched by DeltaR to the closest among all muons and electrons and stored if passing dR/ET^2<deltaROverEt2Max. In addition ValueMaps are stored, with links to one photon per muon/electron. For this purpose, if more than a photon is matched to a lepton, the lowest-DR/ET^2 is chosen.
Definition at line 31 of file LeptonFSRProducer.cc.
|
inlineexplicit |
Definition at line 33 of file LeptonFSRProducer.cc.
References edm::ParameterSet::getParameter().
|
overridedefault |
|
private |
Definition at line 239 of file LeptonFSRProducer.cc.
References funct::abs(), reco::deltaR2(), drSafe, pat::PackedCandidate::eta(), pat::PackedCandidate::phi(), and pat::PackedCandidate::pt().
Referenced by produce().
|
private |
Definition at line 264 of file LeptonFSRProducer.cc.
References edm::Ref< C, T, F >::id(), and edm::Ref< C, T, F >::key().
Referenced by produce().
|
inlinestatic |
Definition at line 50 of file LeptonFSRProducer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and edm::ParameterDescriptionNode::setComment().
|
overrideprivatevirtual |
Implements edm::global::EDProducerBase.
Definition at line 100 of file LeptonFSRProducer.cc.
References funct::abs(), computeRelativeIsolation(), HLT_FULL_cff::deltaR, HLT_FULL_cff::dRMin, drSafe, electronFootprintVeto(), HI_PhotonSkim_cff::electrons, electrons_, electronsForVeto_, etaCutE, etaCutMu, edm::helper::Filler< Map >::fill(), edm::Event::getByToken(), edm::helper::Filler< Map >::insert(), isoCut, eostools::move(), HLT_FULL_cff::muon, patZpeak::muons, muons_, HLT_FULL_cff::pfcands, pfcands_, photonPtCut, DiDispStaMuonMonitor_cfi::pt, ptCutE, ptCutMu, and edm::Event::put().
|
private |
Definition at line 95 of file LeptonFSRProducer.cc.
|
private |
Definition at line 97 of file LeptonFSRProducer.cc.
Referenced by computeRelativeIsolation(), and produce().
|
private |
Definition at line 89 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 87 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 93 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 91 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 96 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 88 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 86 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 94 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 92 of file LeptonFSRProducer.cc.
Referenced by produce().
|
private |
Definition at line 90 of file LeptonFSRProducer.cc.
Referenced by produce().