CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 Matcher (const edm::ParameterSet &cfg)
 
 ~Matcher ()
 
- Public Member Functions inherited from reco::modules::MatcherBase< C1, C2, M >
 MatcherBase (const edm::ParameterSet &)
 
 ~MatcherBase ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
 
bool select (const T1 &c1, const T2 &c2) const
 

Private Attributes

distance_
 
S select_
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
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)
 
- 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 ) ) { }
tuple cfg
Definition: looper.py:293
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 ( )
inline

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
inlineprivatevirtual

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
inlineprivatevirtual

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
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