ATLAS Offline Software
Loading...
Searching...
No Matches
Generators
EvgenJobTransforms
share
EvgenTest
950555
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
3
from
EvgenJobTransforms.EvgenCAConfig
import
EvgenConfig
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
GeneratorConfig.Sequences
import
EvgenSequence, EvgenSequenceFactory
6
7
class
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
mc.Sample.setupProcess
setupProcess(self, flags)
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:13
mc.Sample.contact
list contact
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:10
mc.Sample.description
str description
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:8
mc.Sample.nEventsPerJob
int nEventsPerJob
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:11
mc.Sample.setupFlags
setupFlags(self, flags)
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:7
mc.Sample.keywords
list keywords
Definition
mc.Py8EG_A2MSTW2008LO_minbias_inelastic.py:9
Generated on
for ATLAS Offline Software by
1.14.0