File indexing completed on 2025-03-13 08:20:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <DD4hep/Printout.h>
0016 #include <DD4hep/InstanceCount.h>
0017 #include <DDG4/Geant4ParticleHandler.h>
0018 #include <DDG4/Geant4UserParticleHandler.h>
0019 #include <CLHEP/Units/SystemOfUnits.h>
0020
0021 using namespace dd4hep::sim;
0022
0023
0024 Geant4UserParticleHandler::Geant4UserParticleHandler(Geant4Context* ctxt, const std::string& nam)
0025 : Geant4Action(ctxt,nam)
0026 {
0027 InstanceCount::increment(this);
0028 declareProperty("MinimalKineticEnergy",m_kinEnergyCut = 100e0*CLHEP::MeV);
0029 m_needsControl = true;
0030 }
0031
0032
0033 Geant4UserParticleHandler::~Geant4UserParticleHandler() {
0034 InstanceCount::decrement(this);
0035 }
0036
0037
0038 void Geant4UserParticleHandler::generate(G4Event* , Geant4ParticleHandler* ) {
0039
0040 }
0041
0042
0043 void Geant4UserParticleHandler::begin(const G4Event* ) {
0044 }
0045
0046
0047 void Geant4UserParticleHandler::end(const G4Event* ) {
0048
0049 }
0050
0051
0052 void Geant4UserParticleHandler::step(const G4Step* , G4SteppingManager* , Particle& ) {
0053 }
0054
0055
0056 void Geant4UserParticleHandler::begin(const G4Track* , Particle& ) {
0057 }
0058
0059
0060 void Geant4UserParticleHandler::end(const G4Track* , Particle& ) {
0061 }
0062
0063
0064 void Geant4UserParticleHandler::combine(Particle& , Particle& ) {
0065 }
0066
0067
0068 bool Geant4UserParticleHandler::keepParticle(Particle& particle) {
0069 return Geant4ParticleHandler::defaultKeepParticle(particle);
0070 }