G4WLSTimeGeneratorProfileExponential Class Reference

#include <G4WLSTimeGeneratorProfileExponential.hh>

Inheritance diagram for G4WLSTimeGeneratorProfileExponential:

G4VWLSTimeGeneratorProfile

Public Member Functions

 G4WLSTimeGeneratorProfileExponential (const G4String &name)
 ~G4WLSTimeGeneratorProfileExponential ()
G4double GenerateTime (const G4double time_constant)
G4double GenerateTime (const G4MaterialPropertiesTable *)

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.

00052                                                                                               :G4VWLSTimeGeneratorProfile(name)
00053 {;}

G4WLSTimeGeneratorProfileExponential::~G4WLSTimeGeneratorProfileExponential (  ) 

Definition at line 57 of file G4WLSTimeGeneratorProfileExponential.cc.

00058 {;}


Member Function Documentation

G4double G4WLSTimeGeneratorProfileExponential::GenerateTime ( const G4MaterialPropertiesTable  )  [virtual]

Implements G4VWLSTimeGeneratorProfile.

Definition at line 69 of file G4WLSTimeGeneratorProfileExponential.cc.

00069                                                                                            {
00070   // This method is not currently in use
00071   return 0;
00072 }

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:59 2013 for Geant4 by  doxygen 1.4.7