#include <CandMatcher.h>
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... | |
Definition at line 16 of file CandMatcher.h.
|
private |
pointer map type
Definition at line 55 of file CandMatcher.h.
|
private |
pointer map type
Definition at line 56 of file CandMatcher.h.
typedef reco::helper::CandMapTrait<C1, C2>::type CandMatcherBase< C1, C2 >::map_type |
map type
Definition at line 19 of file CandMatcher.h.
typedef reco::helper::CandMapTrait<C1, C2>::type CandMatcherBase< C1, C2 >::map_type |
map type
Definition at line 20 of file CandMatcher.h.
typedef std::vector<const map_type *> CandMatcherBase< C1, C2 >::map_vector |
map vector
Definition at line 25 of file CandMatcher.h.
typedef std::vector<const map_type *> CandMatcherBase< C1, C2 >::map_vector |
map vector
Definition at line 26 of file CandMatcher.h.
|
private |
pointer map type
Definition at line 57 of file CandMatcher.h.
|
private |
pointer map type
Definition at line 58 of file CandMatcher.h.
typedef reco::helper::CandRefTrait<C2>::ref_type CandMatcherBase< C1, C2 >::ref_type |
ref type
Definition at line 21 of file CandMatcher.h.
typedef reco::helper::CandRefTrait<C2>::ref_type CandMatcherBase< C1, C2 >::ref_type |
ref type
Definition at line 22 of file CandMatcher.h.
typedef map_type::key_type CandMatcherBase< C1, C2 >::reference_type |
concrete candidate reference type
Definition at line 27 of file CandMatcher.h.
typedef map_type::key_type CandMatcherBase< C1, C2 >::reference_type |
concrete candidate reference type
Definition at line 28 of file CandMatcher.h.
typedef reco::helper::CandRefTrait<C2>::refProd_type CandMatcherBase< C1, C2 >::refProd_type |
refProd type
Definition at line 23 of file CandMatcher.h.
typedef reco::helper::CandRefTrait<C2>::refProd_type CandMatcherBase< C1, C2 >::refProd_type |
refProd type
Definition at line 24 of file CandMatcher.h.
typedef reference_type::value_type CandMatcherBase< C1, C2 >::value_type |
concrete candidate reference type
Definition at line 29 of file CandMatcher.h.
typedef reference_type::value_type CandMatcherBase< C1, C2 >::value_type |
concrete candidate reference type
Definition at line 30 of file CandMatcher.h.
|
explicit |
constructor
|
explicit |
constructor
|
virtual |
|
explicit |
constructor
|
explicit |
constructor
|
virtual |
destructor
|
protectedpure virtual |
composite candidate preselection
Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.
|
protectedpure virtual |
composite candidate preselection
Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.
|
protectedpure virtual |
get ultimate daughter (can skip status = 3 in MC)
Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.
|
protectedpure virtual |
get ultimate daughter (can skip status = 3 in MC)
Implemented in CandMatcher< C1, C2 >, and CandMatcher< C1, C2 >.
|
private |
init at constructor
Definition at line 89 of file CandMatcher.h.
References edm::errors::InvalidReference, and visualization-live-secondInstance_cfg::m.
|
private |
init at constructor
|
protected |
init maps
Definition at line 114 of file CandMatcher.h.
References assert(), reco::Candidate::begin(), EnergyCorrector::c, ztail::d, reco::Candidate::end(), f, getDaughters(), i, j, relval_steps::k, visualization-live-secondInstance_cfg::m, and dt_dqm_sourceclient_common_cff::reco.
Referenced by CandMatcher< C1, C2 >::CandMatcher().
|
protected |
init maps
|
inlineprotected |
Definition at line 48 of file CandMatcher.h.
References CandMatcherBase< C1, C2 >::maps_.
|
inlineprotected |
Definition at line 49 of file CandMatcher.h.
References CandMatcherBase< C1, C2 >::maps_.
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.
References reco::Candidate::begin(), ztail::d, reco::Candidate::end(), f, reco::Candidate::hasMasterClone(), edm::Ref< C, T, F >::isNull(), relval_steps::k, edm::Ref< C, T, F >::key(), visualization-live-secondInstance_cfg::m, reco::Candidate::masterClone(), reco::Candidate::numberOfDaughters(), dt_dqm_sourceclient_common_cff::reco, reco::swap(), tmp, and edm::helpers::KeyVal< K, V >::val.
ref_type CandMatcherBase< C1, C2 >::operator() | ( | const reco::Candidate & | ) | const |
get match from transient reference
|
private |
pointer map of candidates (e.g.: reco)
Definition at line 59 of file CandMatcher.h.
|
private |
pointers to stored maps
Definition at line 51 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::maps().
|
private |
reference to matched collectino
Definition at line 53 of file CandMatcher.h.
|
private |
mother + n.daughters indices from matched
Definition at line 63 of file CandMatcher.h.
|
private |
pointer map of matched candidates (e.g.: MC truth)
Definition at line 61 of file CandMatcher.h.