Project
Loading...
Searching...
No Matches
o2::mch::Cluster Struct Reference

cluster minimal structure More...

#include <Cluster.h>

Public Member Functions

double getX () const
 Return the cluster position along x as double.
 
double getY () const
 Return the cluster position along y as double.
 
double getZ () const
 Return the cluster position along z as double.
 
double getEx () const
 Return the cluster resolution along x as double.
 
double getEy () const
 Return the cluster resolution along y as double.
 
double getEx2 () const
 Return the cluster resolution square along x.
 
double getEy2 () const
 Return the cluster resolution square along y.
 
std::string getIdAsString () const
 Return the unique ID of this cluster in human readable form.
 
int getChamberId () const
 Return the chamber ID (0..), part of the unique ID.
 
int getDEId () const
 Return the detection element ID, part of the unique ID.
 
int getClusterIndex () const
 Return the index of this cluster (0..), part of the unique ID.
 

Static Public Member Functions

static int getChamberId (uint32_t clusterId)
 Return the chamber ID of the cluster, part of its unique ID.
 
static int getDEId (uint32_t clusterId)
 Return the detection element ID of the cluster, part of its unique ID.
 
static int getClusterIndex (uint32_t clusterId)
 Return the index of the cluster, part of its unique ID.
 
static uint32_t buildUniqueId (int chamberId, int deId, int clusterIndex)
 Build the unique ID of the cluster from the chamber ID, detection element ID and cluster index.
 

Public Attributes

float x
 cluster position along x
 
float y
 cluster position along y
 
float z
 cluster position along z
 
float ex
 cluster resolution along x
 
float ey
 cluster resolution along y
 
uint32_t uid
 cluster unique ID
 
uint32_t firstDigit
 index of first associated digit in the ordered vector of digits
 
uint32_t nDigits
 number of digits attached to this cluster
 

Detailed Description

cluster minimal structure

Definition at line 31 of file Cluster.h.

Member Function Documentation

◆ buildUniqueId()

static uint32_t o2::mch::Cluster::buildUniqueId ( int  chamberId,
int  deId,
int  clusterIndex 
)
inlinestatic

Build the unique ID of the cluster from the chamber ID, detection element ID and cluster index.

Definition at line 74 of file Cluster.h.

◆ getChamberId() [1/2]

int o2::mch::Cluster::getChamberId ( ) const
inline

Return the chamber ID (0..), part of the unique ID.

Definition at line 60 of file Cluster.h.

◆ getChamberId() [2/2]

static int o2::mch::Cluster::getChamberId ( uint32_t  clusterId)
inlinestatic

Return the chamber ID of the cluster, part of its unique ID.

Definition at line 67 of file Cluster.h.

◆ getClusterIndex() [1/2]

int o2::mch::Cluster::getClusterIndex ( ) const
inline

Return the index of this cluster (0..), part of the unique ID.

Definition at line 64 of file Cluster.h.

◆ getClusterIndex() [2/2]

static int o2::mch::Cluster::getClusterIndex ( uint32_t  clusterId)
inlinestatic

Return the index of the cluster, part of its unique ID.

Definition at line 71 of file Cluster.h.

◆ getDEId() [1/2]

int o2::mch::Cluster::getDEId ( ) const
inline

Return the detection element ID, part of the unique ID.

Definition at line 62 of file Cluster.h.

◆ getDEId() [2/2]

static int o2::mch::Cluster::getDEId ( uint32_t  clusterId)
inlinestatic

Return the detection element ID of the cluster, part of its unique ID.

Definition at line 69 of file Cluster.h.

◆ getEx()

double o2::mch::Cluster::getEx ( ) const
inline

Return the cluster resolution along x as double.

Definition at line 48 of file Cluster.h.

◆ getEx2()

double o2::mch::Cluster::getEx2 ( ) const
inline

Return the cluster resolution square along x.

Definition at line 52 of file Cluster.h.

◆ getEy()

double o2::mch::Cluster::getEy ( ) const
inline

Return the cluster resolution along y as double.

Definition at line 50 of file Cluster.h.

◆ getEy2()

double o2::mch::Cluster::getEy2 ( ) const
inline

Return the cluster resolution square along y.

Definition at line 54 of file Cluster.h.

◆ getIdAsString()

std::string o2::mch::Cluster::getIdAsString ( ) const
inline

Return the unique ID of this cluster in human readable form.

Definition at line 57 of file Cluster.h.

◆ getX()

double o2::mch::Cluster::getX ( ) const
inline

Return the cluster position along x as double.

Definition at line 42 of file Cluster.h.

◆ getY()

double o2::mch::Cluster::getY ( ) const
inline

Return the cluster position along y as double.

Definition at line 44 of file Cluster.h.

◆ getZ()

double o2::mch::Cluster::getZ ( ) const
inline

Return the cluster position along z as double.

Definition at line 46 of file Cluster.h.

Member Data Documentation

◆ ex

float o2::mch::Cluster::ex

cluster resolution along x

Definition at line 35 of file Cluster.h.

◆ ey

float o2::mch::Cluster::ey

cluster resolution along y

Definition at line 36 of file Cluster.h.

◆ firstDigit

uint32_t o2::mch::Cluster::firstDigit

index of first associated digit in the ordered vector of digits

Definition at line 38 of file Cluster.h.

◆ nDigits

uint32_t o2::mch::Cluster::nDigits

number of digits attached to this cluster

Definition at line 39 of file Cluster.h.

◆ uid

uint32_t o2::mch::Cluster::uid

cluster unique ID

Definition at line 37 of file Cluster.h.

◆ x

float o2::mch::Cluster::x

cluster position along x

Definition at line 32 of file Cluster.h.

◆ y

float o2::mch::Cluster::y

cluster position along y

Definition at line 33 of file Cluster.h.

◆ z

float o2::mch::Cluster::z

cluster position along z

Definition at line 34 of file Cluster.h.


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