#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 *) |
Definition at line 51 of file G4WLSTimeGeneratorProfileExponential.hh.
G4WLSTimeGeneratorProfileExponential::G4WLSTimeGeneratorProfileExponential | ( | const G4String & | name | ) |
Definition at line 52 of file G4WLSTimeGeneratorProfileExponential.cc.
00052 :G4VWLSTimeGeneratorProfile(name) 00053 {;}
G4WLSTimeGeneratorProfileExponential::~G4WLSTimeGeneratorProfileExponential | ( | ) |
G4double G4WLSTimeGeneratorProfileExponential::GenerateTime | ( | const G4MaterialPropertiesTable * | ) | [virtual] |
Implements G4VWLSTimeGeneratorProfile.
Definition at line 69 of file G4WLSTimeGeneratorProfileExponential.cc.
G4double G4WLSTimeGeneratorProfileExponential::GenerateTime | ( | const G4double | time_constant | ) | [virtual] |
Implements G4VWLSTimeGeneratorProfile.
Definition at line 62 of file G4WLSTimeGeneratorProfileExponential.cc.
References G4UniformRand.
00063 { 00064 G4double time = 0; 00065 time = -std::log(G4UniformRand())*time_constant; 00066 return time; 00067 }