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

Helper class to one limit type. More...

#include <Geant4UserLimits.h>

Public Member Functions

 Handler ()=default
 Default constructor. More...
 
void set (const std::string &particles, double val)
 Set the handler value(s) More...
 
double value (const G4Track &track) const
 Access value according to track. More...
 

Public Attributes

double defaultValue = 0.0
 Default value (either from base class or value if Limit.particles='*') More...
 
std::map< const G4ParticleDefinition *, double > particleLimits
 Handler particle ids for the limit (pdgID) More...
 

Detailed Description

Helper class to one limit type.

Author
M.Frank
Version
1.0

Definition at line 46 of file Geant4UserLimits.h.

Constructor & Destructor Documentation

◆ Handler()

dd4hep::sim::Geant4UserLimits::Handler::Handler ( )
default

Default constructor.

Member Function Documentation

◆ set()

void Geant4UserLimits::Handler::set ( const std::string &  particles,
double  val 
)

Set the handler value(s)

Definition at line 61 of file Geant4UserLimits.cpp.

◆ value()

double Geant4UserLimits::Handler::value ( const G4Track &  track) const

Access value according to track.

Definition at line 41 of file Geant4UserLimits.cpp.

Member Data Documentation

◆ defaultValue

double dd4hep::sim::Geant4UserLimits::Handler::defaultValue = 0.0

Default value (either from base class or value if Limit.particles='*')

Definition at line 49 of file Geant4UserLimits.h.

◆ particleLimits

std::map<const G4ParticleDefinition*, double> dd4hep::sim::Geant4UserLimits::Handler::particleLimits

Handler particle ids for the limit (pdgID)

Definition at line 51 of file Geant4UserLimits.h.


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