Skip to content

Commit 8a68256

Browse files
committed
Removed hardcoded pmass in xtrack.particles
1 parent b846595 commit 8a68256

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

xtrack/particles/particles.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55

66
from ..dress import dress
77

8-
pmass = 938.2720813e6
8+
from scipy.constants import m_p
9+
from scipy.constants import e as qe
10+
from scipy.constants import c as clight
11+
12+
pmass = m_p * clight * clight / qe
13+
14+
15+
916

1017
LAST_INVALID_STATE = -999999999
1118

0 commit comments

Comments
 (0)