CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
reco::modules::Matcher< C1, C2, S, D, M > Class Template Reference

#include <Matcher.h>

Inheritance diagram for reco::modules::Matcher< C1, C2, S, D, M >:
reco::modules::MatcherBase< C1, C2, M > edm::global::EDProducer<> edm::global::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 Matcher (const edm::ParameterSet &cfg)
 
 ~Matcher () override
 
- Public Member Functions inherited from reco::modules::MatcherBase< C1, C2, M >
 MatcherBase (const edm::ParameterSet &)
 
 ~MatcherBase () override
 
- Public Member Functions inherited from edm::global::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=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
 
EDProduceroperator= (const EDProducer &)=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::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)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () 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
 
EDConsumerBaseoperator= (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)
 

Private Types

typedef MatcherBase< C1, C2, M >
::MatchMap 
MatchMap
 
typedef MatcherBase< C1, C2, M >
::T1 
T1
 
typedef MatcherBase< C1, C2, M >
::T2 
T2
 

Private Member Functions

double matchDistance (const T1 &c1, const T2 &c2) const override
 
bool select (const T1 &c1, const T2 &c2) const override
 

Private Attributes

distance_
 
S select_
 

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
 
- Static Public Member Functions inherited from edm::global::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Types inherited from reco::modules::MatcherBase< C1, C2, M >
typedef M MatchMap
 
typedef C1::value_type T1
 
typedef C2::value_type T2
 
- 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< Bconsumes (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)
 

Detailed Description

template<typename C1, typename C2, typename S, typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
class reco::modules::Matcher< C1, C2, S, D, M >

Definition at line 45 of file Matcher.h.

Member Typedef Documentation

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
typedef MatcherBase<C1, C2, M>::MatchMap reco::modules::Matcher< C1, C2, S, D, M >::MatchMap
private

Definition at line 54 of file Matcher.h.

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
typedef MatcherBase<C1, C2, M>::T1 reco::modules::Matcher< C1, C2, S, D, M >::T1
private

Definition at line 52 of file Matcher.h.

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
typedef MatcherBase<C1, C2, M>::T2 reco::modules::Matcher< C1, C2, S, D, M >::T2
private

Definition at line 53 of file Matcher.h.

Constructor & Destructor Documentation

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
reco::modules::Matcher< C1, C2, S, D, M >::Matcher ( const edm::ParameterSet cfg)
inline

Definition at line 47 of file Matcher.h.

48  : MatcherBase<C1, C2, M>(cfg), select_(reco::modules::make<S>(cfg)), distance_(reco::modules::make<D>(cfg)) {}
tuple cfg
Definition: looper.py:296
template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
reco::modules::Matcher< C1, C2, S, D, M >::~Matcher ( )
inlineoverride

Definition at line 49 of file Matcher.h.

49 {}

Member Function Documentation

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
double reco::modules::Matcher< C1, C2, S, D, M >::matchDistance ( const T1 c1,
const T2 c2 
) const
inlineoverrideprivatevirtual
template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
bool reco::modules::Matcher< C1, C2, S, D, M >::select ( const T1 c1,
const T2 c2 
) const
inlineoverrideprivatevirtual

Implements reco::modules::MatcherBase< C1, C2, M >.

Definition at line 57 of file Matcher.h.

References reco::modules::Matcher< C1, C2, S, D, M >::select_.

57 { return select_(c1, c2); }

Member Data Documentation

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
D reco::modules::Matcher< C1, C2, S, D, M >::distance_
private

Definition at line 59 of file Matcher.h.

Referenced by reco::modules::Matcher< C1, C2, S, D, M >::matchDistance().

template<typename C1 , typename C2 , typename S , typename D = DeltaR<typename C1::value_type, typename C2::value_type>, typename M = edm::AssociationMap<edm::OneToOne<C1, C2> >>
S reco::modules::Matcher< C1, C2, S, D, M >::select_
private

Definition at line 58 of file Matcher.h.

Referenced by reco::modules::Matcher< C1, C2, S, D, M >::select().