Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4WLSTimeGeneratorProfileExponential Class Reference

#include <G4WLSTimeGeneratorProfileExponential.hh>

Inheritance diagram for G4WLSTimeGeneratorProfileExponential:
Collaboration 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 ()
 

Detailed Description

Definition at line 51 of file G4WLSTimeGeneratorProfileExponential.hh.

Constructor & Destructor Documentation

G4WLSTimeGeneratorProfileExponential::G4WLSTimeGeneratorProfileExponential ( const G4String name)

Definition at line 52 of file G4WLSTimeGeneratorProfileExponential.cc.

53 {;}
G4VWLSTimeGeneratorProfile(const G4String &name)
G4WLSTimeGeneratorProfileExponential::~G4WLSTimeGeneratorProfileExponential ( )

Definition at line 57 of file G4WLSTimeGeneratorProfileExponential.cc.

58 {;}

Member Function Documentation

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 }
#define G4UniformRand()
Definition: Randomize.hh:97
double G4double
Definition: G4Types.hh:76
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: