Skip to content
Snippets Groups Projects
Verified Commit edd2a6fd authored by Tadej Novak's avatar Tadej Novak
Browse files

Add sanity checks for initial/final bunch crossing arguments

parent 980ae251
No related branches found
No related tags found
9 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!46514TGC Digitization: Implementation of signal propagation time between the sensor edge and ASD,!46458Add sanity checks for initial/final bunch crossing arguments
...@@ -224,6 +224,10 @@ def pileupRunArgsToFlags(runArgs, flags): ...@@ -224,6 +224,10 @@ def pileupRunArgsToFlags(runArgs, flags):
if hasattr(runArgs, "pileupFinalBunch"): if hasattr(runArgs, "pileupFinalBunch"):
flags.Digitization.PU.FinalBunchCrossing = runArgs.pileupFinalBunch flags.Digitization.PU.FinalBunchCrossing = runArgs.pileupFinalBunch
# sanity check
if flags.Digitization.PU.InitialBunchCrossing > flags.Digitization.PU.FinalBunchCrossing:
raise ValueError("Initial bunch crossing should not be larger than the final one")
if hasattr(runArgs, "inputLowPtMinbiasHitsFile"): if hasattr(runArgs, "inputLowPtMinbiasHitsFile"):
from Digitization.PileUpUtils import generateBackgroundInputCollections from Digitization.PileUpUtils import generateBackgroundInputCollections
flags.Digitization.PU.LowPtMinBiasInputCols = \ flags.Digitization.PU.LowPtMinBiasInputCols = \
......
...@@ -121,6 +121,8 @@ if hasattr(runArgs,"digiSteeringConf"): ...@@ -121,6 +121,8 @@ if hasattr(runArgs,"digiSteeringConf"):
digilog.info( "Changing digitizationFlags.digiSteeringConf from %s to %s", digitizationFlags.digiSteeringConf.get_Value(),runArgs.digiSteeringConf) digilog.info( "Changing digitizationFlags.digiSteeringConf from %s to %s", digitizationFlags.digiSteeringConf.get_Value(),runArgs.digiSteeringConf)
digitizationFlags.digiSteeringConf=runArgs.digiSteeringConf+"PileUpToolsAlg" digitizationFlags.digiSteeringConf=runArgs.digiSteeringConf+"PileUpToolsAlg"
PileUpConfigOverride=True PileUpConfigOverride=True
if digitizationFlags.initialBunchCrossing > digitizationFlags.finalBunchCrossing:
raise ValueError( "Initial bunch crossing should not be larger than the final one" )
if PileUpConfigOverride: if PileUpConfigOverride:
digilog.info( "NB Some pile-up (re-)configuration was done on the command-line.") digilog.info( "NB Some pile-up (re-)configuration was done on the command-line.")
del PileUpConfigOverride del PileUpConfigOverride
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment