![]() |
Project
|
#include <ClusterTopology.h>
Public Member Functions | |
ClusterTopology () | |
Default constructor. | |
ClusterTopology (int nRow, int nCol, const unsigned char patt[ClusterPattern::MaxPatternBytes]) | |
Standard constructor. | |
ClusterTopology (const ClusterPattern &patt) | |
Constructor. | |
unsigned char | getByte (int n) const |
Returns a specific byte of the pattern. | |
const std::array< unsigned char, ClusterPattern::kExtendedPatternBytes > & | getPattern () const |
Returns the pattern. | |
const ClusterPattern & | getClusterPattern () const |
int | getRowSpan () const |
Returns the number of rows. | |
int | getColumnSpan () const |
Returns the number of columns. | |
int | getUsedBytes () const |
Returns the number of used bytes. | |
unsigned long | getHash () const |
Returns the hashcode. | |
void | print () const |
Prints to the stdout. | |
void | setPattern (int nRow, int nCol, const unsigned char patt[ClusterPattern::MaxPatternBytes]) |
Sets the pattern. | |
void | setPattern (const ClusterPattern &patt) |
Sets the pattern. | |
Static Public Member Functions | |
static unsigned int | hashFunction (const void *key, int len) |
MurMur2 hash fucntion. | |
static unsigned long | getCompleteHash (int nRow, int nCol, const unsigned char patt[ClusterPattern::MaxPatternBytes]) |
Compute the complete hash as defined for mHash. | |
static unsigned long | getCompleteHash (const ClusterTopology &topology) |
static void | makeRareTopologyMap (const std::vector< ClusterTopology > &vec, std::map< int, ClusterPattern > &map) |
Helper function useful for analyses with topologies stored on a separate branch. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ClusterTopology &top) |
Prints the topology. | |
Definition at line 34 of file ClusterTopology.h.
o2::itsmft::ClusterTopology::ClusterTopology | ( | ) |
Default constructor.
Definition at line 28 of file ClusterTopology.cxx.
o2::itsmft::ClusterTopology::ClusterTopology | ( | int | nRow, |
int | nCol, | ||
const unsigned char | patt[ClusterPattern::MaxPatternBytes] | ||
) |
Standard constructor.
Definition at line 30 of file ClusterTopology.cxx.
o2::itsmft::ClusterTopology::ClusterTopology | ( | const ClusterPattern & | patt | ) |
Constructor.
Definition at line 35 of file ClusterTopology.cxx.
Returns a specific byte of the pattern.
Definition at line 45 of file ClusterTopology.h.
|
inline |
Definition at line 48 of file ClusterTopology.h.
|
inline |
Returns the number of columns.
Definition at line 52 of file ClusterTopology.h.
|
static |
Definition at line 129 of file ClusterTopology.cxx.
|
static |
Compute the complete hash as defined for mHash.
Definition at line 94 of file ClusterTopology.cxx.
|
inline |
Returns the hashcode.
Definition at line 56 of file ClusterTopology.h.
|
inline |
Returns the pattern.
Definition at line 47 of file ClusterTopology.h.
|
inline |
Returns the number of rows.
Definition at line 50 of file ClusterTopology.h.
|
inline |
Returns the number of used bytes.
Definition at line 54 of file ClusterTopology.h.
MurMur2 hash fucntion.
Definition at line 52 of file ClusterTopology.cxx.
|
inlinestatic |
Helper function useful for analyses with topologies stored on a separate branch.
Definition at line 72 of file ClusterTopology.h.
void o2::itsmft::ClusterTopology::print | ( | ) | const |
Prints to the stdout.
Definition at line 155 of file ClusterTopology.cxx.
void o2::itsmft::ClusterTopology::setPattern | ( | const ClusterPattern & | patt | ) |
Sets the pattern.
Definition at line 46 of file ClusterTopology.cxx.
void o2::itsmft::ClusterTopology::setPattern | ( | int | nRow, |
int | nCol, | ||
const unsigned char | patt[ClusterPattern::MaxPatternBytes] | ||
) |
Sets the pattern.
Definition at line 40 of file ClusterTopology.cxx.
|
friend |
Prints the topology.
Definition at line 160 of file ClusterTopology.cxx.