CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
CandMatcherBase< C1, C2 > Class Template Referenceabstract

#include <CandMatcher.h>

Inheritance diagram for CandMatcherBase< C1, C2 >:
CandMatcher< C1, C2 > CandMatcher< C1, C2 >

Public Types

typedef
reco::helper::CandMapTrait< C1,
C2 >::type 
map_type
 map type More...
 
typedef
reco::helper::CandMapTrait< C1,
C2 >::type 
map_type
 map type More...
 
typedef std::vector< const
map_type * > 
map_vector
 map vector More...
 
typedef std::vector< const
map_type * > 
map_vector
 map vector More...
 
typedef
reco::helper::CandRefTrait< C2 >
::ref_type 
ref_type
 ref type More...
 
typedef
reco::helper::CandRefTrait< C2 >
::ref_type 
ref_type
 ref type More...
 
typedef map_type::key_type reference_type
 concrete candidate reference type More...
 
typedef map_type::key_type reference_type
 concrete candidate reference type More...
 
typedef
reco::helper::CandRefTrait< C2 >
::refProd_type 
refProd_type
 refProd type More...
 
typedef
reco::helper::CandRefTrait< C2 >
::refProd_type 
refProd_type
 refProd type More...
 
typedef reference_type::value_type value_type
 concrete candidate reference type More...
 
typedef reference_type::value_type value_type
 concrete candidate reference type More...
 

Public Member Functions

 CandMatcherBase (const map_vector &maps)
 constructor More...
 
 CandMatcherBase (const map_vector &maps)
 constructor More...
 
 CandMatcherBase (const map_type &map)
 constructor More...
 
 CandMatcherBase (const map_type &map)
 constructor More...
 
ref_type operator() (const reco::Candidate &) const
 get match from transient reference More...
 
ref_type operator() (const reco::Candidate &) const
 get match from transient reference More...
 
virtual ~CandMatcherBase ()
 destructor More...
 
virtual ~CandMatcherBase ()
 destructor More...
 

Protected Member Functions

virtual bool compositePreselect (const reco::Candidate &c, const reco::Candidate &m) const =0
 composite candidate preselection More...
 
virtual bool compositePreselect (const reco::Candidate &c, const reco::Candidate &m) const =0
 composite candidate preselection More...
 
virtual std::vector< const
reco::Candidate * > 
getDaughters (const reco::Candidate *) const =0
 get ultimate daughter (can skip status = 3 in MC) More...
 
virtual std::vector< const
reco::Candidate * > 
getDaughters (const reco::Candidate *) const =0
 get ultimate daughter (can skip status = 3 in MC) More...
 
void initMaps ()
 init maps More...
 
void initMaps ()
 init maps More...
 
const std::vector< const
map_type * > & 
maps () const
 
const std::vector< const
map_type * > & 
maps () const
 

Private Types

typedef std::map< const
reco::Candidate
*, reference_type
CandRefMap
 pointer map type More...
 
typedef std::map< const
reco::Candidate
*, reference_type
CandRefMap
 pointer map type More...
 
typedef std::map< const
reco::Candidate *, ref_type
MatchedRefMap
 pointer map type More...
 
typedef std::map< const
reco::Candidate *, ref_type
MatchedRefMap
 pointer map type More...
 

Private Member Functions

void init ()
 init at constructor More...
 
void init ()
 init at constructor More...
 

Private Attributes

CandRefMap candRefs_
 pointer map of candidates (e.g.: reco) More...
 
std::vector< const map_type * > maps_
 pointers to stored maps More...
 
refProd_type matched_
 reference to matched collectino More...
 
std::vector< std::set< size_t > > matchedMothers_
 mother + n.daughters indices from matched More...
 
MatchedRefMap matchedRefs_
 pointer map of matched candidates (e.g.: MC truth) More...
 

Detailed Description

template<typename C1, typename C2 = C1>
class CandMatcherBase< C1, C2 >

Definition at line 16 of file CandMatcher.h.

Member Typedef Documentation

template<typename C1, typename C2 = C1>
typedef std::map<const reco::Candidate *, reference_type> CandMatcherBase< C1, C2 >::CandRefMap
private

pointer map type

Definition at line 55 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef std::map<const reco::Candidate *, reference_type> CandMatcherBase< C1, C2 >::CandRefMap
private

pointer map type

Definition at line 56 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandMapTrait<C1, C2>::type CandMatcherBase< C1, C2 >::map_type

map type

Definition at line 19 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandMapTrait<C1, C2>::type CandMatcherBase< C1, C2 >::map_type

map type

Definition at line 20 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef std::vector<const map_type *> CandMatcherBase< C1, C2 >::map_vector

map vector

Definition at line 25 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef std::vector<const map_type *> CandMatcherBase< C1, C2 >::map_vector

map vector

Definition at line 26 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef std::map<const reco::Candidate *, ref_type> CandMatcherBase< C1, C2 >::MatchedRefMap
private

pointer map type

Definition at line 57 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef std::map<const reco::Candidate *, ref_type> CandMatcherBase< C1, C2 >::MatchedRefMap
private

pointer map type

Definition at line 58 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandRefTrait<C2>::ref_type CandMatcherBase< C1, C2 >::ref_type

ref type

Definition at line 21 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandRefTrait<C2>::ref_type CandMatcherBase< C1, C2 >::ref_type

ref type

Definition at line 22 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef map_type::key_type CandMatcherBase< C1, C2 >::reference_type

concrete candidate reference type

Definition at line 27 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef map_type::key_type CandMatcherBase< C1, C2 >::reference_type

concrete candidate reference type

Definition at line 28 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandRefTrait<C2>::refProd_type CandMatcherBase< C1, C2 >::refProd_type

refProd type

Definition at line 23 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reco::helper::CandRefTrait<C2>::refProd_type CandMatcherBase< C1, C2 >::refProd_type

refProd type

Definition at line 24 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reference_type::value_type CandMatcherBase< C1, C2 >::value_type

concrete candidate reference type

Definition at line 29 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
typedef reference_type::value_type CandMatcherBase< C1, C2 >::value_type

concrete candidate reference type

Definition at line 30 of file CandMatcher.h.

Constructor & Destructor Documentation

template<typename C1, typename C2 = C1>
CandMatcherBase< C1, C2 >::CandMatcherBase ( const map_vector maps)
explicit

constructor

template<typename C1, typename C2 = C1>
CandMatcherBase< C1, C2 >::CandMatcherBase ( const map_type map)
explicit

constructor

template<typename C1 , typename C2 >
CandMatcherBase< C1, C2 >::~CandMatcherBase ( )
virtual

destructor

Definition at line 146 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
CandMatcherBase< C1, C2 >::CandMatcherBase ( const map_vector maps)
explicit

constructor

template<typename C1, typename C2 = C1>
CandMatcherBase< C1, C2 >::CandMatcherBase ( const map_type map)
explicit

constructor

template<typename C1, typename C2 = C1>
virtual CandMatcherBase< C1, C2 >::~CandMatcherBase ( )
virtual

destructor

Member Function Documentation

template<typename C1, typename C2 = C1>
virtual bool CandMatcherBase< C1, C2 >::compositePreselect ( const reco::Candidate c,
const reco::Candidate m 
) const
protectedpure virtual

composite candidate preselection

Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.

template<typename C1, typename C2 = C1>
virtual bool CandMatcherBase< C1, C2 >::compositePreselect ( const reco::Candidate c,
const reco::Candidate m 
) const
protectedpure virtual

composite candidate preselection

Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.

template<typename C1, typename C2 = C1>
virtual std::vector<const reco::Candidate *> CandMatcherBase< C1, C2 >::getDaughters ( const reco::Candidate ) const
protectedpure virtual

get ultimate daughter (can skip status = 3 in MC)

Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.

template<typename C1, typename C2 = C1>
virtual std::vector<const reco::Candidate *> CandMatcherBase< C1, C2 >::getDaughters ( const reco::Candidate ) const
protectedpure virtual

get ultimate daughter (can skip status = 3 in MC)

Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.

template<typename C1 , typename C2 >
void CandMatcherBase< C1, C2 >::init ( void  )
private

init at constructor

Definition at line 89 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
void CandMatcherBase< C1, C2 >::init ( )
private

init at constructor

template<typename C1 , typename C2 >
void CandMatcherBase< C1, C2 >::initMaps ( )
protected

init maps

Definition at line 114 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
void CandMatcherBase< C1, C2 >::initMaps ( )
protected

init maps

template<typename C1, typename C2 = C1>
const std::vector<const map_type *>& CandMatcherBase< C1, C2 >::maps ( ) const
inlineprotected

Definition at line 48 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
const std::vector<const map_type *>& CandMatcherBase< C1, C2 >::maps ( ) const
inlineprotected

Definition at line 49 of file CandMatcher.h.

template<typename C1 , typename C2 >
CandMatcherBase< C1, C2 >::ref_type CandMatcherBase< C1, C2 >::operator() ( const reco::Candidate c) const

get match from transient reference

Definition at line 150 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
ref_type CandMatcherBase< C1, C2 >::operator() ( const reco::Candidate ) const

get match from transient reference

Member Data Documentation

template<typename C1, typename C2 = C1>
CandRefMap CandMatcherBase< C1, C2 >::candRefs_
private

pointer map of candidates (e.g.: reco)

Definition at line 59 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
std::vector< const map_type * > CandMatcherBase< C1, C2 >::maps_
private

pointers to stored maps

Definition at line 51 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
refProd_type CandMatcherBase< C1, C2 >::matched_
private

reference to matched collectino

Definition at line 53 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
std::vector< std::set< size_t > > CandMatcherBase< C1, C2 >::matchedMothers_
private

mother + n.daughters indices from matched

Definition at line 63 of file CandMatcher.h.

template<typename C1, typename C2 = C1>
MatchedRefMap CandMatcherBase< C1, C2 >::matchedRefs_
private

pointer map of matched candidates (e.g.: MC truth)

Definition at line 61 of file CandMatcher.h.