Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atlas
athena
Merge requests
!68452
2024-01-30: merge of 23.0 into main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
2024-01-30: merge of 23.0 into main
abarton/athena:sweep_23.0_main_2024-01-30
into
main
Overview
4
Commits
10
Pipelines
0
Changes
61
Merged
Adam Edward Barton
requested to merge
abarton/athena:sweep_23.0_main_2024-01-30
into
main
1 year ago
Overview
4
Commits
10
Pipelines
0
Changes
61
Expand
This sweep contains the following MRs:
!68352 (merged)
Bugfix for ZDC_GeoM and ZDC_SimuDigitization
Digitization
,
ForwardDetectors
,
Simulation
!68351 (merged)
23.0 remove zdc strip and pixel hits sd
ATLASSIM-6751
Digitization
,
ForwardDetectors
,
Simulation
!68357 (merged)
added check in ZdcRecConfig for online environment; small binning change in ZDC monitoring histograms
ForwardDetectors
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
7544804a
10 commits,
1 year ago
61 files
+
24
−
2388
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
61
Search (e.g. *.vue) (Ctrl+P)
ForwardDetectors/ZDC/ZDC_GeoM/share/zdcsimu.py deleted
100644 → 0
+
0
−
93
Options
# Read arguments from environment variables
import
os
#serialNumber = os.environ['serialNumber']
#runNumber = os.environ['runNumber']
numEvents
=
2
#--- Detector flags -------------------------------------------
from
AthenaCommon.DetFlags
import
DetFlags
DetFlags
.
ID_setOff
()
DetFlags
.
Calo_setOff
()
DetFlags
.
Muon_setOff
()
DetFlags
.
ZDC_setOn
()
DetFlags
.
simulate
.
Truth_setOn
()
from
RngComps.RngCompsConf
import
AtRndmGenSvc
ServiceMgr
+=
AtRndmGenSvc
()
#--- AthenaCommon flags ---------------------------------------
from
AthenaCommon.AthenaCommonFlags
import
athenaCommonFlags
athenaCommonFlags
.
PoolHitsOutput
=
"
Hits.pool.root
"
athenaCommonFlags
.
EvtMax
=
int
(
numEvents
)
#--- Simulation flags -----------------------------------------
from
G4AtlasApps.SimFlags
import
SimFlags
SimFlags
.
SeedsG4
=
1114
SimFlags
.
SimLayout
.
set_On
()
# Use the default value
# for the next three lines look into Andrea Dellacqua's talk in the Forwardsimulation meeting of Nov23-2010
# http://indico.cern.ch/conferenceDisplay.py?confId=114120
SimFlags
.
ForwardDetectors
.
set_On
()
SimFlags
.
ForwardDetectors
=
1
SimFlags
.
EventFilter
.
set_Off
()
#SimFlags.WorldZRange.statusOn=True
#SimFlags.WorldZRange.set_Value(145000)
from
AthenaCommon.GlobalFlags
import
jobproperties
jobproperties
.
Global
.
ConditionsTag
=
"
OFLCOND-SIM-BS7T-00
"
# Look into SimFlags.SimLayout for other possible values
#SimFlags.SimLayout='ATLAS-GEO-06-00-00' # specific value
#SimFlags.SimLayout.set_On() # uses the default value
SimFlags
.
MagneticField
.
set_Off
()
# - uses single particle generator
SimFlags
.
KinematicsMode
=
'
SingleParticle
'
# e-/+ = +/-11, mu-/+ = +/-13, pi+/- = +/-211, pi0=111, eta=221,
# neutron=2112, proton=2212, gamma 22
SimFlags
.
ParticlePDG
=
'
22
'
# set energy constant to 10 GeV
SimFlags
.
Energy
=
10000
# set your own particle generator orders here.
# do this for example if you need generation at fixed pt
# PDG code will be set following user instructions in the SimFlags.ParticlePDG
# SimFlags.Energy will be ingored if you uncomment the following lines
SimFlags
.
ParticleGeneratorOrders
=
{
'
vertX:
'
:
'
flat -1.0 1.0
'
,
'
vertY:
'
:
'
flat -1.0 1.0
'
,
'
vertZ:
'
:
'
constant -139500.0
'
,
'
t:
'
:
'
constant 0.0
'
,
'
eta:
'
:
'
constant -100.0
'
,
'
phi:
'
:
'
flat 0 6.28318
'
,
'
e:
'
:
'
constant 1360000
'
}
# 'pt:' : ' constant 50000'}
#--- Output printout level -----------------------------------
#output threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL)
#you can override this for individual modules if necessary
MessageSvc
=
Service
(
"
MessageSvc
"
)
MessageSvc
.
OutputLevel
=
2
#==============================================================
# Job configuration
# ***>> Do not add flags or simulation options below this line
#==============================================================
from
G4AtlasApps
import
SimKernel
# The following lines store the desired container into the output file
from
AthenaPoolCnvSvc.WriteAthenaPool
import
AthenaPoolOutputStream
stream1
=
AthenaPoolOutputStream
(
"
StreamEVGEN
"
)
stream1
.
OutputFile
=
"
SimOut.pool.root
"
stream1
.
ItemList
+=
[
'
EventInfo#*
'
,
'
McEventCollection#*
'
,
'
ZDC_SimPixelHit_Collection#*
'
,
'
ZDC_SimStripHit_Collection#*
'
]
#--- End jobOptions.G4Atlas_Sim.py file ------------------------------
Loading