#include <HLT2L1TkMuonL1TkMuonMuRefDR.h>
Public Member Functions | |
bool | computeDR (edm::Event &iEvent, l1t::TkMuonRef &c1, l1t::TkMuonRef &c2) const |
std::pair< float, float > | convertEtaPhi (l1t::TkMuonRef &tkmu) const |
bool | getCollections (edm::Event &iEvent, std::vector< l1t::TkMuonRef > &coll1, std::vector< l1t::TkMuonRef > &coll2, trigger::TriggerFilterObjectWithRefs &filterproduct) const |
HLT2L1TkMuonL1TkMuonMuRefDR (const edm::ParameterSet &) | |
bool | hltFilter (edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override |
~HLT2L1TkMuonL1TkMuonMuRefDR () override | |
Public Member Functions inherited from HLTFilter | |
HLTFilter (const edm::ParameterSet &config) | |
int | module (edm::Event const &) const |
const std::string * | moduleLabel () const |
int | path (edm::Event const &) const |
const std::string * | pathName (edm::Event const &) const |
std::pair< int, int > | pmid (edm::Event const &) const |
bool | saveTags () const |
~HLTFilter () override | |
Public Member Functions inherited from edm::global::EDFilter<> | |
EDFilter ()=default | |
EDFilter (const EDFilter &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDFilter & | operator= (const EDFilter &)=delete |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
bool | wantsInputProcessBlocks () const final |
bool | wantsProcessBlocks () const final |
bool | wantsStreamLuminosityBlocks () const final |
bool | wantsStreamRuns () const final |
Public Member Functions inherited from edm::global::EDFilterBase | |
EDFilterBase () | |
ModuleDescription const & | moduleDescription () const |
~EDFilterBase () 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 |
std::vector< bool > const & | recordProvenanceList () 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) |
TypeLabelList const & | typeLabelList () const |
used by the fwk to register the list of products of this module More... | |
~ProducerBase () noexcept(false) override | |
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 | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from HLTFilter | |
static void | makeHLTFilterDescription (edm::ParameterSetDescription &desc) |
Static Public Member Functions inherited from edm::global::EDFilterBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
const edm::InputTag | inputTag1_ |
const edm::InputTag | inputTag2_ |
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > | inputToken1_ |
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > | inputToken2_ |
const int | min_N_ |
const double | minDR_ |
const std::vector< edm::InputTag > | originTag1_ |
const std::vector< edm::InputTag > | originTag2_ |
const bool | same_ |
Static Private Attributes | |
static constexpr unsigned int | emtfRegion_ {3} |
static constexpr float | etaScale_ {0.010875} |
static constexpr float | phiScale_ {2. * M_PI / 576.} |
Additional Inherited Members | |
Public Types inherited from edm::global::EDFilterBase | |
typedef EDFilterBase | 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 | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
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) |
Definition at line 23 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
|
explicit |
Definition at line 20 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
|
override |
Definition at line 32 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
bool HLT2L1TkMuonL1TkMuonMuRefDR::computeDR | ( | edm::Event & | iEvent, |
l1t::TkMuonRef & | c1, | ||
l1t::TkMuonRef & | c2 | ||
) | const |
Definition at line 124 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
References convertEtaPhi(), reco::deltaR2(), HLT_2022v12_cff::eta1, HLT_2022v12_cff::eta2, minDR_, diffTwoXMLs::r1, and diffTwoXMLs::r2.
Referenced by hltFilter().
std::pair< float, float > HLT2L1TkMuonL1TkMuonMuRefDR::convertEtaPhi | ( | l1t::TkMuonRef & | tkmu | ) | const |
Definition at line 100 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
References l1t::MicroGMTConfiguration::calcGlobalPhi(), angle_units::operators::convertDegToRad(), emtfRegion_, etaScale_, edm::Ref< C, T, F >::isNull(), phiScale_, and reco::reduceRange().
Referenced by computeDR().
|
static |
Definition at line 34 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v12_cff::InputTag, HLTFilter::makeHLTFilterDescription(), HLT_2022v12_cff::originTag1, and HLT_2022v12_cff::originTag2.
bool HLT2L1TkMuonL1TkMuonMuRefDR::getCollections | ( | edm::Event & | iEvent, |
std::vector< l1t::TkMuonRef > & | coll1, | ||
std::vector< l1t::TkMuonRef > & | coll2, | ||
trigger::TriggerFilterObjectWithRefs & | filterproduct | ||
) | const |
Definition at line 49 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
References trigger::TriggerFilterObjectWithRefs::addCollectionTag(), edm::InputTag::encode(), trigger::TriggerRefsCollections::getObjects(), mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, iEvent, HLT_2022v12_cff::InputTag, inputToken1_, inputToken2_, instance, label, originTag1_, originTag2_, LaserDQM_cfg::process, HLTFilter::saveTags(), AlCaHLTBitMon_QueryRunRegistry::string, and trigger::TriggerL1TkMu.
Referenced by hltFilter().
|
overridevirtual |
Implements HLTFilter.
Definition at line 134 of file HLT2L1TkMuonL1TkMuonMuRefDR.cc.
References accept(), trigger::TriggerRefsCollections::addObject(), computeDR(), getCollections(), Exhume::I, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, iEvent, min_N_, dqmiodumpmetadata::n, diffTwoXMLs::r1, diffTwoXMLs::r2, same_, and trigger::TriggerL1TkMu.
|
staticprivate |
Definition at line 51 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by convertEtaPhi().
|
staticprivate |
Definition at line 52 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by convertEtaPhi().
|
private |
Definition at line 42 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
|
private |
Definition at line 43 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
|
private |
Definition at line 44 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by getCollections().
|
private |
Definition at line 45 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by getCollections().
|
private |
Definition at line 47 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by hltFilter().
|
private |
Definition at line 46 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by computeDR().
|
private |
Definition at line 40 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by getCollections().
|
private |
Definition at line 41 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by getCollections().
|
staticprivate |
Definition at line 53 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by convertEtaPhi().
|
private |
Definition at line 48 of file HLT2L1TkMuonL1TkMuonMuRefDR.h.
Referenced by hltFilter().