/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
Helpers::Decay Class Reference

List of all members.

Public Member Functions

def __init__
def setVolume
def tools

Public Attributes

 decay
 positioner
 timerator
 transformer

Detailed Description

A "helper" module for inverse beta decay

Definition at line 9 of file Helpers.py.


Constructor & Destructor Documentation

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

Coustom configured tools can
be passed in or customization can be done after construction
using the data members:

.decay
.positioner
.timerator
.transformer

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 15 of file Helpers.py.

00023                   :
00024         '''
00025         Construct a Decay helper.
00026 
00027         Coustom configured tools can
00028         be passed in or customization can be done after construction
00029         using the data members:
00030 
00031         .decay
00032         .positioner
00033         .timerator
00034         .transformer
00035         
00036         If the Volume property for the positioner and transformer is
00037         not yet set, it will be set to the value of "volume"
00038         '''
00039         if decay == None:
00040             decay = GtInverseBeta(name,
00041                                   NeutrinoAngle = 0)
00042         if positioner == None:
00043             positioner = GtPositionerTool(name+"Positioner",
00044                                           Strategy = 'FullVolume',
00045                                           Mode = 'Uniform')
00046         if timerator == None:
00047             timerator = GtTimeratorTool(name+"Timerator",
00048                                         LifeTime = 1.*units.second)
00049         if transformer == None:
00050             transformer = GtTransformTool(name+"Transformer")
00051 
00052         try: 
00053             v = positioner.Volume
00054         except AttributeError:
00055             positioner.Volume = volume
00056             
00057         try:
00058             v = transformer.Volume
00059         except AttributeError:
00060             transformer.Volume = volume
00061 
00062         self.decay = decay
00063         self.positioner = positioner
00064         self.timerator = timerator
00065         self.transformer = transformer
00066         return


Member Function Documentation

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

Definition at line 67 of file Helpers.py.

00068                                   :
00069         self.positioner.Volume = volumename
00070         self.transformer.Volume = volumename
00071         return

def Helpers::Decay::tools (   self)

Definition at line 72 of file Helpers.py.

00073                    :
00074         return [self.decay,self.positioner,self.timerator,self.transformer]


Member Data Documentation

Definition at line 29 of file Helpers.py.

Definition at line 29 of file Helpers.py.

Definition at line 29 of file Helpers.py.

Definition at line 29 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:22:51 for InvBetaDecay by doxygen 1.7.4