Produces a collection of jets cleaned against leading leptons. More...
#include <HLTJetsCleanedFromLeadingLeptons.h>
Classes | |
class | EtaPhiE |
An auxiliary class to store momentum parametrised in eta, phi, and energy. More... | |
Public Member Functions | |
HLTJetsCleanedFromLeadingLeptons (edm::ParameterSet const &iConfig) | |
Constructor. More... | |
void | produce (edm::Event &iEvent, edm::EventSetup const &iSetup) override |
Produces jets cleaned against leptons. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Describes configuration of the plugin. More... | |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
edm::EDGetTokenT< std::vector< JetType > > | jetToken |
Token to access a collection of jets. More... | |
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > | leptonToken |
Token to identify a collection of leptons that pass an HLT filter. More... | |
double | minDeltaR2 |
A square of the minimal allowed angular separation between a lepton and a jet. More... | |
unsigned | numLeptons |
Number of leading leptons against which the jets are cleaned. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Produces a collection of jets cleaned against leading leptons.
The plugin loops over the given collection of jets and exclude ones that are close to one of the leading leptons. References to surviving jets are stored in the same format as expected by the HLTJetCollectionsFilter plugin.
Definition at line 30 of file HLTJetsCleanedFromLeadingLeptons.h.
typedef std::vector<JetType> HLTJetsCleanedFromLeadingLeptons< JetType >::JetCollection |
Definition at line 33 of file HLTJetsCleanedFromLeadingLeptons.h.
typedef std::vector<edm::RefVector<JetCollection, JetType, edm::refhelper::FindUsingAdvance<JetCollection, JetType> > > HLTJetsCleanedFromLeadingLeptons< JetType >::JetCollectionVector |
Definition at line 38 of file HLTJetsCleanedFromLeadingLeptons.h.
typedef edm::Ref<JetCollection> HLTJetsCleanedFromLeadingLeptons< JetType >::JetRef |
Definition at line 34 of file HLTJetsCleanedFromLeadingLeptons.h.
typedef edm::RefVector<JetCollection> HLTJetsCleanedFromLeadingLeptons< JetType >::JetRefVector |
Definition at line 35 of file HLTJetsCleanedFromLeadingLeptons.h.
HLTJetsCleanedFromLeadingLeptons< JetType >::HLTJetsCleanedFromLeadingLeptons | ( | edm::ParameterSet const & | iConfig | ) |
Constructor.
Definition at line 155 of file HLTJetsCleanedFromLeadingLeptons.h.
References edm::ParameterSet::getParameter(), HLTJetsCleanedFromLeadingLeptons< JetType >::jetToken, and HLTJetsCleanedFromLeadingLeptons< JetType >::leptonToken.
|
static |
Describes configuration of the plugin.
Definition at line 169 of file HLTJetsCleanedFromLeadingLeptons.h.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and defaultModuleLabel().
|
overridevirtual |
Produces jets cleaned against leptons.
Implements edm::stream::EDProducerBase.
Definition at line 188 of file HLTJetsCleanedFromLeadingLeptons.h.
References fastPrimaryVertexProducer_cfi::clusters, reco::deltaR2(), electrons_cff::electrons, SimCluster::energy(), SimCluster::eta(), edm::Event::getByToken(), trigger::TriggerRefsCollections::getObjects(), fwrapper::jets, HLTJetsCleanedFromLeadingLeptons< JetType >::jetToken, HLTJetsCleanedFromLeadingLeptons< JetType >::leptonToken, HLTJetsCleanedFromLeadingLeptons< JetType >::minDeltaR2, eostools::move(), extraflags_cff::muons, HLTJetsCleanedFromLeadingLeptons< JetType >::numLeptons, muon::overlap(), SimCluster::phi(), nano_cff::photons, edm::RefVector< C, T, F >::push_back(), edm::Event::put(), SimDataFormats::CaloAnalysis::sc, trigger::TriggerCluster, trigger::TriggerElectron, trigger::TriggerMuon, and trigger::TriggerPhoton.
|
private |
Token to access a collection of jets.
Definition at line 91 of file HLTJetsCleanedFromLeadingLeptons.h.
Referenced by HLTJetsCleanedFromLeadingLeptons< JetType >::HLTJetsCleanedFromLeadingLeptons(), and HLTJetsCleanedFromLeadingLeptons< JetType >::produce().
|
private |
Token to identify a collection of leptons that pass an HLT filter.
Definition at line 88 of file HLTJetsCleanedFromLeadingLeptons.h.
Referenced by HLTJetsCleanedFromLeadingLeptons< JetType >::HLTJetsCleanedFromLeadingLeptons(), and HLTJetsCleanedFromLeadingLeptons< JetType >::produce().
|
private |
A square of the minimal allowed angular separation between a lepton and a jet.
Definition at line 94 of file HLTJetsCleanedFromLeadingLeptons.h.
Referenced by HLTJetsCleanedFromLeadingLeptons< JetType >::produce().
|
private |
Number of leading leptons against which the jets are cleaned.
If the number is larger than the total number of leptons, the jets are cleaned against all leptons.
Definition at line 102 of file HLTJetsCleanedFromLeadingLeptons.h.
Referenced by HLTJetsCleanedFromLeadingLeptons< JetType >::produce().