#include <GraphMap.h>
Public Types | |
enum | CollectionStrategy { Cascade, CollectAndMerge, SeedsFirst, CascadeHighest } |
typedef std::vector< std::pair< uint, std::vector< uint > > > | GraphOutput |
typedef std::map< uint, std::vector< uint > > | GraphOutputMap |
enum | NodeCategory { kNode, kSeed, kNcategories } |
Public Member Functions | |
void | addEdge (const uint i, const uint j) |
void | addNode (const uint index, const NodeCategory category) |
void | addNodes (const std::vector< uint > &indices, const std::vector< NodeCategory > &categories) |
void | collectNodes (GraphMap::CollectionStrategy strategy, float threshold) |
uint | getAdjMatrix (const uint i, const uint j) const |
std::vector< float > | getAdjMatrixCol (const uint j) const |
std::vector< float > | getAdjMatrixRow (const uint i) const |
const GraphOutput & | getGraphOutput () |
const std::vector< uint > & | getInEdges (const uint i) const |
const std::vector< uint > & | getOutEdges (const uint i) const |
GraphMap (uint nNodes) | |
void | printGraphMap () |
void | setAdjMatrix (const uint i, const uint j, const float score) |
void | setAdjMatrixSym (const uint i, const uint j, const float score) |
Private Member Functions | |
void | assignHighestScoreEdge () |
void | collectCascading (float threshold) |
std::pair< GraphOutput, GraphOutputMap > | collectSeparately (float threshold) |
void | mergeSubGraphs (float threshold, GraphOutput seedsGraph, GraphOutputMap nodesGraphMap) |
void | resolveSuperNodesEdges (float threshold) |
Private Attributes | |
std::map< std::pair< uint, uint >, float > | adjMatrix_ |
std::vector< std::vector< uint > > | edgesIn_ |
std::vector< std::vector< uint > > | edgesOut_ |
GraphOutput | graphOutput_ |
uint | nNodes_ |
std::map< NodeCategory, std::vector< uint > > | nodesCategories_ |
std::map< uint, uint > | nodesCount_ |
Definition at line 18 of file GraphMap.h.
typedef std::vector<std::pair<uint, std::vector<uint> > > reco::GraphMap::GraphOutput |
Definition at line 56 of file GraphMap.h.
typedef std::map<uint, std::vector<uint> > reco::GraphMap::GraphOutputMap |
Definition at line 57 of file GraphMap.h.
Enumerator | |
---|---|
Cascade | |
CollectAndMerge | |
SeedsFirst | |
CascadeHighest |
Definition at line 38 of file GraphMap.h.
Enumerator | |
---|---|
kNode | |
kSeed | |
kNcategories |
Definition at line 22 of file GraphMap.h.
GraphMap::GraphMap | ( | uint | nNodes | ) |
void GraphMap::addEdge | ( | const uint | i, |
const uint | j | ||
) |
Definition at line 26 of file GraphMap.cc.
References adjMatrix_, edgesIn_, edgesOut_, mps_fire::i, and dqmiolumiharvest::j.
Referenced by reco::EcalClustersGraph::initWindows().
void GraphMap::addNode | ( | const uint | index, |
const NodeCategory | category | ||
) |
Definition at line 15 of file GraphMap.cc.
References validateAlignments::category, nodesCategories_, and nodesCount_.
Referenced by addNodes(), and reco::EcalClustersGraph::EcalClustersGraph().
void GraphMap::addNodes | ( | const std::vector< uint > & | indices, |
const std::vector< NodeCategory > & | categories | ||
) |
Definition at line 20 of file GraphMap.cc.
References addNode(), myMessageLogger_cff::categories, mps_fire::i, and dqmdumpme::indices.
|
private |
Definition at line 172 of file GraphMap.cc.
References adjMatrix_, haddnano::cl, edgesIn_, newFWLiteAna::found, LogTrace, nodesCategories_, offlineSlimmedPrimaryVertices_cfi::score, and fileCollector::seed.
Referenced by collectNodes().
|
private |
Definition at line 134 of file GraphMap.cc.
References adjMatrix_, edgesIn_, edgesOut_, graphOutput_, LogDebug, LogTrace, nodesCategories_, MillePedeFileConverter_cfg::out, alignCSCRings::s, HLT_2024v14_cff::seeds, and DiMuonV_cfg::threshold.
Referenced by collectNodes().
void GraphMap::collectNodes | ( | GraphMap::CollectionStrategy | strategy, |
float | threshold | ||
) |
Definition at line 97 of file GraphMap.cc.
References assignHighestScoreEdge(), collectCascading(), collectSeparately(), graphOutput_, mergeSubGraphs(), resolveSuperNodesEdges(), and DiMuonV_cfg::threshold.
Referenced by reco::EcalClustersGraph::selectClusters().
|
private |
Definition at line 198 of file GraphMap.cc.
References adjMatrix_, edgesOut_, LogDebug, LogTrace, nodesCategories_, MillePedeFileConverter_cfg::out, alignCSCRings::s, and DiMuonV_cfg::threshold.
Referenced by collectNodes().
uint GraphMap::getAdjMatrix | ( | const uint | i, |
const uint | j | ||
) | const |
Definition at line 45 of file GraphMap.cc.
References adjMatrix_, mps_fire::i, and dqmiolumiharvest::j.
std::vector< float > GraphMap::getAdjMatrixCol | ( | const uint | j | ) | const |
Definition at line 55 of file GraphMap.cc.
References adjMatrix_, getInEdges(), mps_fire::i, dqmiolumiharvest::j, and MillePedeFileConverter_cfg::out.
std::vector< float > GraphMap::getAdjMatrixRow | ( | const uint | i | ) | const |
Definition at line 47 of file GraphMap.cc.
References adjMatrix_, getOutEdges(), mps_fire::i, dqmiolumiharvest::j, and MillePedeFileConverter_cfg::out.
|
inline |
const std::vector< uint > & GraphMap::getInEdges | ( | const uint | i | ) | const |
Definition at line 43 of file GraphMap.cc.
References edgesIn_, and mps_fire::i.
Referenced by getAdjMatrixCol().
const std::vector< uint > & GraphMap::getOutEdges | ( | const uint | i | ) | const |
Definition at line 41 of file GraphMap.cc.
References edgesOut_, and mps_fire::i.
Referenced by reco::EcalClustersGraph::evaluateScores(), reco::EcalClustersGraph::fillVariables(), and getAdjMatrixRow().
|
private |
Definition at line 242 of file GraphMap.cc.
References adjMatrix_, graphOutput_, LogTrace, alignCSCRings::s, and DiMuonV_cfg::threshold.
Referenced by collectNodes().
void GraphMap::printGraphMap | ( | ) |
Definition at line 65 of file GraphMap.cc.
References adjMatrix_, MillePedeFileConverter_cfg::e, edgesIn_, edgesOut_, dqmiodumpmetadata::n, nNodes_, nodesCategories_, alignCSCRings::s, fileCollector::seed, and parallelization::uint.
|
private |
Definition at line 281 of file GraphMap.cc.
References adjMatrix_, DummyCfis::c, edgesOut_, LogTrace, nodesCategories_, MillePedeFileConverter_cfg::out, alignCSCRings::s, and DiMuonV_cfg::threshold.
Referenced by collectNodes().
void GraphMap::setAdjMatrix | ( | const uint | i, |
const uint | j, | ||
const float | score | ||
) |
Definition at line 34 of file GraphMap.cc.
References adjMatrix_, mps_fire::i, dqmiolumiharvest::j, and offlineSlimmedPrimaryVertices_cfi::score.
Referenced by reco::EcalClustersGraph::evaluateScores().
void GraphMap::setAdjMatrixSym | ( | const uint | i, |
const uint | j, | ||
const float | score | ||
) |
Definition at line 36 of file GraphMap.cc.
References adjMatrix_, mps_fire::i, dqmiolumiharvest::j, and offlineSlimmedPrimaryVertices_cfi::score.
|
private |
Definition at line 75 of file GraphMap.h.
Referenced by addEdge(), assignHighestScoreEdge(), collectCascading(), collectSeparately(), getAdjMatrix(), getAdjMatrixCol(), getAdjMatrixRow(), mergeSubGraphs(), printGraphMap(), resolveSuperNodesEdges(), setAdjMatrix(), and setAdjMatrixSym().
|
private |
Definition at line 69 of file GraphMap.h.
Referenced by addEdge(), assignHighestScoreEdge(), collectCascading(), getInEdges(), GraphMap(), and printGraphMap().
|
private |
Definition at line 71 of file GraphMap.h.
Referenced by addEdge(), collectCascading(), collectSeparately(), getOutEdges(), GraphMap(), printGraphMap(), and resolveSuperNodesEdges().
|
private |
Definition at line 78 of file GraphMap.h.
Referenced by collectCascading(), collectNodes(), and mergeSubGraphs().
|
private |
Definition at line 60 of file GraphMap.h.
Referenced by printGraphMap().
|
private |
Definition at line 65 of file GraphMap.h.
Referenced by addNode(), assignHighestScoreEdge(), collectCascading(), collectSeparately(), printGraphMap(), and resolveSuperNodesEdges().
|
private |
Definition at line 67 of file GraphMap.h.
Referenced by addNode().