CMS 3D CMS Logo

CandMatcher< C1, C2 > Class Template Reference

#include <PhysicsTools/CandUtils/interface/CandMatcher.h>

Inheritance diagram for CandMatcher< C1, C2 >:

CandMatcherBase< C1, C2 >

List of all members.

Public Member Functions

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

Protected Member Functions

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)


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  )  [inline, explicit]

constructor

Definition at line 211 of file CandMatcher.h.

References CandMatcherBase< C1, C2 >::initMaps().

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

constructor

Definition at line 217 of file CandMatcher.h.

References CandMatcherBase< C1, C2 >::initMaps().

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

destructor

Definition at line 223 of file CandMatcher.h.

00223                                   {
00224 }


Member Function Documentation

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

composite candidate preselection

Implements CandMatcherBase< C1, C2 >.

Definition at line 234 of file CandMatcher.h.

References reco::Candidate::numberOfDaughters().

00234                                                                                                      {
00235   // By default, check that the number of daughters is identical
00236   return( c.numberOfDaughters() == m.numberOfDaughters() );
00237 }

template<typename C1, typename C2>
std::vector< const reco::Candidate * > CandMatcher< C1, C2 >::getDaughters ( const reco::Candidate c  )  const [inline, 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.

00227                                                                                                   {
00228   std::vector<const reco::Candidate *> v;
00229   v.push_back( c );
00230   return v;
00231 }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:16:06 2009 for CMSSW by  doxygen 1.5.4