Commit e7e4292e authored by Ewelina Maria Lobodzinska's avatar Ewelina Maria Lobodzinska Committed by Frank Winklmeier
Browse files

EvgenJobTransforms: add runArgument allowing to go to DEBUG mode for generators

parent 2fa1afd0
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
import PyJobTransforms.trfArgClasses as trfArgClasses
......@@ -117,3 +117,8 @@ def addStdEvgenArgs(parser):
default=trfArgClasses.argInt(0, runarg=True),
type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=True),
help='Set to any digit !=0 if the output files should be cleaned up --saveList may help to save selected files')
parser.add_argument('--VERBOSE', '--Verbose', '--Debug', '--DEBUG', group='Evgen',
help = 'set logging level to DEBUG',
type=trfArgClasses.argFactory(trfArgClasses.argBool, runarg=True),
default=trfArgClasses.argBool('False'))
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
## Propagate output level requirements to the generators interfaces
if 'Pythia8' in evgenConfig.generators:
genSeq.Pythia8.OutputLevel = DEBUG
elif 'Pythia8B' in evgenConfig.generators:
genSeq.Pythia8B.OutputLevel = DEBUG
elif 'Herwig7' in evgenConfig.generators:
genSeq.Herwig7.OutputLevel = DEBUG
elif 'Sherpa' in evgenConfig.generators:
genSeq.Sherpa.OutputLevel = DEBUG
elif 'Epos' in evgenConfig.generators:
genSeq.Epos.OutputLevel = DEBUG
elif 'QGSJet' in evgenConfig.generators:
genSeq.QGSJet.OutputLevel = DEBUG
elif 'SuperChic' in evgenConfig.generators:
genSeq.Superchic.OutputLevel = DEBUG
elif 'ParticleGun' in evgenConfig.generators:
genSeq.ParticleGun.OutputLevel = DEBUG
elif 'ParticleDecayer' in evgenConfig.generators:
genSeq.ParticleDecayer.OutputLevel = DEBUG
elif 'Starlight' in evgenConfig.generators:
genSeq.Starlight.OutputLevel = DEBUG
elif 'Hydjet' in evgenConfig.generators:
genSeq.Hydjet.OutputLevel = DEBUG
elif 'Hijing' in evgenConfig.generators:
genSeq.Hijing.OutputLevel = DEBUG
if 'EvtGen' in evgenConfig.generators:
genSeq.EvtGen.OutputLevel = DEBUG
if 'Tauolapp' in evgenConfig.generators:
genSeq.TauolaPP.OutputLevel = DEBUG
if 'Photospp' in evgenConfig.generators:
genSeq.Photospp.OutputLevel = DEBUG
if 'Powheg' in evgenConfig.generators and not hasattr(runArgs,'inputGeneratorFile'):
genSeq.PowhegControl.OutputLevel = DEBUG
if 'MadGraph' in evgenConfig.generators and not hasattr(runArgs,'inputGeneratorFile'):
genSeq.MadGraphControl.OutputLevel = DEBUG
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
#
"""Functionality core of the Gen_tf transform"""
......@@ -422,6 +422,10 @@ include("EvgenJobTransforms/Generate_ecmenergies.py")
## Process random seed arg and pass to generators
include("EvgenJobTransforms/Generate_randomseeds.py")
## Propagate debug output level requirement to generators
if hasattr( runArgs, "VERBOSE") or (hasattr( runArgs, "loglevel") and runArgs.loglevel == "DEBUG") or (hasattr( runArgs, "loglevel")and runArgs.loglevel == "VERBOSE"):
include("EvgenJobTransforms/Generate_debug_level.py")
## Add special config option (extended model info for BSM scenarios)
svcMgr.TagInfoMgr.ExtraTagValuePairs.update({"specialConfiguration": evgenConfig.specialConfig})
......
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
#
"""Functionality core of the Gen_tf transform"""
......@@ -493,6 +493,10 @@ include("EvgenJobTransforms/Generate_ecmenergies.py")
## Process random seed arg and pass to generators
include("EvgenJobTransforms/Generate_randomseeds.py")
## Propagate debug output level requirement to generators
if hasattr( runArgs, "VERBOSE") or (hasattr( runArgs, "loglevel") and runArgs.loglevel == "DEBUG") or (hasattr( runArgs, "loglevel") and runArgs.loglevel == "VERBOSE"):
include("EvgenJobTransforms/Generate_debug_level.py")
## Add special config option (extended model info for BSM scenarios)
svcMgr.TagInfoMgr.ExtraTagValuePairs.update({"specialConfiguration": evgenConfig.specialConfig })
......
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
#
"""Functionality core of the Generate_tf transform"""
......@@ -405,6 +405,10 @@ include("EvgenJobTransforms/Generate_ecmenergies.py")
## Process random seed arg and pass to generators
include("EvgenJobTransforms/Generate_randomseeds.py")
## Propagate debug output level requirement to generators
if hasattr( runArgs, "VERBOSE") or (hasattr( runArgs, "loglevel") and runArgs.loglevel == "DEBUG") or (hasattr( runArgs, "loglevel") and runArgs.loglevel == "VERBOSE"):
include("EvgenJobTransforms/Generate_debug_level.py")
##=============================================================
## Check release number
##=============================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment