ATLAS Offline Software
Loading...
Searching...
No Matches
mc.PG_single_nu_valid.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from EvgenJobTransforms.EvgenCAConfig import EvgenConfig
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from GeneratorConfig.Sequences import EvgenSequence, EvgenSequenceFactory
6
7class Sample(EvgenConfig):
8
9 def setupFlags(self, flags):
10 self.description = "Single neutrinos with fixed eta and E: purely for pile-up/lumi testing"
11 self.keywords = ["singleParticle", "neutrino"]
12 self.contact = ["dhirsch@mail.cern.ch"]
13 self.nEventsPerJob = 100
14
15 def setupProcess(self, flags):
16 # TODO: update once we have a proper PG fragment
17 sampleConfig = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Generator))
18
19 from ParticleGun.ParticleGunConfig import ParticleGun_SteeredSingleParticleCfg
20 pg = ParticleGun_SteeredSingleParticleCfg(
21 flags,
22 pid=12,
23 samplerType="EEtaMPhi",
24 energy=50000,
25 eta=0,
26 )
27
28 sampleConfig.merge(pg)
29
30 return sampleConfig