PhotoMultiplier Hit definition. More...

#include <PMTHit.h>

Inheritance diagram for npdet::PMTHit:
Collaboration diagram for npdet::PMTHit:

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...
 
PMTHitoperator= (const PMTHit &c)
 Assignment operator. More...
 
PMTHitclear ()
 Clear hit content. More...
 
PMTHitstorePoint (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.

Author
Whitney Armstrong
Version
1.0

Definition at line 38 of file PMTHit.h.

Constructor & Destructor Documentation

◆ PMTHit() [1/2]

npdet::PMTHit::PMTHit ( )
default

Default constructor.

◆ PMTHit() [2/2]

npdet::PMTHit::PMTHit ( int  track_id,
int  pdg_id,
double  en,
double  time_stamp 
)
inline

Initializing constructor.

Definition at line 64 of file PMTHit.h.

◆ ~PMTHit()

virtual npdet::PMTHit::~PMTHit ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ clear()

PMTHit & PMTHit::clear ( )

Clear hit content.

Definition at line 32 of file PMTHit.cpp.

◆ operator=()

PMTHit & PMTHit::operator= ( const PMTHit c)

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

double npdet::PMTHit::energy = 0

Energy of photon.

Definition at line 58 of file PMTHit.h.

◆ length

double npdet::PMTHit::length = 0

Length of the track segment contributing to this hit.

Definition at line 54 of file PMTHit.h.

◆ momentum

dd4hep::Direction npdet::PMTHit::momentum

Hit direction.

Definition at line 52 of file PMTHit.h.

◆ position

dd4hep::Position npdet::PMTHit::position

Hit position.

Definition at line 50 of file PMTHit.h.

◆ truth

dd4hep::sim::Geant4HitData::MonteCarloContrib npdet::PMTHit::truth

Monte Carlo / Geant4 information.

Definition at line 56 of file PMTHit.h.


The documentation for this class was generated from the following files: