#include <CandMatcher.h>
Public Types | |
typedef reco::helper::CandMapTrait< C1, C2 >::type | map_type |
map type 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 map_type::key_type | reference_type |
concrete candidate reference 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... | |
Public Member Functions | |
CandMatcherBase (const map_type &map) | |
constructor More... | |
CandMatcherBase (const map_vector &maps) | |
constructor More... | |
ref_type | operator() (const reco::Candidate &) const |
get match from transient reference 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 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... | |
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 *, ref_type > | MatchedRefMap |
pointer map type More... | |
Private Member Functions | |
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.
typedef reco::helper::CandMapTrait<C1, C2>::type CandMatcherBase< C1, C2 >::map_type |
map type
Definition at line 19 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.
|
private |
pointer map type
Definition at line 57 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 map_type::key_type CandMatcherBase< C1, C2 >::reference_type |
concrete candidate reference type
Definition at line 27 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 reference_type::value_type CandMatcherBase< C1, C2 >::value_type |
concrete candidate reference type
Definition at line 29 of file CandMatcher.h.
|
explicit |
constructor
|
explicit |
constructor
|
virtual |
|
protectedpure virtual |
composite candidate preselection
Implemented in CandMatcher< C1, C2 >.
|
protectedpure virtual |
get ultimate daughter (can skip status = 3 in MC)
Implemented in 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.
|
protected |
init maps
Definition at line 114 of file CandMatcher.h.
References cms::cuda::assert(), HltBtagPostValidation_cff::c, HLT_2018_cff::cands, ztail::d, f, getDaughters(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, visualization-live-secondInstance_cfg::m, and muonTagProbeFilters_cff::matched.
Referenced by CandMatcher< C1, C2 >::CandMatcher().
|
inlineprotected |
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 HltBtagPostValidation_cff::c, ztail::d, f, dqmdumpme::k, visualization-live-secondInstance_cfg::m, muonTagProbeFilters_cff::matched, reco::swap(), and createJobs::tmp.
|
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.