Belle II Software development
|
stores the ID of a subgraph, which is basically a chain of FullSecID coded as unsigned ints. More...
#include <SubGraphID.h>
Public Member Functions | |
bool | operator== (const SubGraphID &b) const |
overloaded '=='-operator | |
bool | operator< (const SubGraphID &b) const |
overloaded '<'-operator for sorting algorithms | |
SubGraphID (const std::vector< unsigned > &idChain) | |
constructor, mandatory iDChain musst at least contain one iD. | |
unsigned | size () const |
returns chainLength of this id. | |
std::vector< unsigned >::const_iterator | begin () const |
returns first entry of IDchain. | |
std::vector< unsigned >::const_iterator | end () const |
returns last entry of IDchain. | |
bool | checkSharesTrunk (const SubGraphID &b) const |
if both graphs have got the same IDs except the last one, they share a trunk. | |
std::string | print () const |
returns string of entries. | |
unsigned | isElementOf (const SubGraphID &b) const |
checks if given sectorPack ( >= 1 sector) is part of this, ignores subLayerID. | |
unsigned | isElementOf (const std::vector< unsigned > &b) const |
checks if given sectorPack ( >= 1 sector) is part of this, ignores subLayerID. | |
bool | hasElement (unsigned b) const |
checks if given raw secID is part of this, ignores subLayerID. | |
bool | areTheSameSectors (const SubGraphID &b) const |
checks if sectors are identical (while ignoring the subLayerID) | |
std::vector< unsigned > | hasSharedLayer () const |
returns raw IDs of entries being outer friend of sectors on same layer. | |
bool | updateID (unsigned newID) |
if newID is element of this (ignoring subLayerID), oldID will be replaced by newID. returns true, if an ID was replaced. | |
std::vector< FullSecID > | getFullSecIDs () const |
returns SecIDs coded as FullSecIDs: | |
Protected Member Functions | |
bool | areTheSameSector (unsigned a, unsigned b) const |
checks if two given ids are the same sector (while ignoring the sublayerID). | |
Protected Attributes | |
std::vector< unsigned > | m_idChain |
ids of this SubGraphID. | |
stores the ID of a subgraph, which is basically a chain of FullSecID coded as unsigned ints.
Definition at line 24 of file SubGraphID.h.
|
inlineexplicit |
constructor, mandatory iDChain musst at least contain one iD.
Sectors should be sorted from outer to inner sectors, please take care of that yourself since this is not checked internally.
Definition at line 68 of file SubGraphID.h.
|
inlineprotected |
checks if two given ids are the same sector (while ignoring the sublayerID).
Definition at line 30 of file SubGraphID.h.
|
inline |
checks if sectors are identical (while ignoring the subLayerID)
Definition at line 142 of file SubGraphID.h.
|
inline |
|
inline |
if both graphs have got the same IDs except the last one, they share a trunk.
Definition at line 87 of file SubGraphID.h.
|
inline |
|
inline |
returns SecIDs coded as FullSecIDs:
Definition at line 185 of file SubGraphID.h.
|
inline |
checks if given raw secID is part of this, ignores subLayerID.
returns number of identical sectors
Definition at line 132 of file SubGraphID.h.
|
inline |
returns raw IDs of entries being outer friend of sectors on same layer.
This function assumes that the ids are sorted from outermost (= first) to innermost (= last) iD.
Definition at line 153 of file SubGraphID.h.
|
inline |
checks if given sectorPack ( >= 1 sector) is part of this, ignores subLayerID.
returns number of identical sectors
Definition at line 117 of file SubGraphID.h.
|
inline |
checks if given sectorPack ( >= 1 sector) is part of this, ignores subLayerID.
returns number of identical sectors
Definition at line 112 of file SubGraphID.h.
|
inline |
overloaded '<'-operator for sorting algorithms
Definition at line 54 of file SubGraphID.h.
|
inline |
overloaded '=='-operator
Definition at line 40 of file SubGraphID.h.
|
inline |
returns string of entries.
Definition at line 101 of file SubGraphID.h.
|
inline |
|
inline |
if newID is element of this (ignoring subLayerID), oldID will be replaced by newID. returns true, if an ID was replaced.
Definition at line 171 of file SubGraphID.h.
|
protected |
ids of this SubGraphID.
Definition at line 26 of file SubGraphID.h.