Public Member Functions | |
def | __init__ |
def | setVolume |
def | tools |
A GenTools "helper" module to configure for a radioactive decay chain.
Definition at line 8 of file Helpers.py.
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 13 of file Helpers.py.
00022 : 00023 ''' 00024 Construct a Decay helper. 00025 00026 First argument is the name of this Decay and must be specified for mutiple particle event simulation. 00027 00028 Coustom configured tools can 00029 can be done after construction 00030 using the data members: 00031 00032 .decay 00033 .positioner 00034 .transformer 00035 00036 The GtGenerator alg is available from the .generatorAlg member. 00037 00038 They can be accessed for additional, direct configuration. 00039 00040 If the Volume property for the positioner and transformer is 00041 not yet set, it will be set to the value of "volume" 00042 00043 ''' 00044 00045 if decay == None: 00046 self.decay=GtDecayerator(name, 00047 ParentNuclide = "U238", 00048 ParentAbundance = 5e16, 00049 SecularEquilibrium = True, 00050 CorrelationTime = 1*units.second) 00051 00052 if positioner == None: 00053 positioner = GtPositionerTool(name+"Positioner", 00054 Strategy = 'FullVolume', 00055 Mode = 'Uniform') 00056 00057 positioner.Volume = volume 00058 00059 if transformer == None: 00060 transformer = GtTransformTool(name+"Transformer") 00061 00062 transformer.Volume = volume 00063 00064 self.positioner =positioner 00065 self.transformer = transformer
def GenDecay::Helpers::Decay::setVolume | ( | self, | ||
volumename | ||||
) |
def GenDecay::Helpers::Decay::tools | ( | self | ) |