DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Namespaces | Functions
Geant4UserParticleHandlerHelper.cpp File Reference
#include "Geant4UserParticleHandlerHelper.h"
#include <DDG4/Geant4Particle.h>
#include <DDG4/Geant4UserParticleHandler.h>

Go to the source code of this file.

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::sim
 Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
 

Functions

void dd4hep::sim::setReason (Geant4Particle &p, bool starts_in_trk_volume, bool ends_in_trk_volume)
 determines if particle should be kept and sets p.reason = 0 otherwise More...
 
void dd4hep::sim::setSimulatorStatus (Geant4Particle &p, bool starts_in_trk_volume, bool ends_in_trk_volume)
 determines if particle has ended in the tracker, calorimeter or if it is backscatter and sets simulator status accordingly More...