Skip to content
Snippets Groups Projects
Commit 658ef0d0 authored by Thomas Strebler's avatar Thomas Strebler Committed by Edward Moyse
Browse files

Enable vertex time smearing for Run4 simulation (fix ATLSWUPGR-215)

Enable vertex time smearing for Run4 simulation (fix ATLSWUPGR-215)
parent 3753af00
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
"""Define methods to configure beam effects with the ComponentAccumulator"""
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
......@@ -63,6 +63,7 @@ def VertexBeamCondPositionerCfg(flags, name="VertexBeamCondPositioner", **kwargs
acc = ComponentAccumulator()
kwargs.setdefault("RandomSvc", acc.getPrimaryAndMerge(AthRNGSvcCfg(flags)).name)
kwargs.setdefault("SimpleTimeSmearing", flags.Sim.VertexTimeSmearing)
from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
acc.merge(BeamSpotCondAlgCfg(flags))
......@@ -91,6 +92,7 @@ def LongBeamspotVertexPositionerCfg(flags, name="LongBeamspotVertexPositioner",
"""Return a long beamspot vertex positioner tool"""
# todo needs LParameter and RandomSvc
acc = ComponentAccumulator()
kwargs.setdefault("SimpleTimeSmearing", flags.Sim.VertexTimeSmearing)
acc.setPrivateTools(CompFactory.Simulation.LongBeamspotVertexPositioner(name, **kwargs))
return acc
......
......@@ -2,6 +2,7 @@
from AthenaConfiguration.AthConfigFlags import AthConfigFlags, isGaudiEnv
from AthenaConfiguration.AutoConfigFlags import GetFileMD
from AthenaConfiguration.Enums import LHCPeriod
from SimulationConfig.SimEnums import BeamPipeSimMode, CalibrationRun, CavernBackground, \
LArParameterization, SimulationFlavour, TruthStrategy, VertexSource
from AthenaCommon.SystemOfUnits import m
......@@ -128,6 +129,8 @@ def createSimConfigFlags():
# BeameffectsAlg
scf.addFlag("Sim.VertexSource", VertexSource.CondDB, enum=VertexSource)
scf.addFlag("Sim.VertexTimeSmearing", lambda prevFlags:
prevFlags.GeoModel.Run >= LHCPeriod.Run4)
# G4UserActions
scf.addFlag("Sim.NRRThreshold", False)
......
run event nTopo nIdTracks nTauTracks nTaus nMuons nElec nTrueElec nFakeElec nPhot nTruePhot nFakePhot
242000 3120001 199 6 2 1 1 0 0 0 0 0 0
242000 3120002 184 6 0 0 1 0 0 0 0 0 0
242000 3120003 380 35 3 1 2 0 0 0 0 0 0
242000 3120004 182 11 4 1 0 0 0 0 0 0 0
242000 3120005 394 36 7 2 2 1 0 1 3 2 1
242000 3120001 249 8 2 1 1 0 0 0 0 0 0
242000 3120002 153 6 0 0 1 0 0 0 0 0 0
242000 3120003 356 36 7 2 2 1 0 1 0 0 0
242000 3120004 170 10 5 1 0 0 0 0 0 0 0
242000 3120005 409 40 7 2 3 1 0 1 3 1 2
......@@ -11,11 +11,11 @@
# Format is "test" : "version"
references_map = {
# Simulation
"s3761": "v3",
"s3761": "v4",
"s3779": "v2",
"s4005": "v2",
"s4006": "v2",
"s4007": "v2",
"s4005": "v3",
"s4006": "v3",
"s4007": "v3",
"s4008": "v1",
# Overlay
"d1590": "v1",
......
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