Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4WLSTimeGeneratorProfileExponential Class Reference

#include <G4WLSTimeGeneratorProfileExponential.hh>

+ Inheritance diagram for G4WLSTimeGeneratorProfileExponential:

Public Member Functions

 G4WLSTimeGeneratorProfileExponential (const G4String &name)
 
virtual ~G4WLSTimeGeneratorProfileExponential ()
 
virtual G4double GenerateTime (const G4double time_constant) override
 
virtual G4double GenerateTime (const G4MaterialPropertiesTable *) override
 
- Public Member Functions inherited from G4VWLSTimeGeneratorProfile
 G4VWLSTimeGeneratorProfile (const G4String &name)
 
virtual ~G4VWLSTimeGeneratorProfile ()
 
virtual G4double GenerateTime (const G4double time_constant)=0
 
virtual G4double GenerateTime (const G4MaterialPropertiesTable *)=0
 

Detailed Description

Definition at line 51 of file G4WLSTimeGeneratorProfileExponential.hh.

Constructor & Destructor Documentation

◆ G4WLSTimeGeneratorProfileExponential()

G4WLSTimeGeneratorProfileExponential::G4WLSTimeGeneratorProfileExponential ( const G4String name)
explicit

◆ ~G4WLSTimeGeneratorProfileExponential()

G4WLSTimeGeneratorProfileExponential::~G4WLSTimeGeneratorProfileExponential ( )
virtualdefault

Member Function Documentation

◆ GenerateTime() [1/2]

G4double G4WLSTimeGeneratorProfileExponential::GenerateTime ( const G4double  time_constant)
overridevirtual

Implements G4VWLSTimeGeneratorProfile.

Definition at line 64 of file G4WLSTimeGeneratorProfileExponential.cc.

66{
67 return -std::log(G4UniformRand()) * time_constant;
68}
#define G4UniformRand()
Definition: Randomize.hh:52

◆ GenerateTime() [2/2]

G4double G4WLSTimeGeneratorProfileExponential::GenerateTime ( const G4MaterialPropertiesTable )
overridevirtual

Implements G4VWLSTimeGeneratorProfile.

Definition at line 70 of file G4WLSTimeGeneratorProfileExponential.cc.

72{
73 // This method is not currently in use
74 return 0.;
75}

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