Public Member Functions | Private Attributes | List of all members
EDepSim::VCountGenerator Class Referenceabstract

#include <EDepSimVCountGenerator.hh>

Inheritance diagram for EDepSim::VCountGenerator:
EDepSim::FixedCountGenerator EDepSim::MeanCountGenerator

Public Member Functions

 VCountGenerator (const G4String &name, double intensity)
 
virtual ~VCountGenerator ()
 
virtual int GetCount ()=0
 
G4String GetName () const
 Return the name of the generator. More...
 
double GetIntensity () const
 

Private Attributes

G4String fName
 The name of the generator. More...
 
double fIntensity
 The intensity for the generator. More...
 

Detailed Description

Definition at line 18 of file EDepSimVCountGenerator.hh.

Constructor & Destructor Documentation

EDepSim::VCountGenerator::VCountGenerator ( const G4String &  name,
double  intensity 
)
inline

Definition at line 20 of file EDepSimVCountGenerator.hh.

21  : fName(name), fIntensity(intensity) {}
static QCString name
Definition: declinfo.cpp:673
G4String fName
The name of the generator.
double fIntensity
The intensity for the generator.
virtual EDepSim::VCountGenerator::~VCountGenerator ( )
inlinevirtual

Definition at line 22 of file EDepSimVCountGenerator.hh.

22 {}

Member Function Documentation

virtual int EDepSim::VCountGenerator::GetCount ( )
pure virtual

Return the number of events that should be generated. If the return value is less than or equal to zero, then no events are generated.

Implemented in EDepSim::FixedCountGenerator, and EDepSim::MeanCountGenerator.

double EDepSim::VCountGenerator::GetIntensity ( ) const
inline

Return the intensity for this generator. For a beam MC, this will be the number of protons per pulse.

Definition at line 33 of file EDepSimVCountGenerator.hh.

33 {return fIntensity;}
double fIntensity
The intensity for the generator.
G4String EDepSim::VCountGenerator::GetName ( void  ) const
inline

Return the name of the generator.

Definition at line 29 of file EDepSimVCountGenerator.hh.

29 {return fName;}
G4String fName
The name of the generator.

Member Data Documentation

double EDepSim::VCountGenerator::fIntensity
private

The intensity for the generator.

Definition at line 40 of file EDepSimVCountGenerator.hh.

G4String EDepSim::VCountGenerator::fName
private

The name of the generator.

Definition at line 37 of file EDepSimVCountGenerator.hh.


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