# - Ex1: how to set the full set of orders for the #------- generator: #SimFlags.ParticleGeneratorOrders.set_Value({'vertX:' : \ #' constant -27500.0','vertY:' :' flat -10.0 15.0',\ #'vertZ:' : ' flat -15.0 15.0','t:' :' constant -27500.0',\ #'momX:' : ' fixed 1','momY:' : ' fixed 0','momZ:' : ' fixed 0'}) # - Ex2: how to run with a gaussian energy distribution: #------- #SimFlags.ParticleGeneratorOrders.Value['energy:']=' gauss 54000 20' # - Ex3: how to run with any energy distribution: #------- # In this case you have to customize the ParticleGenerator (see # in the generator section) SimFlags.ParticleGeneratorOrders()['energy:'] = ' histogram 2857' #--- Output printout level ----------------------------------- #output threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL) MessageSvc = Service("MessageSvc") MessageSvc.OutputLevel = 4 #============================================================== #============================================================== # Job configuration # ***>> Do not add flags or simulation options below this line #============================================================== #============================================================== #--- CTB setup description ---------------------------------- from G4AtlasApps import SimKernel
# - Option: run using run-conditions for the CTB runs, #----------- only few runs available (make sure is a photon-run) SimFlags.LArEMBenergyCor.set_On() SimFlags.RunConditions.set_Value('CTB_G4Sim.CtbRunConditionsData') # This is the photon run number SimFlags.RunNumber.set_Value(2777) #--- Generator flags ------------------------------------------ SimFlags.Seeds.set_Value('SINGLE 2000160768 643921183') # Here we set the photon the electron must be generated by the # ParticleGenerator with an energy = 180 Gev - photon-energy SimFlags.ParticlePDG.set_Value('22') # # - Option: we reduce the beam spot for all the photon runs #---------- if SimFlags.ParticleGeneratorOrders().has_key('vertY:'): SimFlags.ParticleGeneratorOrders()['vertY:'] = ' flat -5. 5.' if SimFlags.ParticleGeneratorOrders().has_key('vertZ:'): SimFlags.ParticleGeneratorOrders()['vertZ:'] = ' flat -5. 5.' # - Option: run with a given energy distribution for the photon : #---------- # In this case you have to customize the ParticleGenerator (see # in the generator section) SimFlags.ParticleGeneratorOrders()['energy[0]:']=' histogram '+\ repr(SimFlags.RunNumber()) SimFlags.ParticleGeneratorOrders()['pdgcode[0]:'] = ' 22' SimFlags.ParticleGeneratorOrders( )['energy[1]:'] = ' function espectrum energy[0]' SimFlags.ParticleGeneratorOrders()['pdgcode[1]:'] = ' 11' #