Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IFlux Class Reference

Abstract interface for an object that generates particles, Flux. More...

#include <IFlux.h>

Inheritance diagram for IFlux:

Flux List of all members.

Public Methods

 IFlux (std::string name="")
virtual ~IFlux ()
virtual std::string name () const = 0
 name of the flux.

virtual std::string title () const = 0
 full title of the flux.

virtual void generate () = 0
 generate a new entry trajectory.

virtual std::string particleName () const = 0
 the particle name of the last particle generated.

virtual double energy () const = 0
 its kinetic energy.

virtual HepPoint3D launchPoint () const = 0
 starting point.

virtual HepVector3D launchDir () const = 0
 direction.

virtual double time () const = 0
 time (s) (absolute or elapsed??).

virtual double rate () const = 0
 return rate ( /mm**2 /s).

virtual void setTargetArea ( double area) = 0
 set the area of the target.

virtual double targetArea () const = 0
 get the target area.

virtual std::string findSource () const = 0
 find which spectrum created the current particle.

virtual int numSource () const = 0
 return a unique number correcponding to that spectrum.

virtual void addFactory ( const IFactory* factory ) = 0
virtual void addFactory (std::string name, const ISpectrumFactory* factory ) = 0

Detailed Description

Abstract interface for an object that generates particles, Flux.

Definition at line 18 of file IFlux.h.


Constructor & Destructor Documentation

IFlux::IFlux ( std::string name = "" ) [inline]
 

Definition at line 21 of file IFlux.h.

IFlux::~IFlux ( ) [inline, virtual]
 

Definition at line 22 of file IFlux.h.


Member Function Documentation

virtual void IFlux::addFactory ( std::string name,
const ISpectrumFactory * factory ) [pure virtual]
 

Reimplemented in Flux.

virtual void IFlux::addFactory ( const IFactory * factory ) [pure virtual]
 

Reimplemented in Flux.

double IFlux::energy ( ) const [pure virtual]
 

its kinetic energy.

Reimplemented in Flux.

Referenced by FluxTestAlg::execute().

std::string IFlux::findSource ( ) const [pure virtual]
 

find which spectrum created the current particle.

Reimplemented in Flux.

void IFlux::generate ( ) [pure virtual]
 

generate a new entry trajectory.

Reimplemented in Flux.

Referenced by FluxTestAlg::execute().

HepVector3D IFlux::launchDir ( ) const [pure virtual]
 

direction.

Reimplemented in Flux.

Referenced by FluxTestAlg::execute().

HepPoint3D IFlux::launchPoint ( ) const [pure virtual]
 

starting point.

Reimplemented in Flux.

Referenced by FluxTestAlg::execute().

std::string IFlux::name ( ) const [pure virtual]
 

name of the flux.

Reimplemented in Flux.

int IFlux::numSource ( ) const [pure virtual]
 

return a unique number correcponding to that spectrum.

Reimplemented in Flux.

std::string IFlux::particleName ( ) const [pure virtual]
 

the particle name of the last particle generated.

Reimplemented in Flux.

double IFlux::rate ( ) const [pure virtual]
 

return rate ( /mm**2 /s).

Reimplemented in Flux.

Referenced by FluxTestAlg::initialize().

void IFlux::setTargetArea ( double area ) [pure virtual]
 

set the area of the target.

Reimplemented in Flux.

double IFlux::targetArea ( ) const [pure virtual]
 

get the target area.

Reimplemented in Flux.

Referenced by FluxTestAlg::initialize().

double IFlux::time ( ) const [pure virtual]
 

time (s) (absolute or elapsed??).

Reimplemented in Flux.

std::string IFlux::title ( ) const [pure virtual]
 

full title of the flux.

Reimplemented in Flux.

Referenced by FluxTestAlg::initialize().


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:20:11 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000