DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dd4hep::sim::Geant4UserLimits Class Reference

Helper to dump Geant4 volume hierarchy. More...

#include <Geant4UserLimits.h>

Inheritance diagram for dd4hep::sim::Geant4UserLimits:
G4UserLimits

Classes

struct  Handler
 Helper class to one limit type. More...
 

Public Member Functions

 Geant4UserLimits (LimitSet limitset)
 Initializing Constructor. More...
 
virtual ~Geant4UserLimits ()
 Standard destructor. More...
 
virtual void update (LimitSet limitset)
 Update the object. More...
 
virtual G4double GetMaxAllowedStep (const G4Track &track) override
 Access the user tracklength for a G4 track object. More...
 
virtual G4double GetUserMaxTrackLength (const G4Track &track) override
 Access the user tracklength for a G4 track object. More...
 
virtual G4double GetUserMaxTime (const G4Track &track) override
 Access the proper time cut for a G4 track object. More...
 
virtual G4double GetUserMinEkine (const G4Track &track) override
 Access the kinetic energy cut for a G4 track object. More...
 
virtual G4double GetUserMinRange (const G4Track &track) override
 Access the range cut for a G4 track object. More...
 
virtual void SetMaxAllowedStep (G4double ustepMax) override
 Setters may not be called! More...
 
virtual void SetUserMaxTrackLength (G4double utrakMax) override
 
virtual void SetUserMaxTime (G4double utimeMax) override
 
virtual void SetUserMinEkine (G4double uekinMin) override
 
virtual void SetUserMinRange (G4double urangMin) override
 

Static Public Member Functions

static bool enable_debug (bool value)
 Allow for debugging user limits (very verbose) More...
 

Public Attributes

LimitSet limits
 Handle to the limitset to be applied. More...
 
Handler maxStepLength
 Handler map for MaxStepLength limit. More...
 
Handler maxTrackLength
 Handler map for MaxTrackLength limit. More...
 
Handler maxTime
 Handler map for MaxTime limit. More...
 
Handler minEKine
 Handler map for MinEKine limit. More...
 
Handler minRange
 Handler map for MinRange limit. More...
 

Detailed Description

Helper to dump Geant4 volume hierarchy.

Author
M.Frank
Version
1.0

Definition at line 38 of file Geant4UserLimits.h.

Constructor & Destructor Documentation

◆ Geant4UserLimits()

Geant4UserLimits::Geant4UserLimits ( LimitSet  limitset)

Initializing Constructor.

Definition at line 73 of file Geant4UserLimits.cpp.

◆ ~Geant4UserLimits()

Geant4UserLimits::~Geant4UserLimits ( )
virtual

Standard destructor.

Definition at line 81 of file Geant4UserLimits.cpp.

Member Function Documentation

◆ enable_debug()

bool Geant4UserLimits::enable_debug ( bool  value)
static

Allow for debugging user limits (very verbose)

Definition at line 34 of file Geant4UserLimits.cpp.

◆ GetMaxAllowedStep()

virtual G4double dd4hep::sim::Geant4UserLimits::GetMaxAllowedStep ( const G4Track &  track)
inlineoverridevirtual

Access the user tracklength for a G4 track object.

Definition at line 81 of file Geant4UserLimits.h.

◆ GetUserMaxTime()

virtual G4double dd4hep::sim::Geant4UserLimits::GetUserMaxTime ( const G4Track &  track)
inlineoverridevirtual

Access the proper time cut for a G4 track object.

Definition at line 87 of file Geant4UserLimits.h.

◆ GetUserMaxTrackLength()

virtual G4double dd4hep::sim::Geant4UserLimits::GetUserMaxTrackLength ( const G4Track &  track)
inlineoverridevirtual

Access the user tracklength for a G4 track object.

Definition at line 84 of file Geant4UserLimits.h.

◆ GetUserMinEkine()

virtual G4double dd4hep::sim::Geant4UserLimits::GetUserMinEkine ( const G4Track &  track)
inlineoverridevirtual

Access the kinetic energy cut for a G4 track object.

Definition at line 90 of file Geant4UserLimits.h.

◆ GetUserMinRange()

virtual G4double dd4hep::sim::Geant4UserLimits::GetUserMinRange ( const G4Track &  track)
inlineoverridevirtual

Access the range cut for a G4 track object.

Definition at line 93 of file Geant4UserLimits.h.

◆ SetMaxAllowedStep()

void Geant4UserLimits::SetMaxAllowedStep ( G4double  ustepMax)
overridevirtual

Setters may not be called!

Definition at line 112 of file Geant4UserLimits.cpp.

◆ SetUserMaxTime()

void Geant4UserLimits::SetUserMaxTime ( G4double  utimeMax)
overridevirtual

Definition at line 120 of file Geant4UserLimits.cpp.

◆ SetUserMaxTrackLength()

void Geant4UserLimits::SetUserMaxTrackLength ( G4double  utrakMax)
overridevirtual

Definition at line 116 of file Geant4UserLimits.cpp.

◆ SetUserMinEkine()

void Geant4UserLimits::SetUserMinEkine ( G4double  uekinMin)
overridevirtual

Definition at line 124 of file Geant4UserLimits.cpp.

◆ SetUserMinRange()

void Geant4UserLimits::SetUserMinRange ( G4double  urangMin)
overridevirtual

Definition at line 128 of file Geant4UserLimits.cpp.

◆ update()

void Geant4UserLimits::update ( LimitSet  limitset)
virtual

Update the object.

Set defaults

Overwrite with values if present:

Definition at line 86 of file Geant4UserLimits.cpp.

Member Data Documentation

◆ limits

LimitSet dd4hep::sim::Geant4UserLimits::limits

Handle to the limitset to be applied.

Definition at line 61 of file Geant4UserLimits.h.

◆ maxStepLength

Handler dd4hep::sim::Geant4UserLimits::maxStepLength

Handler map for MaxStepLength limit.

Definition at line 63 of file Geant4UserLimits.h.

◆ maxTime

Handler dd4hep::sim::Geant4UserLimits::maxTime

Handler map for MaxTime limit.

Definition at line 67 of file Geant4UserLimits.h.

◆ maxTrackLength

Handler dd4hep::sim::Geant4UserLimits::maxTrackLength

Handler map for MaxTrackLength limit.

Definition at line 65 of file Geant4UserLimits.h.

◆ minEKine

Handler dd4hep::sim::Geant4UserLimits::minEKine

Handler map for MinEKine limit.

Definition at line 69 of file Geant4UserLimits.h.

◆ minRange

Handler dd4hep::sim::Geant4UserLimits::minRange

Handler map for MinRange limit.

Definition at line 71 of file Geant4UserLimits.h.


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