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

List of all members.

Public Member Functions

def __init__
def setVolume
def tools

Public Attributes

 rockGamma
 timerator
 transformer

Detailed Description

Configure site rock gamma source

Definition at line 190 of file Helpers.py.


Constructor & Destructor Documentation

def GenTools::Helpers::RockGamma::__init__ (   self,
  name = "dayabay_rockGammas",
  volume = '/dd/Structure/Pool/db-ows',
  rockGamma = None,
  timerator = None,
  transformer = None,
  useGeometry = True 
)
Construct the configuration.  Custom configured tools can
be passed in or customization can be done after construction
using the data members:

.rockGamma
.positioner
.timerator
.transformer

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

00204                   :
00205 
00206         '''Construct the configuration.  Custom configured tools can
00207         be passed in or customization can be done after construction
00208         using the data members:
00209 
00210         .rockGamma
00211         .positioner
00212         .timerator
00213         .transformer
00214         
00215         They can be accessed for additional, direct configuration.
00216 
00217         If the Volume property for the positioner and transformer is
00218         not yet set, it will be set to the value of "volume"
00219         '''
00220 
00221         if rockGamma == None:
00222             rockGamma = GtRockGammaTool(name+"Generator",
00223                                         GammaSpectrum = RockGammaSpectrum.Spectrum(),
00224                                         GammaBinEdges = RockGammaSpectrum.BinEdges())
00225         #if positioner == None:
00226         #    positioner = GtPositionerTool(name+"Positioner",
00227         #                                  Mode = 'Relative',
00228         #                                  Position = [0,0,0])
00229         if timerator == None:
00230             timerator = GtTimeratorTool(name+"Timerator",
00231                                         Mode = 'Relative',
00232                                         Distribution = 'Uniform',
00233                                         LifeTime = 1.0/(500.0*units.hertz))
00234         if transformer == None:
00235             transformer = GtTransformTool(name+"Transformer")
00236         self.rockGamma = rockGamma
00237         #self.positioner = positioner
00238         self.timerator = timerator
00239         self.transformer = transformer
00240         self.setVolume( volume )
00241         return


Member Function Documentation

def GenTools::Helpers::RockGamma::setVolume (   self,
  volumename 
)

Definition at line 242 of file Helpers.py.

00243                                   :
00244         #self.positioner.Volume = volumename
00245         self.transformer.Volume = volumename
00246         return

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

Definition at line 247 of file Helpers.py.

00248                    :
00249         #return [self.ball,self.positioner,self.timerator,self.transformer]
00250         return [self.rockGamma,self.timerator,self.transformer]


Member Data Documentation

Definition at line 208 of file Helpers.py.

Definition at line 208 of file Helpers.py.

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