Class representing the charge and particle contributions for one pixel.
More...
#include <PXDDigitizerModule.h>
|
| DigitValue () |
| Constructor.
|
|
void | add (double charge, int particle=-1, int truehit=-1) |
| Add charge to the pixel.
|
|
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.
|
|
Class representing the charge and particle contributions for one pixel.
Definition at line 49 of file PXDDigitizerModule.h.
◆ relations_map
Type to store contributions to pixel charge by different particles.
Definition at line 52 of file PXDDigitizerModule.h.
◆ DigitValue()
◆ add()
void add |
( |
double | charge, |
|
|
int | particle = -1, |
|
|
int | truehit = -1 ) |
|
inline |
Add charge to the pixel.
- Parameters
-
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.
61 {
62 if (particle >= 0) m_particles[particle] +=
charge;
63 if (truehit >= 0) m_truehits[truehit] +=
charge;
65 }
double charge(int pdgCode)
Returns electric charge of a particle with given pdg code.
◆ charge()
◆ particles()
Return the map containing all particle contributions to the pixel charge.
Definition at line 69 of file PXDDigitizerModule.h.
69{ return m_particles; }
◆ truehits()
Return the map containing all truehit contributions to the pixel charge.
Definition at line 71 of file PXDDigitizerModule.h.
◆ m_charge
◆ m_particles
◆ m_truehits
The documentation for this class was generated from the following file: