PhotoMultiplier Hit definition. More...
#include <PMTHit.h>
Public Member Functions | |
PMTHit ()=default | |
Default constructor. More... | |
PMTHit (int track_id, int pdg_id, double en, double time_stamp) | |
Initializing constructor. More... | |
virtual | ~PMTHit ()=default |
Default destructor. More... | |
PMTHit & | operator= (const PMTHit &c) |
Assignment operator. More... | |
PMTHit & | clear () |
Clear hit content. More... | |
PMTHit & | storePoint (const G4Step *step, const G4StepPoint *pnt) |
Store Geant4 point and step information into tracker hit structure. More... | |
Public Attributes | |
dd4hep::Position | position |
Hit position. More... | |
dd4hep::Direction | momentum |
Hit direction. More... | |
double | length = 0 |
Length of the track segment contributing to this hit. More... | |
dd4hep::sim::Geant4HitData::MonteCarloContrib | truth |
Monte Carlo / Geant4 information. More... | |
double | energy = 0 |
Energy of photon. More... | |
Detailed Description
PhotoMultiplier Hit definition.
Nearly the same as a tracker hit but stores energy (convertable to wavelength).
Please note:
The MC truth handling as implemented in the Geant4ParticleHandler will not work with this class if the object(s) are saved with the standard Geant4Output2ROOT event action. If the hit is specialized, the output writing also must be specialized if MC truth handling should be supported. Otherwise it is sufficient to provide a ROOT dictionary as long as the base class dd4hep::sim::Geant4HitData is kept.
- Version
- 1.0
Constructor & Destructor Documentation
◆ PMTHit() [1/2]
|
default |
Default constructor.
◆ PMTHit() [2/2]
|
inline |
◆ ~PMTHit()
|
virtualdefault |
Default destructor.
Member Function Documentation
◆ clear()
PMTHit & PMTHit::clear | ( | ) |
Clear hit content.
Definition at line 32 of file PMTHit.cpp.
◆ operator=()
Assignment operator.
Definition at line 20 of file PMTHit.cpp.
◆ storePoint()
PMTHit & PMTHit::storePoint | ( | const G4Step * | step, |
const G4StepPoint * | pnt | ||
) |
Store Geant4 point and step information into tracker hit structure.
Definition at line 42 of file PMTHit.cpp.
Member Data Documentation
◆ energy
◆ length
double npdet::PMTHit::length = 0 |
◆ momentum
◆ position
◆ truth
dd4hep::sim::Geant4HitData::MonteCarloContrib npdet::PMTHit::truth |
The documentation for this class was generated from the following files: