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

List of all members.

Public Member Functions

def __init__
def setVolume
def setPosition
def tools

Public Attributes

 geometryTool
 ball
 positioner
 timerator
 transformer

Detailed Description

Configure a calibration diffuser ball

Definition at line 97 of file Helpers.py.


Constructor & Destructor Documentation

def GenTools::Helpers::DiffuserBall::__init__ (   self,
  name = "deployedLed_ad1",
  volume = '/dd/Structure/AD/db-oil1',
  ball = None,
  positioner = 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:

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

00111                   :
00112 
00113         '''Construct the configuration.  Custom configured tools can
00114         be passed in or customization can be done after construction
00115         using the data members:
00116 
00117         .ball
00118         .positioner
00119         .timerator
00120         .transformer
00121         
00122         They can be accessed for additional, direct configuration.
00123 
00124         If the Volume property for the positioner and transformer is
00125         not yet set, it will be set to the value of "volume"
00126         '''
00127 
00128         if ball == None:
00129             ball = GtDiffuserBallTool(name+"ball",
00130                                       PhotonsPerEvent = 3500,
00131                                       WavelengthMode = 'Defined',
00132                                       Wavelength = 430.0*units.nanometer,
00133                                       WavelengthSpread = 5.0*units.nanometer,
00134                                       PdfWave = LED.PdfWave(),
00135                                       PdfEdgesWave = LED.PdfEdgesWave(),
00136                                       TimingMode = 'Defined',
00137                                       PdfTime = LED.PdfTime(),
00138                                       PdfEdgesTime = LED.PdfEdgesTime(),
00139                                       Radius = 0.9525*units.cm)
00140         if positioner == None:
00141             positioner = GtPositionerTool(name+"Positioner",
00142                                           Mode = 'Relative',
00143                                           Position = [0,0,0])
00144         if timerator == None:
00145             timerator = GtTimeratorTool(name+"Timerator",
00146                                         Mode = 'Relative',
00147                                         Distribution = 'Uniform',
00148                                         LifeTime = 1.0/(500.0*units.hertz))
00149         if transformer == None:
00150             transformer = GtTransformTool(name+"Transformer")
00151         self.geometryTool = None
00152         if useGeometry:
00153             from DetHelpers.DetHelpersConf import AutoPositionerTool
00154             self.geometryTool =  AutoPositionerTool("diffuserBallGeomPos",
00155                               PhysicalVolume = "pvDiffuserBall",
00156                               LogicalVolume = "/dd/Geometry/CalibrationSources/lvLedSourceAssy",
00157                               CoordinateDetElem = "/dd/Structure/AD/db-oil1",
00158                               Position = [0., 0., 0.],
00159                               Element = "db-ad1-deployedLed",
00160                               ElementPath = "/dd/Structure/CalibrationSources")
00161 
00162         self.ball = ball
00163         self.positioner = positioner
00164         self.timerator = timerator
00165         self.transformer = transformer
00166         if useGeometry:
00167             self.ball.GeomPosTool = self.geometryTool
00168         else:
00169             self.ball.GeomPosTool = ""
00170         self.setVolume( volume )
00171         return


Member Function Documentation

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

Definition at line 172 of file Helpers.py.

00173                                   :
00174         self.positioner.Volume = volumename
00175         self.transformer.Volume = volumename
00176         if self.geometryTool != None:
00177             self.geometryTool.CoordinateDetElem = volumename
00178         return

def GenTools::Helpers::DiffuserBall::setPosition (   self,
  position 
)

Definition at line 179 of file Helpers.py.

00180                                    :
00181         self.positioner.Position = position
00182         if self.geometryTool != None:
00183             self.geometryTool.Position = position

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

Definition at line 184 of file Helpers.py.

00185                    :
00186         return [self.ball,self.positioner,self.timerator,self.transformer]


Member Data Documentation

Definition at line 115 of file Helpers.py.

Definition at line 115 of file Helpers.py.

Definition at line 115 of file Helpers.py.

Definition at line 115 of file Helpers.py.

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