Exemplo n.º 1
0
from Hijing_i.Hijing_iConf import Hijing
genSeq += Hijing()

## evgenConfig setup -- use reduced number of events for HI
evgenConfig.generators += ["Hijing"]
evgenConfig.minevents = 250

## Set default HIJING random number seeds
# TODO: Isn't this reset anyway in EvgenJobTransforms/share/Generate_randomseeds.py?
if not hasattr(svcMgr, 'AtRndmGenSvc'):
    from AthenaServices.AthenaServicesConf import AtRndmGenSvc
    svcMgr += AtRndmGenSvc()
svcMgr.AtRndmGenSvc.Seeds = \
    ["HIJING 327213897 979111713", "HIJING_INIT 31452781 78713307"]

## Extra stream persistency
evgenConfig.doNotSaveItems += ["McEventCollection#*"]
evgenConfig.extraSaveItems += ["McEventCollection#GEN_EVENT"]
evgenConfig.extraSaveItems += ["HijingEventParams#*"]
Exemplo n.º 2
0
from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream

# configuring the Athena application for a 'generator' job
import AthenaCommon.AtlasUnixGeneratorJob

# make sure we are loading the ParticleProperty service
from PartPropSvc.PartPropSvcConf import PartPropSvc
svcMgr += PartPropSvc()
#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
from AthenaCommon.AlgSequence import AlgSequence
topAlg = AlgSequence()

from Hijing_i.Hijing_iConf import Hijing
topAlg += Hijing()

theApp.ExtSvc += ["AtRndmGenSvc"]

# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
svcMgr.MessageSvc.OutputLevel = 4
svcMgr.MessageSvc.defaultLimit = 100000
#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
# Number of events to be processed (default is 10)
theApp.EvtMax = 5

# Set run number (default 0 causes problems)
svcMgr.EventSelector.RunNumber = 12345
Exemplo n.º 3
0
# - turned ON decays charm and bottom but not pi0, lambda, ...;
#==============================================================
#--------------------------------------------------------------
# General Application Configuration options
#--------------------------------------------------------------
import AthenaCommon.AtlasUnixGeneratorJob
from PartPropSvc.PartPropSvcConf import PartPropSvc
svcMgr += PartPropSvc()

#--------------------------------------------------------------
# Private Application Configuration options
#--------------------------------------------------------------
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
from Hijing_i.Hijing_iConf import Hijing
job += Hijing()

from FlowAfterburner.FlowAfterburnerConf import AddFlowByShifting
job += AddFlowByShifting()

theApp.Dlls += ["Hijing_i", "FlowAfterburner"]
theApp.TopAlg = ["Hijing"]
theApp.TopAlg += ["AddFlowByShifting"]
#theApp.ExtSvc += [ "AtRndmGenSvc" ]

#--------------------------------------------------------------
# Algorithms Private Options
#--------------------------------------------------------------
from AthenaServices.AthenaServicesConf import AtRndmGenSvc
svcMgr += AtRndmGenSvc()
svcMgr.AtRndmGenSvc.Seeds = [