Belle II Software  release-08-01-10
SubGraphID Class Reference

stores the ID of a subgraph, which is basically a chain of FullSecID coded as unsigned ints. More...

#include <SubGraphID.h>

Collaboration diagram for SubGraphID:

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< FullSecIDgetFullSecIDs () 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SubGraphID()

SubGraphID ( const std::vector< unsigned > &  idChain)
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.

68  : m_idChain(idChain)
69  {
70  if (m_idChain.empty()) { B2FATAL("SubGraphID-Constructor, given idChain is empty - illegal usage!"); }
71  }
std::vector< unsigned > m_idChain
ids of this SubGraphID.
Definition: SubGraphID.h:26

Member Function Documentation

◆ hasElement()

bool hasElement ( unsigned  b) const
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.

◆ hasSharedLayer()

std::vector<unsigned> hasSharedLayer ( ) const
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.

◆ isElementOf() [1/2]

unsigned isElementOf ( const std::vector< unsigned > &  b) const
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.

◆ isElementOf() [2/2]

unsigned isElementOf ( const SubGraphID b) const
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.


The documentation for this class was generated from the following file: