Public Member Functions | Private Attributes | List of all members
EDepSim::FixedTimeGenerator Class Reference

#include <EDepSimFixedTimeGenerator.hh>

Inheritance diagram for EDepSim::FixedTimeGenerator:
EDepSim::VTimeGenerator

Public Member Functions

 FixedTimeGenerator (G4String name, double time)
 
virtual ~FixedTimeGenerator ()
 
double GetTime (const G4LorentzVector &vertex)
 Return the number of events to generate. More...
 
virtual bool ForceTime ()
 Flag if the time should be forced. More...
 
- Public Member Functions inherited from EDepSim::VTimeGenerator
 VTimeGenerator (const G4String &name)
 
virtual ~VTimeGenerator ()
 
G4String GetName () const
 Return the name of the generator. More...
 

Private Attributes

double fTime
 The number of events to generate. More...
 

Detailed Description

Definition at line 7 of file EDepSimFixedTimeGenerator.hh.

Constructor & Destructor Documentation

EDepSim::FixedTimeGenerator::FixedTimeGenerator ( G4String  name,
double  time 
)

Definition at line 4 of file EDepSimFixedTimeGenerator.cc.

static QCString name
Definition: declinfo.cpp:673
double fTime
The number of events to generate.
EDepSim::FixedTimeGenerator::~FixedTimeGenerator ( )
virtual

Definition at line 7 of file EDepSimFixedTimeGenerator.cc.

7 {}

Member Function Documentation

bool EDepSim::FixedTimeGenerator::ForceTime ( )
virtual

Flag if the time should be forced.

Implements EDepSim::VTimeGenerator.

Definition at line 13 of file EDepSimFixedTimeGenerator.cc.

13  {
14  return true;
15 }
double EDepSim::FixedTimeGenerator::GetTime ( const G4LorentzVector &  vertex)
virtual

Return the number of events to generate.

Implements EDepSim::VTimeGenerator.

Definition at line 9 of file EDepSimFixedTimeGenerator.cc.

9  {
10  return fTime;
11 }
double fTime
The number of events to generate.

Member Data Documentation

double EDepSim::FixedTimeGenerator::fTime
private

The number of events to generate.

Definition at line 20 of file EDepSimFixedTimeGenerator.hh.


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