Belle II Software development
Cluster_t Struct Reference

Struct to hold variables for PXD clusters. More...

#include <PXDPerformanceStructs.h>

Public Member Functions

 Cluster_t ()
 Default constructor.
 
void setValues (const PXDCluster &pxdCluster)
 Update values from a PXDCluster.
 

Public Attributes

unsigned short pxdID
 Human readable id: layer * 1000 + ladder * 10 + sensor.
 
unsigned short charge
 Cluster charge in ADU.
 
unsigned short size
 Cluster size.
 
unsigned short uSize
 Cluster size in U.
 
unsigned short vSize
 Cluster size in V.
 
float posU
 Local position in r-phi.
 
float posV
 Local position along z.
 

Detailed Description

Struct to hold variables for PXD clusters.

Definition at line 35 of file PXDPerformanceStructs.h.

Constructor & Destructor Documentation

◆ Cluster_t()

Cluster_t ( )
inline

Default constructor.

Definition at line 38 of file PXDPerformanceStructs.h.

38 : pxdID(0), charge(0), size(0),
39 uSize(0), vSize(0), posU(0.0), posV(0.0) {}
float posV
Local position along z.
float posU
Local position in r-phi.
unsigned short pxdID
Human readable id: layer * 1000 + ladder * 10 + sensor.
unsigned short charge
Cluster charge in ADU.
unsigned short uSize
Cluster size in U.
unsigned short vSize
Cluster size in V.
unsigned short size
Cluster size.

Member Function Documentation

◆ setValues()

void setValues ( const PXDCluster pxdCluster)

Update values from a PXDCluster.

Parameters
pxdClustera PXDCluster object

Definition at line 22 of file PXDPerformanceStructs.cc.

23 {
24 pxdID = getPXDModuleID(pxdCluster.getSensorID());
25 charge = pxdCluster.getCharge();
26 size = pxdCluster.getSize();
27 uSize = pxdCluster.getUSize();
28 vSize = pxdCluster.getVSize();
29 posU = pxdCluster.getU();
30 posV = pxdCluster.getV();
31 }
unsigned short getPXDModuleID(const VxdID &sensorID)
Helper function to get DHE id like module id from VxdID.
Definition: PXDUtilities.h:78

Member Data Documentation

◆ charge

unsigned short charge

Cluster charge in ADU.

Definition at line 48 of file PXDPerformanceStructs.h.

◆ posU

float posU

Local position in r-phi.

Definition at line 52 of file PXDPerformanceStructs.h.

◆ posV

float posV

Local position along z.

Definition at line 53 of file PXDPerformanceStructs.h.

◆ pxdID

unsigned short pxdID

Human readable id: layer * 1000 + ladder * 10 + sensor.

PXD module id as the DHE id.

Definition at line 47 of file PXDPerformanceStructs.h.

◆ size

unsigned short size

Cluster size.

Definition at line 49 of file PXDPerformanceStructs.h.

◆ uSize

unsigned short uSize

Cluster size in U.

Definition at line 50 of file PXDPerformanceStructs.h.

◆ vSize

unsigned short vSize

Cluster size in V.

Definition at line 51 of file PXDPerformanceStructs.h.


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