/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
GenDecay::Helpers::Decay Class Reference

List of all members.

Public Member Functions

def __init__
def setVolume
def tools

Public Attributes

 decay
 positioner
 transformer

Detailed Description

A GenTools "helper" module to configure for a radioactive decay
chain.  

Definition at line 8 of file Helpers.py.


Constructor & Destructor Documentation

def GenDecay::Helpers::Decay::__init__ (   self,
  name = 'decay',
  volume = '/dd/Structure/AD/far-oil1',
  decay = None,
  positioner = None,
  transformer = None 
)
Construct a Decay helper.

First argument is the name of this Decay and must be specified for mutiple particle event simulation.

Coustom configured tools can
 can be done after construction
using the data members:

.decay
.positioner
.transformer

The GtGenerator alg is available from the .generatorAlg member.

They can be accessed for additional, direct configuration.

If the Volume property for the positioner and transformer is
not yet set, it will be set to the value of "volume"

Definition at line 16 of file Helpers.py.

00023                   :
00024         '''
00025         Construct a Decay helper.
00026 
00027         First argument is the name of this Decay and must be specified for mutiple particle event simulation.
00028 
00029         Coustom configured tools can
00030          can be done after construction
00031         using the data members:
00032 
00033         .decay
00034         .positioner
00035         .transformer
00036         
00037         The GtGenerator alg is available from the .generatorAlg member.
00038 
00039         They can be accessed for additional, direct configuration.
00040 
00041         If the Volume property for the positioner and transformer is
00042         not yet set, it will be set to the value of "volume"
00043 
00044         '''
00045         
00046         if decay == None:
00047             self.decay = GtDecayerator(name,
00048                                        ParentNuclide = "U238",
00049                                        ParentAbundance = 5e16, 
00050                                        SecularEquilibrium = True,
00051                                        CorrelationTime = 1*units.second)
00052             #self.decay.OutputLevel = 2
00053                   
00054         if positioner == None:
00055             positioner = GtPositionerTool(name+"Positioner",
00056                                          Strategy = 'FullVolume',
00057                                          Mode = 'Uniform')
00058 
00059         positioner.Volume = volume
00060         
00061         if transformer == None:
00062             transformer = GtTransformTool(name+"Transformer")
00063 
00064         transformer.Volume = volume 
00065 
00066         self.positioner = positioner
00067         self.transformer = transformer
00068 
00069         return


Member Function Documentation

def GenDecay::Helpers::Decay::setVolume (   self,
  volumename 
)

Definition at line 70 of file Helpers.py.

00071                                   :
00072         self.positioner.Volume = volumename
00073         self.transformer.Volume = volumename
00074         return

def GenDecay::Helpers::Decay::tools (   self)

Definition at line 75 of file Helpers.py.

00076                    :
00077         return [self.decay,self.positioner,self.transformer]


Member Data Documentation

Definition at line 36 of file Helpers.py.

Definition at line 36 of file Helpers.py.

Definition at line 36 of file Helpers.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:21:06 for GenDecay by doxygen 1.7.4