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

List of all members.

Public Member Functions

def __init__
def tools

Public Attributes

 gun
 multivol
 timerator

Detailed Description

Helper to place radioactive decay vertices in the "RadSlab" volumes

Definition at line 321 of file Helpers.py.


Constructor & Destructor Documentation

def GenTools::Helpers::RadSlab::__init__ (   self,
  name = 'radslab',
  site = 'db',
  gun = None,
  multivol = None,
  timerator = None 
)

Definition at line 326 of file Helpers.py.

00331                                   : # A GtTimeratorTool
00332 
00333         if gun == None:         # use poor man's radioactivity
00334             gun = GtGunGenTool(name + '_gun',
00335                                ParticlesPerEvent = 1,
00336                                ParticleName = 'gamma',
00337                                Momentum = 3*units.MeV,
00338                                MomentumMode = 'Fixed',
00339                                DirectionMode = 'Uniform')
00340             pass
00341 
00342         if multivol == None:
00343             # hard code nominal pool dimensions
00344             adwall = 2.5+1.5+1.0                     # dist from AD center to pool wall
00345             bevel = adwall * 2.0 * (sqrt(2.0) - 1.0) # length of the beveled wall
00346             less = adwall * 2.0* (2.0 - sqrt(2.0))   # removal from a wall due to bevel
00347 
00348             hwall = 10              # height
00349             lwall = 16              # long wall
00350             swall = 10              # short wall
00351             if site == 'far': swall = 16
00352         
00353             # weight by volume (surface area)
00354             weights = [swall-less,bevel,lwall-less,bevel,swall-less,bevel,lwall-less,bevel]
00355             weights = map(lambda x: hwall*x,weights)
00356             weights.append(lwall*swall - 0.5*less*less) # bottom
00357 
00358             vpmap = {}
00359             for iwall,weight in enumerate(weights):
00360                 vpmap['/dd/Structure/RadSlabs/%s-radslab%d'%(site,iwall+1)] = weight
00361                 continue
00362             multivol = GtMultiVolumePosTool(name + '_multivol',
00363                                             VolumeProbabilityMap = vpmap)
00364             #multivol.OutputLevel = 2
00365             pass
00366 
00367         if timerator == None:
00368             timerator = GtTimeratorTool(name+"Timerator",
00369                                         LifeTime = 1*units.second)
00370             pass
00371         self.gun = gun
00372         self.multivol = multivol
00373         self.timerator = timerator
00374 

Member Function Documentation

def GenTools::Helpers::RadSlab::tools (   self)

Definition at line 375 of file Helpers.py.

00376                    :
00377         return [self.gun, self.multivol, self.timerator]


Member Data Documentation

Definition at line 326 of file Helpers.py.

Definition at line 326 of file Helpers.py.

Definition at line 326 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:18:51 for GenTools by doxygen 1.7.4