Skip to content
Snippets Groups Projects
Commit 572a3ae3 authored by Adam Edward Barton's avatar Adam Edward Barton Committed by Atlas Nightlybuild
Browse files

Merge branch 'master-bugFix-MesonsList' into 'master'

fix a bug with negative lifetimes in MesonsList.py

See merge request atlas/athena!25429

(cherry picked from commit 368bd98f)

c169eb6a fix a bug with negative lifetimes in MesonsList.py
parent 2144960a
No related branches found
No related tags found
36 merge requests!46457Draft: Adding the tools to run over data,!46454Draft: Adding the tools to be able to run over data,!45045WIP: Include another condition for hit merging in FCS_StepInfoSD.cxx,!45043Merge branch 'Update-DAOD_IDNCB' into '21.2',!44869Draft: Update to candidate store,!4217921.9-first_steps-InDetTrackingGeometryXML,!42171Add LAr cell DQ plots to UPC stream,!40342WIP: ATR-22546 - add missing trigger to MC16a,!39162Draft: Insert BCM' support,!38765Bis78 cabling,!37483Fix in monitoring of Pixel FE errors,!36893Fix size of RPC active region in BIS78 and strip material,!3645821.9: Improving material map description (ATLITKSW-127),!36293WIP pixel updates,!34993KF-input adding jXERHO to the AOD outputs,!34864LH rings in front ot HR rigs,!34763Fix L1_4jJ15.0ETA25 item definition (ATR-21261),!3473421.0 fix dq servers,!33996WIP: Correct MM zpositions,!3291021.3 salva s0,!3288421.0 salva s8,!3217421.9 - Bug fix for test stream creation in RD53BEncodingTool,!3135321.3,!3134821.9 README Update,!31345Add HEC sampling fractions macros,!31136added also PUsub for LargeR jets,!31123WIP: Master ttmdev,!3036121.9 fixing bug with layer indices in PixelRDOAnalysis,!29617IDPerfmonZmumu updates,!29454Idpvm 21.0 fix typo in trackselection config,!29085TRT modification for fractional charged particles,!28706Merge 21.3.16 into 21.9,!28623Overlay as part of FastChain transform in 21.3,!26874Merge 21.0.102 into 21.3,!26592Master upload 2018 global monitoring scripts p2,!25472Sweeping !25429 from master to 21.0. fix a bug with negative lifetimes in MesonsList.py
Pipeline #1026087 passed
......@@ -36,7 +36,7 @@ mesons.update({
'spin' : 1,
'parity' : -1,
'PDG' : 413,
'lifetime' : 7.892-12 * ns,
'lifetime' : 7.892e-12 * ns,
},
'D0_star(2300)0' : {
'mass' : 2300 * MeV,
......@@ -45,7 +45,7 @@ mesons.update({
'spin' : 0,
'parity' : +1,
'PDG' : 10421,
'lifetime' : 2.402-15 * ns,
'lifetime' : 2.402e-15 * ns,
},
'D1(2420)0' : {
'mass' : 2420.8 * MeV,
......@@ -54,7 +54,7 @@ mesons.update({
'spin' : 1,
'parity' : +1,
'PDG' : 10423,
'lifetime' : 2.076-14 * ns,
'lifetime' : 2.076e-14 * ns,
},
'D2_star(2460)0' : {
'mass' : 2460.7 * MeV,
......@@ -63,7 +63,7 @@ mesons.update({
'spin' : 2,
'parity' : +1,
'PDG' : 425,
'lifetime' : 1.386-14 * ns,
'lifetime' : 1.386e-14 * ns,
},
'D2_star(2460)+' : {
'mass' : 2465.4 * MeV,
......@@ -72,7 +72,7 @@ mesons.update({
'spin' : 2,
'parity' : +1,
'PDG' : 415,
'lifetime' : 1.409-14 * ns,
'lifetime' : 1.409e-14 * ns,
},
})
......@@ -88,7 +88,7 @@ mesons.update({
'spin' : 1,
'parity' : -1,
'PDG' : 513,
'lifetime' : 1.463-14 * ns,
'lifetime' : 1.463e-14 * ns,
},
'B1(5721)+' : {
'mass' : 5725.9 * MeV,
......@@ -106,7 +106,7 @@ mesons.update({
'spin' : 1,
'parity' : +1,
'PDG' : 10513,
'lifetime' : 2.393-14 * ns,
'lifetime' : 2.393e-14 * ns,
},
'B2_star(5747)+' : {
'mass' : 5737.2 * MeV,
......@@ -115,7 +115,7 @@ mesons.update({
'spin' : 2,
'parity' : +1,
'PDG' : 525,
'lifetime' : 3.291-14 * ns,
'lifetime' : 3.291e-14 * ns,
},
'B2_star(5747)0' : {
'mass' : 5739.5 * MeV,
......@@ -124,7 +124,7 @@ mesons.update({
'spin' : 2,
'parity' : +1,
'PDG' : 515,
'lifetime' : 2.72-14 * ns,
'lifetime' : 2.72e-14 * ns,
},
})
......@@ -158,6 +158,10 @@ def createMesonsList():
mesonsList = {}
for meson in mesons:
mesonProperties = mesons[meson]
# sanity check
verifyProperties(meson)
# meson
mesonsList[meson] = (
mesonProperties['mass'],
......@@ -185,5 +189,13 @@ def createMesonsList():
)
return mesonsList
def verifyProperties(meson):
mesonProperties = mesons[meson]
if (mesonProperties['lifetime'] <= 0):
raise ValueError('Lifetime of %s is not positive' % meson)
if (mesonProperties['mass'] <= 0):
raise ValueError('Mass of %s is not positive' % meson)
if (mesonProperties['width'] <= 0):
raise ValueError('Width of %s is not positive' % meson)
if (mesonProperties['spin'] < 0):
raise ValueError('Spin of %s is negative' % meson)
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