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

List of all members.

Public Member Functions

def __init__

Detailed Description

   configure Muon generator

Definition at line 3 of file GunMuon.py.


Constructor & Destructor Documentation

def GunMuon::GunMuon::__init__ (   self,
  stage = 'null',
  name = 'Muon',
  volume = '/dd/Structure/Pool/db-ows',
  start_time = 0,
  seed = 1234567 
)

Definition at line 8 of file GunMuon.py.

00014                               :
00015 
00016         # set up Gnrtr itself
00017         from Gnrtr.GnrtrConf import Gnrtr
00018         gnrtr = Gnrtr(name);
00019 
00020         gnrtr.GenTools = [ "GtGunGenTool/"+name+"GunGen",
00021                            "GtPositionerTool/"+name+"Pos",
00022                            "GtTimeratorTool/"+name+"Tim",
00023                            "GtTransformTool/"+name+"Tra",
00024                            "MuonProphet/"+name+"Prophet"
00025                            ]
00026 
00027         gnrtr.ThisStageName = "Kinematic"
00028         gnrtr.TimeStamp = start_time
00029 
00030         if stage != 'null':
00031             stage.KinematicSequence.Members.append(gnrtr)
00032 
00033         # set up each tools
00034         from GaudiKernel import SystemOfUnits as units
00035         from GenTools.GenToolsConf import GtGunGenTool,GtPositionerTool, GtTransformTool, GtTimeratorTool, GtHepEvtGenTool
00036         from MuonProphet.MuonProphetConf import MuonProphet
00037         # Set up Gen
00038         gun = GtGunGenTool(name+"GunGen",
00039                            ParticlesPerEvent = 1,
00040                            ParticleName = "mu+",
00041                            Momentum = 5*units.GeV,
00042                            MomentumMode = "Fixed",
00043                            MomentumSpread = 4*units.MeV,
00044                            DirectionMode = "Fixed",
00045                            Direction = [ 0, 0, -1 ],
00046                            DirectionSpread = 3)
00047         
00048         # Set up positioner
00049         pos=GtPositionerTool(name+'Pos',Volume=volume)
00050         # I should use relateiv
00051         #pos.Mode = "Relative"
00052         pos.Mode = "Fixed"
00053         pos.Position = [1*units.meter,
00054                         1*units.meter
00055                         ,10*units.meter]
00056         
00057         # Set up timerator
00058         tim=GtTimeratorTool(name+'Tim')
00059         tim.LifeTime = 0.001123*units.s
00060         
00061         # transform
00062         tra=GtTransformTool(name+'Tra',Volume=volume)
00063         tra.Offset = [0., 0., (0.042)*units.meter]
00064 
00065         ## More surprise from muon starts from here.
00066         # muon prophet
00067         prophet=MuonProphet();
00068         #prophet.Active=False;        
00069         prophet.Site = "DayaBay"
00070         prophet.GenTools     = [ "Li9He8Decayerator/Li9He8" ]
00071         prophet.GenYields    = [ 0.5*units.cm2/units.gram ]
00072         prophet.GenYieldMeasuredAt = [260*units.GeV]
00073         prophet.GenLifetimes = [ 0.002*units.s ]
00074 
00075         # trigger related configuration
00076         prophet.TrkLengthInWaterThres = 20*units.cm
00077         prophet.WaterPoolTriggerEff = 0.9999
00078 
00079         prophet.OutputLevel=2
00080 
00081         # Set false, otherwise all times will be reset so the signal vertex is at t=0.
00082         from G4DataHelpers.G4DataHelpersConf import HepMCtoG4
00083         convertor = HepMCtoG4()
00084         convertor.ZeroTime = False
00085 
00086 
00087         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:21:29 for MuonProphet by doxygen 1.7.4