/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
Stage::Th::Thorium Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

   configure Thorium generator

Definition at line 3 of file Th.py.


Constructor & Destructor Documentation

def Stage::Th::Thorium::__init__ (   self,
  stage = 'null',
  name = 'Thorium',
  volume = '/dd/Structure/AD/far-oil1',
  start_time = 0 
)

Definition at line 8 of file Th.py.

00013                               :
00014 
00015         # set up Gnrtr itself
00016         from Gnrtr.GnrtrConf import Gnrtr
00017         gnrtr = Gnrtr(name);
00018 
00019         gnrtr.GenTools = ["GtThDecaysGenTool/"+name+"Gen",
00020                           "GtPositionerTool/"+name+"Pos",
00021                           "GtTimeratorTool/"+name+"Tim",
00022                           "GtTransformTool/"+name+"Tra" ]
00023 
00024         gnrtr.ThisStageName = "Kinematic"
00025         gnrtr.TimeStamp = start_time
00026 
00027         if stage != 'null':
00028             stage.KinematicSequence.Members.append(gnrtr)
00029 
00030         # set up each tools
00031         from GaudiKernel import SystemOfUnits as units
00032         from GenTools.GenToolsConf import GtPositionerTool, GtTransformTool, GtTimeratorTool, GtHepEvtGenTool
00033         from GenRad.GenRadConf import GtUDecaysGenTool, GtThDecaysGenTool, GtUDecaysTimeTool
00034         # Set up Gen
00035         #generator
00036         gen=GtThDecaysGenTool(name+'Gen')
00037         #gen.OutputLevel = 2
00038         
00039         # Set up positioner
00040         pos=GtPositionerTool(name+'Pos',Volume=volume)
00041         pos.Strategy = "FullVolume" # also "AvoidDaughters" and "Surface"
00042         pos.Mode = "Uniform"
00043         #pos.Mode = "Fixed"
00044         pos.Spread = 25*units.m
00045         pos.Position = [0,0,2.5*units.m]
00046         
00047         # Set up timerator
00048         tim=GtTimeratorTool(name+'Tim')
00049         tim.LifeTime = int(30000*units.ns)
00050         
00051         # transform
00052         tra=GtTransformTool(name+'Tra',Volume=volume)
00053         
00054         pass


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:07:33 for Stage by doxygen 1.7.4