#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_vector &maps) | |
constructor More... | |
CandMatcherBase (const map_type &map) | |
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
Referenced by CandMatcherBase< C1, C2 >::init().
|
explicit |
constructor
|
virtual |
|
protectedpure virtual |
composite candidate preselection
Implemented in CandMatcher< C1, C2 >.
Referenced by CandMatcherBase< C1, C2 >::operator()().
|
protectedpure virtual |
get ultimate daughter (can skip status = 3 in MC)
Implemented in CandMatcher< C1, C2 >.
Referenced by CandMatcherBase< C1, C2 >::initMaps().
|
private |
init at constructor
Definition at line 89 of file CandMatcher.h.
References CandMatcherBase< C1, C2 >::CandMatcherBase(), edm::errors::InvalidReference, visualization-live-secondInstance_cfg::m, genParticles_cff::map, CandMatcherBase< C1, C2 >::maps(), CandMatcherBase< C1, C2 >::maps_, and CandMatcherBase< C1, C2 >::matched_.
|
protected |
init maps
Definition at line 114 of file CandMatcher.h.
References reco::Candidate::begin(), HltBtagPostValidation_cff::c, CandMatcherBase< C1, C2 >::candRefs_, HLT_2018_cff::cands, ztail::d, reco::Candidate::end(), f, CandMatcherBase< C1, C2 >::getDaughters(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, visualization-live-secondInstance_cfg::m, CandMatcherBase< C1, C2 >::maps_, muonTagProbeFilters_cff::matched, CandMatcherBase< C1, C2 >::matched_, CandMatcherBase< C1, C2 >::matchedMothers_, and CandMatcherBase< C1, C2 >::matchedRefs_.
Referenced by CandMatcher< C1, C2 >::CandMatcher().
|
inlineprotected |
Definition at line 48 of file CandMatcher.h.
References CandMatcherBase< C1, C2 >::maps_.
Referenced by CandMatcherBase< C1, C2 >::init().
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(), CandMatcherBase< C1, C2 >::candRefs_, CandMatcherBase< C1, C2 >::compositePreselect(), ztail::d, reco::Candidate::end(), f, reco::Candidate::hasMasterClone(), edm::Ref< C, T, F >::isNull(), dqmdumpme::k, edm::Ref< C, T, F >::key(), visualization-live-secondInstance_cfg::m, CandMatcherBase< C1, C2 >::maps_, reco::Candidate::masterClone(), muonTagProbeFilters_cff::matched, CandMatcherBase< C1, C2 >::matched_, CandMatcherBase< C1, C2 >::matchedMothers_, reco::Candidate::numberOfDaughters(), edm::swap(), createJobs::tmp, and edm::helpers::KeyVal< K, V >::val.
|
private |
pointer map of candidates (e.g.: reco)
Definition at line 59 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::initMaps(), and CandMatcherBase< C1, C2 >::operator()().
|
private |
pointers to stored maps
Definition at line 51 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::init(), CandMatcherBase< C1, C2 >::initMaps(), CandMatcherBase< C1, C2 >::maps(), and CandMatcherBase< C1, C2 >::operator()().
|
private |
reference to matched collectino
Definition at line 53 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::init(), CandMatcherBase< C1, C2 >::initMaps(), and CandMatcherBase< C1, C2 >::operator()().
|
private |
mother + n.daughters indices from matched
Definition at line 63 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::initMaps(), and CandMatcherBase< C1, C2 >::operator()().
|
private |
pointer map of matched candidates (e.g.: MC truth)
Definition at line 61 of file CandMatcher.h.
Referenced by CandMatcherBase< C1, C2 >::initMaps().