Belle II Software development
|
contains all relevant stuff needed for dealing with a subGraph. More...
#include <SubGraph.h>
Public Types | |
using | Iterator = typename std::unordered_map< FilterType, MinMax >::iterator |
for better readability. | |
Public Member Functions | |
bool | operator== (const SubGraph< FilterType > &b) const |
overloaded '=='-operator | |
SubGraph (SubGraphID &id, const std::vector< FilterType > &fIDs) | |
constructor, mandatory iDChain musst at least contain one iD. | |
~SubGraph () | |
destructor | |
bool | checkAndReplaceIfMinMax (FilterType fID, double value) |
add filter, if not added yet, checks value and replaces old ones if new one is better. | |
void | wasFound () |
increases found-counter. | |
unsigned | getFound () const |
returns found-counter. | |
bool | checkSharesTrunk (const SubGraph< FilterType > &b) const |
if both graphs have got the same IDs except the last one, they share a trunk. | |
std::string | print () const |
"print" debugging information to a string | |
const SubGraphID & | getID () const |
returns iD of this graph | |
void | prepareDataCollection (std::pair< double, double > quantiles) |
takes care of being able to use the data collector. please use for quantiles [min, max] min ~0 & max ~1 (range 0-1) | |
void | addValue (FilterType fID, double value) |
adds value to rawDataCollector | |
const std::unordered_map< FilterType, MinMax > & | getFinalQuantileValues () |
this deletes the old min and max values stored and replaces them with the quantiles to be found. | |
unsigned | idCheckAndUpdate (const std::vector< unsigned > &ids) |
for given vector of ids check if any of them is part of subGraphID. If yes, update their SubLayerID. returns number of updated secIDs | |
std::vector< FullSecID > | getSectorsOfSensor (const VxdID &sensor) |
returns vector containing all sectors for given sensor (if any) and empty vector if no sector of that sensor is here. | |
Protected Member Functions | |
void | updateID (const SubGraphID &newID) |
set newID for this subgraph. | |
Protected Attributes | |
SubGraphID | m_id |
contains the IDs in the correct order (from outer to inner) as a unique identifier for this graph. | |
std::unordered_map< FilterType, MinMax > | m_minMaxValues |
contains all min- and max-values found so far for all filters relevant for this Graph. */ | |
unsigned | m_found |
counts number of times this subgraph was found. | |
std::unordered_map< FilterType, RawDataCollectedMinMax > * | m_rawDataCollected |
takes care of collecting the raw data. | |
contains all relevant stuff needed for dealing with a subGraph.
~ 404 bytes per subGraph.
Definition at line 30 of file SubGraph.h.
for better readability.
Definition at line 51 of file SubGraph.h.
|
inline |
constructor, mandatory iDChain musst at least contain one iD.
Definition at line 54 of file SubGraph.h.
|
inline |
|
inline |
adds value to rawDataCollector
Definition at line 107 of file SubGraph.h.
|
inline |
add filter, if not added yet, checks value and replaces old ones if new one is better.
returns true if minMax was updated.
Definition at line 65 of file SubGraph.h.
|
inline |
if both graphs have got the same IDs except the last one, they share a trunk.
Definition at line 80 of file SubGraph.h.
|
inline |
this deletes the old min and max values stored and replaces them with the quantiles to be found.
Definition at line 120 of file SubGraph.h.
|
inline |
returns found-counter.
Definition at line 77 of file SubGraph.h.
|
inline |
returns vector containing all sectors for given sensor (if any) and empty vector if no sector of that sensor is here.
Definition at line 151 of file SubGraph.h.
|
inline |
for given vector of ids check if any of them is part of subGraphID. If yes, update their SubLayerID. returns number of updated secIDs
Definition at line 137 of file SubGraph.h.
|
inline |
|
inline |
takes care of being able to use the data collector. please use for quantiles [min, max] min ~0 & max ~1 (range 0-1)
Definition at line 96 of file SubGraph.h.
|
inline |
"print" debugging information to a string
Definition at line 83 of file SubGraph.h.
|
inlineprotected |
|
inline |
increases found-counter.
Definition at line 75 of file SubGraph.h.
|
protected |
counts number of times this subgraph was found.
Definition at line 37 of file SubGraph.h.
|
protected |
contains the IDs in the correct order (from outer to inner) as a unique identifier for this graph.
Definition at line 32 of file SubGraph.h.
|
protected |
contains all min- and max-values found so far for all filters relevant for this Graph. */
Definition at line 35 of file SubGraph.h.
|
protected |
takes care of collecting the raw data.
Definition at line 39 of file SubGraph.h.