Belle II Software
release-08-01-10
|
Class representing the charge and particle contributions for one pixel. More...
#include <PXDDigitizerModule.h>
Public Types | |
typedef std::map< RelationElement::index_type, RelationElement::weight_type > | relations_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_map & | particles () const |
Return the map containing all particle contributions to the pixel charge. | |
const relations_map & | truehits () 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 | |
Class representing the charge and particle contributions for one pixel.
Definition at line 49 of file PXDDigitizerModule.h.
|
inline |
Add charge to the pixel.
charge | charge in electrons to be added |
particle | Index of the particle contributing the charge, -1 for no particle/noise |
truehit | Index of the truehit contributing the charge, -1 for none |
Definition at line 60 of file PXDDigitizerModule.h.