ATLAS Offline Software
jobOption.ParticleGun_flatpt_2particle.py
Go to the documentation of this file.
1 #! -*- python -*-
2 
3 # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4 
5 include("EvgenProdTools/StdEvgenSetup.py")
6 theApp.EvtMax = 100
7 
8 import ParticleGun as PG
9 pg = PG.ParticleGun()
10 pg.randomSeed = 123456
11 pg.samplers.append(PG.ParticleSampler()) # add a second sampler
12 pg.samplers[0].pid = (-13, 13) # cycle mu+-
13 pg.samplers[0].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[1.0, 3.2]) # flat in pt and +ve eta
14 pg.samplers[1].pid = (13, -13) # cycle mu-+
15 pg.samplers[1].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[-3.2, -1.0]) # flat in pt and -ve eta
16 topSeq += pg
17 
18 include("EvgenProdTools/postJO.CopyWeights.py")
19 include("EvgenProdTools/postJO.PoolOutput.py")
20 include("EvgenProdTools/postJO.DumpMC.py")
python.Include.include
include
Definition: Include.py:318