Geant4 9.6.0
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)
 
 ~G4WLSTimeGeneratorProfileExponential ()
 
G4double GenerateTime (const G4double time_constant)
 
G4double GenerateTime (const G4MaterialPropertiesTable *)
 
- 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)

◆ ~G4WLSTimeGeneratorProfileExponential()

G4WLSTimeGeneratorProfileExponential::~G4WLSTimeGeneratorProfileExponential ( )

Definition at line 57 of file G4WLSTimeGeneratorProfileExponential.cc.

58{;}

Member Function Documentation

◆ GenerateTime() [1/2]

G4double G4WLSTimeGeneratorProfileExponential::GenerateTime ( const G4double  time_constant)
virtual

Implements G4VWLSTimeGeneratorProfile.

Definition at line 62 of file G4WLSTimeGeneratorProfileExponential.cc.

63{
64 G4double time = 0;
65 time = -std::log(G4UniformRand())*time_constant;
66 return time;
67}
double G4double
Definition: G4Types.hh:64
#define G4UniformRand()
Definition: Randomize.hh:53

◆ GenerateTime() [2/2]

G4double G4WLSTimeGeneratorProfileExponential::GenerateTime ( const G4MaterialPropertiesTable )
virtual

Implements G4VWLSTimeGeneratorProfile.

Definition at line 69 of file G4WLSTimeGeneratorProfileExponential.cc.

69 {
70 // This method is not currently in use
71 return 0;
72}

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