contains all subgraphs. More...
#include <SectorGraph.h>
Public Types | |
using | Iterator = typename std::unordered_map<SubGraphID, SubGraph<FilterType>>::iterator |
for better readability. | |
Public Member Functions | |
SectorGraph (const std::vector< FilterType > &fIDs) | |
constructor expects filterIDs. | |
Iterator | find (SubGraphID idChain) |
find entry. | |
Iterator | begin () |
returns begin of subGraphs. | |
Iterator | end () |
returns end of subGraphs. | |
unsigned | size () const |
returns number of collected subgraphs so far. | |
unsigned long | nFoundTotal () const |
returns number of occurrences for all subGraphs found together. | |
Iterator | add (SubGraphID &newID) |
add new subgraph if not added already. | |
std::string | print (bool fullPrint=true) const |
returns a string giving an overview of the graph. | |
unsigned | pruneGraph (double rarenessCut) |
returns removed occurrences. | |
int | getAbsThreshold (int relThreshold) |
Get the absolute threshold (# nfound) given a relative threshold. | |
unsigned | pruneGraphBeforeTraining (int absThreshold) |
returns removed occurrences. | |
void | output_nfound () |
Output in a txt file id & nfound of subgraphs. | |
void | updateSubLayerIDs () |
finds sectors having inner sectors in same layer and update them in the subGraph-ID. | |
std::vector< FullSecID > | getAllFullSecIDsOfSensor (VxdID sensor) |
returns a Vector containing all FullSecIDs found for given sensor. | |
const std::vector< FilterType > & | getFilterTypes () const |
returns a const reference to the filterTypes stored in this graph | |
Protected Attributes | |
std::unordered_map< SubGraphID, SubGraph< FilterType > > | m_subgraphs |
contains all subgraphs. | |
std::vector< FilterType > | m_filterIDs |
ids of all filterTypes to be stored by subGraphs. | |
contains all subgraphs.
The ids used for the subgraphs have to be sorted from outer to inner sectors.
Definition at line 31 of file SectorGraph.h.
using Iterator = typename std::unordered_map<SubGraphID, SubGraph<FilterType>>::iterator |
for better readability.
Definition at line 43 of file SectorGraph.h.
|
inlineexplicit |
constructor expects filterIDs.
Definition at line 39 of file SectorGraph.h.
|
inline |
add new subgraph if not added already.
Definition at line 66 of file SectorGraph.h.
|
inline |
returns begin of subGraphs.
Definition at line 49 of file SectorGraph.h.
|
inline |
returns end of subGraphs.
Definition at line 52 of file SectorGraph.h.
|
inline |
find entry.
returns end() if not found.
Definition at line 46 of file SectorGraph.h.
|
inline |
Get the absolute threshold (# nfound) given a relative threshold.
Definition at line 168 of file SectorGraph.h.
returns a Vector containing all FullSecIDs found for given sensor.
Definition at line 300 of file SectorGraph.h.
|
inline |
returns a const reference to the filterTypes stored in this graph
Definition at line 314 of file SectorGraph.h.
|
inline |
returns number of occurrences for all subGraphs found together.
Definition at line 58 of file SectorGraph.h.
|
inline |
Output in a txt file id & nfound of subgraphs.
Definition at line 231 of file SectorGraph.h.
|
inline |
returns a string giving an overview of the graph.
Definition at line 76 of file SectorGraph.h.
|
inline |
returns removed occurrences.
vector of trunks (= outer sector(s)):
Definition at line 89 of file SectorGraph.h.
|
inline |
returns removed occurrences.
Definition at line 207 of file SectorGraph.h.
|
inline |
returns number of collected subgraphs so far.
Definition at line 55 of file SectorGraph.h.
|
inline |
finds sectors having inner sectors in same layer and update them in the subGraph-ID.
Definition at line 245 of file SectorGraph.h.
|
protected |
ids of all filterTypes to be stored by subGraphs.
Definition at line 35 of file SectorGraph.h.
|
protected |
contains all subgraphs.
Definition at line 33 of file SectorGraph.h.