Belle II Software  release-05-02-19
DigitValue Class Reference

Class representing the charge and particle contributions for one pixel. More...

#include <PXDDigitizerModule.h>

Collaboration diagram for DigitValue:

Public Types

typedef std::map< RelationElement::index_type, RelationElement::weight_typerelations_map
 Type to store contributions to pixel charge by different particles.
 

Public Member Functions

 DigitValue ()
 Constructor.
 
void add (double charge, int particle=-1, int truehit=-1)
 Add charge to the pixel. More...
 
double charge () const
 Return the charge collected in the pixel.
 
const relations_mapparticles () const
 Return the map containing all particle contributions to the pixel charge.
 
const relations_maptruehits () const
 Return the map containing all truehit contributions to the pixel charge.
 

Protected Attributes

double m_charge
 charge of the pixel
 
relations_map m_particles
 particle contributions to the charge
 
relations_map m_truehits
 truehit contributions to the charge
 

Detailed Description

Class representing the charge and particle contributions for one pixel.

Definition at line 57 of file PXDDigitizerModule.h.

Member Function Documentation

◆ add()

void add ( double  charge,
int  particle = -1,
int  truehit = -1 
)
inline

Add charge to the pixel.

Parameters
chargecharge in electrons to be added
particleIndex of the particle contributing the charge, -1 for no particle/noise

Definition at line 67 of file PXDDigitizerModule.h.

67  { return m_charge; }
69  const relations_map& particles() const { return m_particles; }
71  const relations_map& truehits() const { return m_truehits; }
72  protected:

The documentation for this class was generated from the following file:
Belle2::PXD::DigitValue::m_charge
double m_charge
charge of the pixel
Definition: PXDDigitizerModule.h:81
Belle2::PXD::DigitValue::relations_map
std::map< RelationElement::index_type, RelationElement::weight_type > relations_map
Type to store contributions to pixel charge by different particles.
Definition: PXDDigitizerModule.h:60
Belle2::PXD::DigitValue::m_particles
relations_map m_particles
particle contributions to the charge
Definition: PXDDigitizerModule.h:83
Belle2::PXD::DigitValue::m_truehits
relations_map m_truehits
truehit contributions to the charge
Definition: PXDDigitizerModule.h:85
Belle2::PXD::DigitValue::truehits
const relations_map & truehits() const
Return the map containing all truehit contributions to the pixel charge.
Definition: PXDDigitizerModule.h:78
Belle2::PXD::DigitValue::particles
const relations_map & particles() const
Return the map containing all particle contributions to the pixel charge.
Definition: PXDDigitizerModule.h:76