CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

CandMatcher< C1, C2 > Class Template Reference

#include <CandMatcher.h>

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

List of all members.

Public Member Functions

 CandMatcher (const typename CandMatcherBase< C1, C2 >::map_vector &maps)
 constructor
 CandMatcher (const typename CandMatcherBase< C1, C2 >::map_type &map)
 constructor
 CandMatcher (const typename CandMatcherBase< C1, C2 >::map_type &map)
 constructor
 CandMatcher (const typename CandMatcherBase< C1, C2 >::map_vector &maps)
 constructor
virtual ~CandMatcher ()
 destructor
virtual ~CandMatcher ()
 destructor

Protected Member Functions

virtual bool compositePreselect (const reco::Candidate &c, const reco::Candidate &m) const
 composite candidate preselection
virtual bool compositePreselect (const reco::Candidate &c, const reco::Candidate &m) const
 composite candidate preselection
virtual std::vector< const
reco::Candidate * > 
getDaughters (const reco::Candidate *) const
 get ultimate daughter (get all in the general case)
virtual std::vector< const
reco::Candidate * > 
getDaughters (const reco::Candidate *) const
 get ultimate daughter (get all in the general case)

Detailed Description

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

Definition at line 69 of file CandMatcher.h.


Constructor & Destructor Documentation

template<typename C1 , typename C2 >
CandMatcher< C1, C2 >::CandMatcher ( const typename CandMatcherBase< C1, C2 >::map_vector maps) [explicit]
template<typename C1 , typename C2 >
CandMatcher< C1, C2 >::CandMatcher ( const typename CandMatcherBase< C1, C2 >::map_type map) [explicit]
template<typename C1 , typename C2 >
CandMatcher< C1, C2 >::~CandMatcher ( ) [virtual]

destructor

Definition at line 223 of file CandMatcher.h.

                                  {
}
template<typename C1, typename C2 = C1>
CandMatcher< C1, C2 >::CandMatcher ( const typename CandMatcherBase< C1, C2 >::map_vector maps) [explicit]

constructor

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

constructor

template<typename C1, typename C2 = C1>
virtual CandMatcher< C1, C2 >::~CandMatcher ( ) [virtual]

destructor


Member Function Documentation

template<typename C1 , typename C2 >
bool CandMatcher< C1, C2 >::compositePreselect ( const reco::Candidate c,
const reco::Candidate m 
) const [protected, virtual]

composite candidate preselection

Implements CandMatcherBase< C1, C2 >.

Definition at line 234 of file CandMatcher.h.

References reco::Candidate::numberOfDaughters().

                                                                                                     {
  // By default, check that the number of daughters is identical
  return( c.numberOfDaughters() == m.numberOfDaughters() );
}
template<typename C1, typename C2 = C1>
virtual bool CandMatcher< C1, C2 >::compositePreselect ( const reco::Candidate c,
const reco::Candidate m 
) const [protected, virtual]

composite candidate preselection

Implements CandMatcherBase< C1, C2 >.

template<typename C1, typename C2 = C1>
virtual std::vector<const reco::Candidate *> CandMatcher< C1, C2 >::getDaughters ( const reco::Candidate ) const [protected, virtual]

get ultimate daughter (get all in the general case)

Implements CandMatcherBase< C1, C2 >.

template<typename C1 , typename C2 >
std::vector< const reco::Candidate * > CandMatcher< C1, C2 >::getDaughters ( const reco::Candidate c) const [protected, virtual]

get ultimate daughter (get all in the general case)

Implements CandMatcherBase< C1, C2 >.

Definition at line 227 of file CandMatcher.h.

References v.

                                                                                                  {
  std::vector<const reco::Candidate *> v;
  v.push_back( c );
  return v;
}