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

List of all members.

Public Member Functions

def __init__
def tools

Public Attributes

 gun
 multivol
 timerator

Detailed Description

Definition at line 381 of file Helpers.py.


Constructor & Destructor Documentation

def GenTools::Helpers::ManyPmts::__init__ (   self,
  name = 'manypmts',
  site = 'db',
  adnum = 1,
  gun = None,
  multivol = None,
  timerator = None 
)

Definition at line 382 of file Helpers.py.

00388                                   : # A GtTimeratorTool
00389 
00390         if gun == None:         # use poor man's radioactivity
00391             gun = GtGunGenTool(name + '_gun',
00392                                ParticlesPerEvent = 1,
00393                                ParticleName = 'gamma',
00394                                Momentum = 3*units.MeV,
00395                                MomentumMode = 'Fixed',
00396                                DirectionMode = 'Uniform')
00397             pass
00398 
00399         if multivol == None:
00400             
00401             pmtpat = '/dd/Structure/AdPmtStructure/%s-ad/%s-ad%d-ring%%d-column%%d' % (site,site,adnum)
00402             vpmap = {}
00403             for iring in range(8):
00404                 iring += 1
00405                 for icol in range(24):
00406                     icol += 1
00407                     vpmap[pmtpat % (iring,icol)] = 1.0
00408                     continue
00409                 continue
00410 
00411             multivol = GtMultiVolumePosTool(name + '_multivol',
00412                                             VolumeProbabilityMap = vpmap)
00413             #multivol.OutputLevel = 2
00414             pass
00415 
00416         if timerator == None:
00417             timerator = GtTimeratorTool(name+"Timerator",
00418                                         LifeTime = 1*units.second)
00419             pass
00420         self.gun = gun
00421         self.multivol = multivol
00422         self.timerator = timerator
00423 

Member Function Documentation

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

Definition at line 424 of file Helpers.py.

00425                    :
00426         return [self.gun, self.multivol, self.timerator]


Member Data Documentation

Definition at line 382 of file Helpers.py.

Definition at line 382 of file Helpers.py.

Definition at line 382 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