|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DDG4_GEANT4USERLIMITS_H
14 #define DDG4_GEANT4USERLIMITS_H
20 #include <G4UserLimits.hh>
23 class G4ParticleDefinition;
56 void set(
const std::string& particles,
double val);
58 double value(
const G4Track& track)
const;
107 #endif // DDG4_GEANT4USERLIMITS_H
Handler minRange
Handler map for MinRange limit.
virtual G4double GetUserMinEkine(const G4Track &track) override
Access the kinetic energy cut for a G4 track object.
virtual G4double GetUserMaxTrackLength(const G4Track &track) override
Access the user tracklength for a G4 track object.
Geant4UserLimits(LimitSet limitset)
Initializing Constructor.
Handler minEKine
Handler map for MinEKine limit.
Handler maxTrackLength
Handler map for MaxTrackLength limit.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.
virtual void SetUserMinRange(G4double urangMin) override
virtual ~Geant4UserLimits()
Standard destructor.
LimitSet limits
Handle to the limitset to be applied.
Handler maxTime
Handler map for MaxTime limit.
virtual void SetUserMaxTime(G4double utimeMax) override
Handle class describing a set of limits as they are used for simulation.
virtual void SetUserMaxTrackLength(G4double utrakMax) override
std::map< const G4ParticleDefinition *, double > particleLimits
Handler particle ids for the limit (pdgID)
virtual void SetMaxAllowedStep(G4double ustepMax) override
Setters may not be called!
Handler maxStepLength
Handler map for MaxStepLength limit.
double defaultValue
Default value (either from base class or value if Limit.particles='*')
virtual G4double GetMaxAllowedStep(const G4Track &track) override
Access the user tracklength for a G4 track object.
virtual void SetUserMinEkine(G4double uekinMin) override
virtual void update(LimitSet limitset)
Update the object.
Namespace for the AIDA detector description toolkit.
virtual G4double GetUserMinRange(const G4Track &track) override
Access the range cut for a G4 track object.
double value(const G4Track &track) const
Access value according to track.
static bool enable_debug(bool value)
Allow for debugging user limits (very verbose)
void set(const std::string &particles, double val)
Set the handler value(s)
virtual G4double GetUserMaxTime(const G4Track &track) override
Access the proper time cut for a G4 track object.
Helper to dump Geant4 volume hierarchy.
Handler()=default
Default constructor.
Helper class to one limit type.