ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
EvgenJobTransforms
python
EvgenConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
from
PyJobTransformsCore.TransformConfig
import
TransformConfig, String, ListOfStrings, Boolean, Integer, AllowedExpression, TransformConfigError
4
from
GeneratorConfig.GenConfigHelpers
import
KnownGenerators, KnownPartonShowerModels, KnownHadronizationModels
5
6
class
EvgenConfig
(TransformConfig):
7
__slots__ = ()
8
generators = ListOfStrings(
"List of used generators"
, allowedValues=KnownGenerators)
9
description = String(
"Human readable description of the dataset content"
)
10
process = String(
"Specific information about the physics process being generated"
)
11
notes = String(
"Extra information about this process e.g. known current problems"
)
12
contact = ListOfStrings(
"Contact person for this dataset. Leave empty for 'MC group'"
)
13
keywords = ListOfStrings(
"Search keywords for this dataset, e.g. 'QCD', 'EW', 'minbias', ..."
)
14
categories = ListOfStrings(
"Category keywords for this dataset, e.g. 'L1:Top', 'L2:RareTop'"
)
15
inputfilecheck = String(
"A regex to check that the input file needed for some generators has a valid name"
)
16
inputconfcheck = String(
"A regex to check that the config file needed for some generators has a valid name"
)
17
specialConfig = String(
"Special configuration for subsequent prod steps"
)
18
tune = String(
"Generator shower/hadronization/MPI tune name"
)
19
saveJets = Boolean(
"Save truth jet collections in the output file if they are available"
,
False
)
20
savePileupTruthParticles = Boolean(
"Save truth particle collections, if available, for pileup-overlay output"
,
False
)
21
findJets = Boolean(
"Schedule jet finding algorithms for each defined jet container"
,
False
)
22
doNotSaveItems = ListOfStrings(
"List of StreamEVGEN items to NOT save in output file - note occurs BEFORE extraSaveItems are added"
)
23
extraSaveItems = ListOfStrings(
"List of extra StreamEVGEN items to save in output file - note occurs AFTER doNotSaveItems are removed"
)
24
inputFilesPerJob = Integer(
"number of input files per job"
,0, AllowedExpression(
"value >= 0"
))
25
nEventsPerJob = Integer(
"number of input events per job"
,0, AllowedExpression(
"value >= 0"
))
26
obsolete = Boolean(
"Are JOs/common fragment obsolete"
,
False
)
27
PDGparams = Boolean(
"Do we use the standard PDG values for masses, widths etc. "
,
False
)
28
hadronizationModel = String(
"Name of the hadronization model used"
, allowedValues=KnownHadronizationModels)
29
partonShowerModel = String(
"Name of the parton shower model used"
, allowedValues=KnownPartonShowerModels)
30
31
def
__init__
(self, name="evgenConfig"):
32
TransformConfig.__init__(self, name)
33
self.
contact
= [
"MC group"
]
34
self.
auxfiles
= [
"PDGTABLE.MeV"
,
"pdt.table"
,
"DECAY.DEC"
,
"Bdecays0.dat"
,
"Bs2Jpsiphi.DEC"
,
"G4particle_acceptlist.txt"
,
"susyParticlePdgid.txt"
]
35
self.
nEventsPerJob
= 10000
36
self.
maxeventsstrategy
=
"ABORT"
37
self.
specialConfig
=
"NONE"
38
# for the sake of Generate_tf leave minevents for a while
39
self.
minevents
= 0
40
41
42
def
__setattr__
(self, name, value):
43
if
name
in
[
"efficiency"
,
"inputfilebase"
,
"inputconfbase"
,
"weighting"
]:
44
msg =
"evgenConfig.%s is not used in MC14 production. "
% name + \
45
"Please update your JO file, having read the docs at "
+ \
46
"https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/AtlasMcProductionMC14"
47
raise
TransformConfigError(msg)
48
object.__setattr__(self, name, value)
49
50
51
evgenConfig =
EvgenConfig
()
python.EvgenConfig.EvgenConfig
Definition
EvgenConfig.py:6
python.EvgenConfig.EvgenConfig.auxfiles
list auxfiles
Definition
EvgenConfig.py:34
python.EvgenConfig.EvgenConfig.minevents
int minevents
Definition
EvgenConfig.py:39
python.EvgenConfig.EvgenConfig.specialConfig
str specialConfig
Definition
EvgenConfig.py:17
python.EvgenConfig.EvgenConfig.nEventsPerJob
int nEventsPerJob
Definition
EvgenConfig.py:25
python.EvgenConfig.EvgenConfig.__init__
__init__(self, name="evgenConfig")
Definition
EvgenConfig.py:31
python.EvgenConfig.EvgenConfig.maxeventsstrategy
str maxeventsstrategy
Definition
EvgenConfig.py:36
python.EvgenConfig.EvgenConfig.__setattr__
__setattr__(self, name, value)
Explicitly block MC11/12 settings of efficiency, input*base, or weighting attrs.
Definition
EvgenConfig.py:42
python.EvgenConfig.EvgenConfig.contact
list contact
Definition
EvgenConfig.py:12
Generated on
for ATLAS Offline Software by
1.17.0