|
HerdSoftware
0.4.0
|
Class to describe the energy deposit of a single particle. More...
#include <dataobjects/ParticleHit.h>
Public Member Functions | |
| ParticleHit () | |
| Constructor. More... | |
| ParticleHit (int particlePDG, float eDep, float entranceEnergy, Point entrancePoint, Point exitPoint, Momentum entranceMomentum, int trackID, int parentTrackID, float time) | |
| Constructor. More... | |
| virtual | ~ParticleHit ()=default |
| Virtual destructor More... | |
| float | EDep () const |
| Get the deposited energy. More... | |
| void | SetEDep (float eDep) |
| Set the energy deposit of the hit. More... | |
| const Point & | EntrancePoint () const |
| Get the entrance point in the hit volume. More... | |
| void | SetEntrancePoint (Point entrancePoint) |
| Set the entrance point in the hit volume. More... | |
| const Point & | ExitPoint () const |
| Get the exit point from the hit volume. More... | |
| void | SetExitPoint (Point exitPoint) |
| Set the exit point from the hit volume. More... | |
| const Momentum & | EntranceMomentum () const |
| Get the momentum at the entrance in the hit volume. More... | |
| void | SetEntranceMomentum (Momentum entranceMomentum) |
| Set the momentum at the entrance in the hit volume. More... | |
| float | EntranceEnergy () const |
| Get the particle energy at the entrance in the hit volume. More... | |
| void | SetEntranceEnergy (float entranceEnergy) |
| Set the particle energy at the entrance in the hit volume. More... | |
| int | ParticlePDG () const |
| Get the PDG code of the particle. More... | |
| void | SetParticlePDG (int particlePdg) |
| Set the PDG code of the particle. More... | |
| int | TrackID () const |
| Get the ID of the particle track. More... | |
| void | SetTrackID (int trackID) |
| Set the track ID of the particle. More... | |
| int | ParentTrackID () const |
| Get the ID of the parent particle track. More... | |
| void | SetParentTrackID (int parentTrackID) |
| Set the track ID of the parent particle. More... | |
| float | Time () const |
| Get the particle track arrival time. More... | |
| void | SetTime (float time) |
| Set the particle track arrival time. More... | |
| bool | operator== (const ParticleHit &rhs) const |
| Comparison operator. More... | |
Private Attributes | |
| int | _particlePdg |
| Particle PDG ID. More... | |
| float | _eDep |
| Deposited energy. More... | |
| float | _entranceEnergy |
| Entrance kinetic energy. More... | |
| Point | _entrancePoint |
| Entrance point. More... | |
| Point | _exitPoint |
| Exit point. More... | |
| Momentum | _entranceMomentum |
| Entrance momentum. More... | |
| int | _trackID |
| The track ID of the particle. More... | |
| int | _parentTrackID |
| The track ID of the particle. More... | |
| float | _time |
| The particle time of arrival. More... | |
Class to describe the energy deposit of a single particle.
This class provides information about the energy deposit of a single particle. It is meant to describe Monte Carlo data, where single-particle energy deposits are available.
|
inline |
Constructor.
|
inline |
Constructor.
| particlePDG | The PDG code of the particle. |
| eDep | The energy deposited by the particle in the volume. |
| entranceEnergy | Particle energy at volume entrance. |
| entrancePoint | Coordinates of the entrance point (cm). |
| exitPoint | Coordinates of the exit point (cm). |
| entranceMomentum | Particle momentum at volume entrance. |
| trackID | The ID of the particle track. |
| time | The arrival time of the particle on the sensitive element (ns). |
| parentTrackID | The ID of the parent particle track. Must be 0 if the current particle is a primary. |
|
virtualdefault |
Virtual destructor
|
inline |
Get the deposited energy.
|
inline |
Get the particle energy at the entrance in the hit volume.
|
inline |
Get the momentum at the entrance in the hit volume.
|
inline |
Get the entrance point in the hit volume.
|
inline |
Get the exit point from the hit volume.
|
inline |
Comparison operator.
| rhs | The right hand side of the comparison expression. |
|
inline |
Get the ID of the parent particle track.
Will return 0 if the current particle is a primary.
|
inline |
Get the PDG code of the particle.
|
inline |
Set the energy deposit of the hit.
| eDep | The deposited energy [GeV]. |
|
inline |
Set the particle energy at the entrance in the hit volume.
| entranceEnergy | The particle energy at the entrance in the hit volume [GeV]. |
|
inline |
Set the momentum at the entrance in the hit volume.
| entranceMomentum | The momentum at the entrance in the hit volume [GeV]. |
|
inline |
Set the entrance point in the hit volume.
| entrancePoint | The entrance point in the hit volume [cm]. |
|
inline |
Set the exit point from the hit volume.
| exitPoint | The exit point from the hit volume [cm]. |
|
inline |
Set the track ID of the parent particle.
Must be 0 if the current particle is a primary.
| parentTrackID | The track ID. |
|
inline |
Set the PDG code of the particle.
| particlePdg | The PDG code of the particle. |
|
inline |
Set the particle track arrival time.
| time | The particle arrival time (ns). |
|
inline |
Set the track ID of the particle.
| trackID | The track ID. |
|
inline |
Get the particle track arrival time.
|
inline |
Get the ID of the particle track.
|
private |
Deposited energy.
|
private |
Entrance kinetic energy.
|
private |
Entrance momentum.
|
private |
Entrance point.
|
private |
Exit point.
|
private |
The track ID of the particle.
|
private |
Particle PDG ID.
|
private |
The particle time of arrival.
|
private |
The track ID of the particle.
1.8.17