ATLAS Offline Software
userProcess_example.py
Go to the documentation of this file.
1 #import AthenaCommon.AtlasUnixGeneratorJob
2 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
3 
4 #--------------------------------------------------------------
5 # Event related parameters
6 #--------------------------------------------------------------
7 # Number of events to be processed (default is 10)
8 theApp.EvtMax = 3
9 #--------------------------------------------------------------
10 # Algorithms Private Options
11 #--------------------------------------------------------------
12 svcMgr.MessageSvc.OutputLevel = INFO
13 
14 from AthenaCommon.AlgSequence import AlgSequence
15 topSequence = AlgSequence()
16 from Pythia8_i.Pythia8_iConf import Pythia8_i
17 
18 
19 topSequence+=Pythia8_i()
20 topSequence.Pythia8_i.useRndmGenSvc = True
21 topSequence.Pythia8_i.UserProcess = "qqbar2emu"
22 
23 #topSequence.Pythia8_i.Commands += ['Random:setSeed = on']
24 #topSequence.Pythia8_i.Commands += ['Random:seed = 123456789']
25 
26 #topSequence.Pythia8_i.CollisionEnergy = 10000
27 
28 from TruthExamples.TruthExamplesConf import DumpMC
29 topSequence += DumpMC()
30 
31 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7