Belle II Software
release-08-01-10
|
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. More... | |
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. More... | |
unsigned | isElementOf (const std::vector< unsigned > &b) const |
checks if given sectorPack ( >= 1 sector) is part of this, ignores subLayerID. More... | |
bool | hasElement (unsigned b) const |
checks if given raw secID is part of this, ignores subLayerID. More... | |
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. More... | |
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.
|
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.