#include <Flux.h>
Inheritance diagram for Flux::

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 void | pass (double t) |
| pass a specific amount of time. More... | |
| double | gpsTime () const |
| Get the time as held by GPS. 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 (std::string name, const ISpectrumFactory *factory) |
| virtual Rotation | CELTransform (double time) const |
| get the transformation matrix due to orientation of the Galaxy. More... | |
| virtual Rotation | orientTransform (double time) const |
| get the transformation matrix due to orientation of the spacecraft. More... | |
| HepRotation | Flux::transformGlastToGalactic (double time) const |
| this transforms glast-local (cartesian) vectors into galactic (cartesian) vectors. More... | |
| EventSource * | currentEvent () |
| FluxSource * | currentFlux () |
| void | writeSourceCharacteristic (std::ostream &out) |
| write the characteristics of the current source distribution to a stream. More... | |
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 |
Definition at line 26 of file Flux.h.
|
|
ctor, select the name.
Definition at line 12 of file Flux.cxx. References m_event, name(), s_mgr, and FluxMgr::source().
|
|
|
Definition at line 18 of file Flux.cxx. References m_flux.
00019 {
00020 delete m_flux;
00021 }
|
|
||||||||||||
|
Reimplemented from IFlux. Definition at line 128 of file Flux.cxx. References SpectrumFactoryTable::addFactory(), SpectrumFactoryTable::instance(), and name().
00128 {
00129 SpectrumFactoryTable::instance()->addFactory(name,factory);
00130 }
|
|
|
get the transformation matrix due to orientation of the Galaxy.
Reimplemented from IFlux. Definition at line 133 of file Flux.cxx.
00133 {
00134 return s_mgr->CELTransform(time);
00135 }
|
|
|
Reimplemented from IFlux. Definition at line 98 of file Flux.h. References m_event.
00098 {return m_event;}
|
|
|
Reimplemented from IFlux. Definition at line 100 of file Flux.h. References m_flux.
00100 {return m_flux;}
|
|
|
its kinetic energy.
Reimplemented from IFlux. Definition at line 57 of file Flux.cxx.
|
|
|
find which spectrum created the current particle.
Reimplemented from IFlux. Definition at line 110 of file Flux.cxx.
00111 {
00112 return m_event->findSource();
00113 }
|
|
|
this transforms glast-local (cartesian) vectors into galactic (cartesian) vectors.
|
|
|
generate a new entry trajectory.
Reimplemented from IFlux. Definition at line 39 of file Flux.cxx. References EventSource::event(), EventSource::interval(), m_event, m_flux, m_time, pass(), and time().
00040 {
00041 // Purpose and Method: generate a new entry trajectory, set FluxSource, increment local time
00042 // Inputs - none
00043 // Outputs - none
00044
00045 m_flux = m_event->event(time());
00046 double timepass = m_event->interval(time());
00047 m_time+= timepass;
00048 pass(timepass);
00049 }
|
|
|
Get the time as held by GPS.
Reimplemented from IFlux. Definition at line 80 of file Flux.cxx. References s_mgr, and FluxMgr::time().
|
|
|
direction.
Reimplemented from IFlux. Definition at line 86 of file Flux.cxx.
|
|
|
starting point.
Reimplemented from IFlux. Definition at line 63 of file Flux.cxx.
00064 {
00065 return m_flux->launchPoint();
00066 }
|
|
|
set the static pointer.
Definition at line 25 of file Flux.cxx. References s_mgr. Referenced by FluxSvc::initialize().
00025 { s_mgr=m;}
|
|
|
name of the flux.
Reimplemented from IFlux. Definition at line 27 of file Flux.cxx. References m_flux, and EventSource::name(). Referenced by addFactory(), and Flux().
|
|
|
return a unique number correcponding to that spectrum.
Reimplemented from IFlux. Definition at line 116 of file Flux.cxx.
|
|
|
get the transformation matrix due to orientation of the spacecraft.
Reimplemented from IFlux. Definition at line 137 of file Flux.cxx.
00137 {
00138 return s_mgr->orientTransform(time);
00139 }
|
|
|
the particle generated.
Reimplemented from IFlux. Definition at line 52 of file Flux.cxx.
|
|
|
pass a specific amount of time.
Reimplemented from IFlux. Definition at line 75 of file Flux.cxx. References FluxMgr::pass(), and s_mgr. Referenced by generate().
|
|
|
rate ( /mm**2 /s).
Reimplemented from IFlux. Definition at line 92 of file Flux.cxx.
|
|
|
set the area of the target.
Reimplemented from IFlux. Definition at line 98 of file Flux.cxx. References m_event, and EventSource::totalArea().
|
|
|
retrieve the area (a static, same for all fluxes).
Reimplemented from IFlux. Definition at line 103 of file Flux.cxx.
|
|
|
return the time.
Reimplemented from IFlux. Definition at line 68 of file Flux.cxx. Referenced by generate().
00069 {
00070 return m_time ;
00071 }
|
|
|
full title of the flux.
Reimplemented from IFlux. Definition at line 33 of file Flux.cxx.
|
|
|
write the characteristics of the current source distribution to a stream.
Reimplemented from IFlux. Definition at line 146 of file Flux.cxx. References m_event, and EventSource::writeSourceCharacteristic().
00146 {
00147 m_event->writeSourceCharacteristic(out);
00148 }
|
|
|
Definition at line 107 of file Flux.h. Referenced by currentEvent(), Flux(), generate(), setTargetArea(), and writeSourceCharacteristic(). |
|
|
Definition at line 109 of file Flux.h. Referenced by currentFlux(), generate(), name(), and ~Flux(). |
|
|
Definition at line 108 of file Flux.h. Referenced by generate(). |
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001