Geant4 11.2.2
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 ()
 

Detailed Description

Definition at line 51 of file G4WLSTimeGeneratorProfileExponential.hh.

Constructor & Destructor Documentation

◆ G4WLSTimeGeneratorProfileExponential()

G4WLSTimeGeneratorProfileExponential::G4WLSTimeGeneratorProfileExponential ( const G4String & name)
explicit

Definition at line 52 of file G4WLSTimeGeneratorProfileExponential.cc.

55{}
G4VWLSTimeGeneratorProfile(const G4String &name)

◆ ~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: