CMS 3D CMS Logo

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::EDProducer 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::EDProducer
 EDProducer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducer () 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
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
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::EDProducer
typedef EDProducer 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::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- 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::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)
 

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 43 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 53 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 51 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 52 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 45 of file Matcher.h.

45  :
46  MatcherBase<C1, C2, M>( cfg ),
47  select_( reco::modules::make<S>( cfg ) ),
48  distance_( reco::modules::make<D>( cfg ) ) { }
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

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

Definition at line 55 of file Matcher.h.

55  {
56  return distance_( c1, c2 );
57  }
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

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 62 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> >>
S reco::modules::Matcher< C1, C2, S, D, M >::select_
private

Definition at line 61 of file Matcher.h.