Skip to content
Snippets Groups Projects
Commit 88753457 authored by James Beacham's avatar James Beacham
Browse files

Merge branch '21.0-autoconfig-hi-beam-energies' into '21.0'

Autoconfigure beam energy across all heavy ion projects (ATLASRECTS-4359)

See merge request atlas/athena!8793

Former-commit-id: e50f3f0773c5c61d887d20fd05f270c752d88ad8
parents c7a5ac78 da9698a0
No related branches found
No related tags found
No related merge requests found
......@@ -444,20 +444,29 @@ def ConfigureBeamEnergy():
beamEnergy = float( (str(projectName).split('_')[1]).replace('GeV','',1))/2 * 1000.
elif 'TeV' in projectName:
if 'hip5TeV' in projectName:
# Approximate 'beam energy' here as sqrt(sNN)/2.
beamEnergy = 1577000.
elif 'hip8TeV' in projectName:
# Approximate 'beam energy' here as sqrt(sNN)/2.
beamEnergy = 2510000.
else:
beamEnergy = float( (str(projectName).split('_')[1]).replace('TeV','',1).replace('p','.'))/2 * 1000000.
if '5TeV' in projectName:
# these are actually sqrt(s) = 5.02 TeV
beamEnergy=2510000.
elif projectName.endswith("_hi") or projectName.endswith("_hip"):
#beamEnergy=1380000. # 1.38 TeV (=3.5 TeV * (Z=82/A=208))
# Pb (p) beam energy in p-Pb collisions in 2011 will be 1.38 (3.5) TeV. sqrt(s_NN)=4.4 TeV
#beamEnergy=1577000. # 1.577 TeV (=4 TeV * (Z=82/A=208))
# Pb (p) Beam energy in p-Pb collisions in 2012 will be 1.577 (4) TeV.
#beamEnergy=2510000. # 2.51 TeV (=6.37 TeV * (Z=82/A=208)) - lowered to 6.37 to match s_NN = 5.02 for earlier Pb-p runs.
beamEnergy=2721000. # 2.72 TeV for Xe-Xe (=6.5 TeV * (Z=54/A=129))
if projectName in ('data10_hi', 'data11_hi'):
beamEnergy=1380000. # 1.38 TeV (=3.5 TeV * (Z=82/A=208))
elif projectName == 'data12_hi':
beamEnergy=1577000. # 1.577 TeV (=4 TeV * (Z=82/A=208))
elif projectName in ('data12_hip', 'data13_hip'):
# Pb (p) Beam energy in p-Pb collisions in 2012/3 was 1.577 (4) TeV.
# Approximate 'beam energy' here as sqrt(sNN)/2.
beamEnergy=2510000.
elif projectName in ('data15_hi', 'data18_hi'):
beamEnergy=2510000. # 2.51 TeV (=6.37 TeV * (Z=82/A=208)) - lowered to 6.37 to match s_NN = 5.02 in Pb-p runs.
elif projectName == 'data17_hi':
beamEnergy=2721000. # 2.72 TeV for Xe-Xe (=6.5 TeV * (Z=54/A=129))
else:
logAutoConfiguration.warning("Could not auto-configure beam energy based on project name: %s" , projectName)
return
......
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