ATLAS Offline Software
Loading...
Searching...
No Matches
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
5include("EvgenProdTools/StdEvgenSetup.py")
6theApp.EvtMax = 100
7
8import ParticleGun as PG
9pg = PG.ParticleGun()
10pg.randomSeed = 123456
11pg.samplers.append(PG.ParticleSampler()) # add a second sampler
12pg.samplers[0].pid = (-13, 13) # cycle mu+-
13pg.samplers[0].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[1.0, 3.2]) # flat in pt and +ve eta
14pg.samplers[1].pid = (13, -13) # cycle mu-+
15pg.samplers[1].mom = PG.PtEtaMPhiSampler(pt=[4000, 100000], eta=[-3.2, -1.0]) # flat in pt and -ve eta
16topSeq += pg
17
18include("EvgenProdTools/postJO.CopyWeights.py")
19include("EvgenProdTools/postJO.PoolOutput.py")
20include("EvgenProdTools/postJO.DumpMC.py")