Project
Loading...
Searching...
No Matches
o2::itsmft::ClusterTopology Class Reference

#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 ClusterPatterngetClusterPattern () 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.
 

Detailed Description

Definition at line 34 of file ClusterTopology.h.

Constructor & Destructor Documentation

◆ ClusterTopology() [1/3]

o2::itsmft::ClusterTopology::ClusterTopology ( )

Default constructor.

Definition at line 28 of file ClusterTopology.cxx.

◆ ClusterTopology() [2/3]

o2::itsmft::ClusterTopology::ClusterTopology ( int  nRow,
int  nCol,
const unsigned char  patt[ClusterPattern::MaxPatternBytes] 
)

Standard constructor.

Definition at line 30 of file ClusterTopology.cxx.

◆ ClusterTopology() [3/3]

o2::itsmft::ClusterTopology::ClusterTopology ( const ClusterPattern patt)

Constructor.

Definition at line 35 of file ClusterTopology.cxx.

Member Function Documentation

◆ getByte()

unsigned char o2::itsmft::ClusterTopology::getByte ( int  n) const
inline

Returns a specific byte of the pattern.

Definition at line 45 of file ClusterTopology.h.

◆ getClusterPattern()

const ClusterPattern & o2::itsmft::ClusterTopology::getClusterPattern ( ) const
inline

Definition at line 48 of file ClusterTopology.h.

◆ getColumnSpan()

int o2::itsmft::ClusterTopology::getColumnSpan ( ) const
inline

Returns the number of columns.

Definition at line 52 of file ClusterTopology.h.

◆ getCompleteHash() [1/2]

unsigned long o2::itsmft::ClusterTopology::getCompleteHash ( const ClusterTopology topology)
static

Definition at line 129 of file ClusterTopology.cxx.

◆ getCompleteHash() [2/2]

unsigned long o2::itsmft::ClusterTopology::getCompleteHash ( int  nRow,
int  nCol,
const unsigned char  patt[ClusterPattern::MaxPatternBytes] 
)
static

Compute the complete hash as defined for mHash.

Definition at line 94 of file ClusterTopology.cxx.

◆ getHash()

unsigned long o2::itsmft::ClusterTopology::getHash ( ) const
inline

Returns the hashcode.

Definition at line 56 of file ClusterTopology.h.

◆ getPattern()

const std::array< unsigned char, ClusterPattern::kExtendedPatternBytes > & o2::itsmft::ClusterTopology::getPattern ( ) const
inline

Returns the pattern.

Definition at line 47 of file ClusterTopology.h.

◆ getRowSpan()

int o2::itsmft::ClusterTopology::getRowSpan ( ) const
inline

Returns the number of rows.

Definition at line 50 of file ClusterTopology.h.

◆ getUsedBytes()

int o2::itsmft::ClusterTopology::getUsedBytes ( ) const
inline

Returns the number of used bytes.

Definition at line 54 of file ClusterTopology.h.

◆ hashFunction()

unsigned int o2::itsmft::ClusterTopology::hashFunction ( const void key,
int  len 
)
static

MurMur2 hash fucntion.

Definition at line 52 of file ClusterTopology.cxx.

◆ makeRareTopologyMap()

static void o2::itsmft::ClusterTopology::makeRareTopologyMap ( const std::vector< ClusterTopology > &  vec,
std::map< int, ClusterPattern > &  map 
)
inlinestatic

Helper function useful for analyses with topologies stored on a separate branch.

Definition at line 72 of file ClusterTopology.h.

◆ print()

void o2::itsmft::ClusterTopology::print ( ) const

Prints to the stdout.

Definition at line 155 of file ClusterTopology.cxx.

◆ setPattern() [1/2]

void o2::itsmft::ClusterTopology::setPattern ( const ClusterPattern patt)

Sets the pattern.

Definition at line 46 of file ClusterTopology.cxx.

◆ setPattern() [2/2]

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.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ClusterTopology top 
)
friend

Prints the topology.

Definition at line 160 of file ClusterTopology.cxx.


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