#include <ClusterClusterMapping.h>
|
static int | checkOverlap (const reco::PFCluster &pfc, const std::vector< const reco::SuperCluster * > &sc, float minfrac=0.01, bool debug=false) |
|
static int | checkOverlap (const reco::PFCluster &pfc, const std::vector< reco::SuperClusterRef > &sc, float minfrac=0.01, bool debug=false) |
|
static int | checkOverlap (const reco::PFClusterRef &pfc, const std::vector< reco::SuperClusterRef > &sc, const edm::ValueMap< reco::CaloClusterPtr > &pfclusassoc) |
|
static bool | overlap (const reco::CaloCluster &sc1, const reco::CaloCluster &sc, float minfrac=0.01, bool debug=false) |
|
static bool | overlap (const reco::PFClusterRef &pfclustest, const reco::SuperCluster &sc, const edm::ValueMap< reco::CaloClusterPtr > &pfclusassoc) |
|
Definition at line 12 of file ClusterClusterMapping.h.
◆ ClusterClusterMapping()
ClusterClusterMapping::ClusterClusterMapping |
( |
| ) |
|
|
inline |
◆ ~ClusterClusterMapping()
ClusterClusterMapping::~ClusterClusterMapping |
( |
| ) |
|
|
inline |
◆ checkOverlap() [1/3]
int ClusterClusterMapping::checkOverlap |
( |
const reco::PFCluster & |
pfc, |
|
|
const std::vector< const reco::SuperCluster * > & |
sc, |
|
|
float |
minfrac = 0.01 , |
|
|
bool |
debug = false |
|
) |
| |
|
static |
◆ checkOverlap() [2/3]
◆ checkOverlap() [3/3]
◆ overlap() [1/2]
Definition at line 4 of file ClusterClusterMapping.cc.
9 const std::vector<std::pair<DetId, float> > &hits2 = sc2.hitsAndFractions();
10 unsigned nhits1 = hits1.size();
11 unsigned nhits2 = hits2.size();
13 for (
unsigned i1 = 0;
i1 < nhits1; ++
i1) {
17 std::cout <<
" Discarding " << hits1[
i1].first <<
" with " << hits1[
i1].second << std::endl;
20 for (
unsigned i2 = 0;
i2 < nhits2; ++
i2) {
24 std::cout <<
" Discarding " << hits2[
i2].first <<
" with " << hits2[
i2].second << std::endl;
29 std::cout <<
" Matching hits " << hits1[
i1].first <<
" with " << hits1[
i1].second <<
" and "
31 std::cout <<
" with " << hits2[
i2].second << std::endl;
References gather_cfg::cout, debug, dqmdumpme::first, reco::CaloCluster::hitsAndFractions(), testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and edm::second().
Referenced by checkOverlap(), SpecialClusterImporter< T >::importToBlock(), PFElecTkProducer::isSharingEcalEnergyWithEgSC(), SCAndECALLinker::testLink(), and SCAndHGCalLinker::testLink().
◆ overlap() [2/2]
Definition at line 40 of file ClusterClusterMapping.cc.
44 if (pfclusassoc.
contains(caloclus->id())) {
47 if (pfclus.
id() == pfclustest.
id() && pfclus.
key() == pfclustest.
key())
References reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), edm::ValueMap< T >::contains(), edm::Ptr< T >::id(), edm::Ref< C, T, F >::id(), edm::Ptr< T >::key(), and edm::Ref< C, T, F >::key().