|
EGS Brachy
An egs++ user code for rapid brachytherapy calculations
|
A class for scoring the fluence of particles enter a voxel of the scoring phantom geometry. More...
#include <spec_scoring.h>


Public Member Functions | |
| FluenceSpectrumInVoxel (EGS_Input *input, EGS_BaseSource *src, GeomInfo *ginfo, Publisher *publisher) | |
| virtual void | score (EB_Message message, void *data=0) |
Public Member Functions inherited from BaseSpectrumScorer | |
| BaseSpectrumScorer (EGS_Input *input, EGS_BaseSource *src, GeomInfo *ginfo, Publisher *publisher) | |
| virtual | ~BaseSpectrumScorer () |
| EGS_Float | getBinWidth () const |
| double | getParticleEnergy (const EGS_Particle *p) const |
| virtual void | update (EB_Message message, void *data=0) |
Receives messages from application. This method handles NEW_HISTORY messages but delegates all other messages to the score methods of the derived classes. | |
| void | setEffectiveHistories (EGS_Float effective_histories) |
| int | outputResults (string root_name) |
| , write the scored spectrum to file with filename. Returns 0 on success, all other values indicate a failure | |
| virtual string | getInfo () const |
| bool | isValid () const |
| int | outputData (ostream *ofile) |
| int | readData (istream *ifile) |
| void | resetCounter () |
| int | addState (istream &data) |
Public Member Functions inherited from Subscriber | |
| virtual | ~Subscriber () |
Private Member Functions | |
| void | getResult (int bin, EGS_Float &r, EGS_Float &dr) |
| set r & dr to result/uncertainty for given bin. Normalization can be done in this routine | |
| string | getTitle () const |
| string | getYAxisLabel () const |
| void | outputTotal () |
| string | getFileExtension () const |
Private Attributes | |
| EGS_BaseGeometry * | geometry |
| EGS_Float | region_volume |
| int | local_scoring_region |
| int | scoring_region |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseSpectrumScorer | |
| static BaseSpectrumScorer * | getSpectrumScorer (EGS_Input *inp, EGS_BaseSource *source, GeomInfo *ginfo, Publisher *publisher) |
| factory method for creating one of the derived spectrum scoring classes | |
Public Attributes inherited from BaseSpectrumScorer | |
| int | nbins |
| number of bins to score spectrum in | |
| EGS_ScoringArray * | bins |
| spectrum scoring array | |
| EGS_Float | e_min |
| minimum spectrum energy to score | |
| EGS_Float | e_max |
| maximum spectrum energy to score | |
Static Public Attributes inherited from BaseSpectrumScorer | |
| static const int | DEFAULT_NBINS = 100 |
Protected Member Functions inherited from BaseSpectrumScorer | |
| string | outputCSV (string filename) |
| output results to csv file | |
| string | outputXMGR (string filename) |
| output results to xmgrace file | |
| string | outputEGSnrc (string filename) |
| output results to EGSnrc tabulated spectrum format | |
| int | getBin (EGS_Float E) const |
| get index of bin that that E falls in | |
| virtual string | getSubTitle () const |
| virtual string | getXAxisLabel () const |
| string | getFileName (string root) const |
| string | getParticleName () const |
| Return name of particle we are scoring. | |
Protected Attributes inherited from BaseSpectrumScorer | |
| string | format |
| int | egsnrc_mode |
| int | particle_type |
| EGS_I64 | cur_history |
| EGS_I64 | eff_history |
| EGS_Float | bin_width |
| EGS_Float | total_scored |
| EGS_BaseSource * | source |
| bool | valid |
| string | fextension |
A class for scoring the fluence of particles enter a voxel of the scoring phantom geometry.
Note: this currently only works if there are no other geometries overlapping the scoring region. If there is, you will get incorrect results!
Sample input:
:start spectrum scoring:
type = energy fluence in region
particle type = photon
minimum energy = 0.001
maximum energy = 1.00
number of bins = 1000
output format = csv
geometry = your_phantom_geom_name
scoring region = 1 # which region of `your_phantom_geom` to score in (defaults to 0)
:stop spectrum scoring:
Definition at line 530 of file spec_scoring.h.
|
inline |
Definition at line 560 of file spec_scoring.h.
|
inlineprivatevirtual |
Reimplemented from BaseSpectrumScorer.
Definition at line 553 of file spec_scoring.h.
|
privatevirtual |
set r & dr to result/uncertainty for given bin. Normalization can be done in this routine
Reimplemented from BaseSpectrumScorer.
Definition at line 530 of file spec_scoring.cpp.
|
inlineprivatevirtual |
Reimplemented from BaseSpectrumScorer.
Definition at line 540 of file spec_scoring.h.
|
inlineprivatevirtual |
Reimplemented from BaseSpectrumScorer.
Definition at line 547 of file spec_scoring.h.
|
privatevirtual |
Reimplemented from BaseSpectrumScorer.
Definition at line 540 of file spec_scoring.cpp.
|
virtual |
override in derived classes to do scoring
Implements BaseSpectrumScorer.
Definition at line 512 of file spec_scoring.cpp.
|
private |
Definition at line 532 of file spec_scoring.h.
|
private |
Definition at line 534 of file spec_scoring.h.
|
private |
Definition at line 533 of file spec_scoring.h.
|
private |
Definition at line 535 of file spec_scoring.h.