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
 
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< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
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::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::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
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)
 
template<Transition B>
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 (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (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 45 of file Matcher.h.

Member Typedef Documentation

◆ MatchMap

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.

◆ T1

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.

◆ T2

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

◆ Matcher()

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)) {}

◆ ~Matcher()

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

◆ 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> >>
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 56 of file Matcher.h.

56 { return distance_(c1, c2); }

◆ select()

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.

57 { return select_(c1, c2); }

Member Data Documentation

◆ distance_

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

◆ select_

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
reco::modules::Matcher::distance_
D distance_
Definition: Matcher.h:59
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
looper.cfg
cfg
Definition: looper.py:297
reco::modules::Matcher::select_
S select_
Definition: Matcher.h:58