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

Flux Class Reference

The class holding the interface with FluxMgr, EventSource, and FluxSource of the flux package. Flux is used to get the actual information(energy, name, etc) about the current particle, and to generate new ones, through this interface. More...

#include <Flux.h>

Inheritance diagram for Flux:

IFlux List of all members.

Public Methods

 Flux (std::string name)
 ctor, select the name. More...

virtual ~Flux ()
virtual std::string name () const
 name of the flux. More...

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

virtual void generate ()
 generate a new entry trajectory. More...

virtual std::string particleName () const
 the particle generated. More...

virtual double energy () const
 its kinetic energy. More...

virtual HepPoint3D launchPoint () const
 starting point. More...

virtual HepVector3D launchDir () const
 direction. More...

virtual double time () const
 return the time. More...

virtual double rate () const
 rate ( /mm**2 /s). More...

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

double targetArea () const
 retrieve the area (a static, same for all fluxes). More...

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

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

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

Static Public Methods

void mgr (FluxMgr* )
 set the static pointer. More...


Private Attributes

EventSource* m_event
double m_time
FluxSource* m_flux

Static Private Attributes

FluxMgr* s_mgr = 0

Detailed Description

The class holding the interface with FluxMgr, EventSource, and FluxSource of the flux package. Flux is used to get the actual information(energy, name, etc) about the current particle, and to generate new ones, through this interface.

Definition at line 20 of file Flux.h.


Constructor & Destructor Documentation

Flux::Flux ( std::string name )
 

ctor, select the name.

Definition at line 13 of file Flux.cxx.

Flux::~Flux ( ) [virtual]
 

Definition at line 18 of file Flux.cxx.


Member Function Documentation

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

Reimplemented from IFlux.

Definition at line 109 of file Flux.cxx.

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

Reimplemented from IFlux.

Definition at line 104 of file Flux.cxx.

double Flux::energy ( ) const [virtual]
 

its kinetic energy.

Reimplemented from IFlux.

Definition at line 51 of file Flux.cxx.

std::string Flux::findSource ( ) const [virtual]
 

find which spectrum created the current particle.

Reimplemented from IFlux.

Definition at line 91 of file Flux.cxx.

void Flux::generate ( ) [virtual]
 

generate a new entry trajectory.

Reimplemented from IFlux.

Definition at line 39 of file Flux.cxx.

HepVector3D Flux::launchDir ( ) const [virtual]
 

direction.

Reimplemented from IFlux.

Definition at line 67 of file Flux.cxx.

HepPoint3D Flux::launchPoint ( ) const [virtual]
 

starting point.

Reimplemented from IFlux.

Definition at line 57 of file Flux.cxx.

void Flux::mgr ( FluxMgr * m ) [static]
 

set the static pointer.

Definition at line 25 of file Flux.cxx.

Referenced by FluxSvc::initialize().

std::string Flux::name ( ) const [virtual]
 

name of the flux.

Reimplemented from IFlux.

Definition at line 27 of file Flux.cxx.

int Flux::numSource ( ) const [virtual]
 

return a unique number correcponding to that spectrum.

Reimplemented from IFlux.

Definition at line 97 of file Flux.cxx.

std::string Flux::particleName ( ) const [virtual]
 

the particle generated.

Reimplemented from IFlux.

Definition at line 46 of file Flux.cxx.

double Flux::rate ( ) const [virtual]
 

rate ( /mm**2 /s).

Reimplemented from IFlux.

Definition at line 73 of file Flux.cxx.

void Flux::setTargetArea ( double area ) [virtual]
 

set the area of the target.

Reimplemented from IFlux.

Definition at line 79 of file Flux.cxx.

double Flux::targetArea ( ) const [virtual]
 

retrieve the area (a static, same for all fluxes).

Reimplemented from IFlux.

Definition at line 84 of file Flux.cxx.

double Flux::time ( ) const [virtual]
 

return the time.

Reimplemented from IFlux.

Definition at line 62 of file Flux.cxx.

std::string Flux::title ( ) const [virtual]
 

full title of the flux.

Reimplemented from IFlux.

Definition at line 33 of file Flux.cxx.


Member Data Documentation

EventSource * Flux::m_event [private]
 

Definition at line 78 of file Flux.h.

FluxSource * Flux::m_flux [private]
 

Definition at line 80 of file Flux.h.

double Flux::m_time [private]
 

Definition at line 79 of file Flux.h.

FluxMgr * Flux::s_mgr = 0 [static, private]
 

Definition at line 82 of file Flux.h.


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