Skip to content

Commit 972a012

Browse files
committed
Cosmetics
1 parent b57b40d commit 972a012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Common/Constants/include/CommonConstants/make_pdg_header.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,15 @@ def mass(code):
160160
return dbPdg.Mass(code, success)
161161

162162

163-
def declare_mass(pdg, val_type="double") -> str:
163+
def declare_mass(pdg, mass_type="double") -> str:
164164
"""Returns a C++ declaration of a particle mass constant."""
165-
return f"constexpr {val_type} Mass{pdg.name[1:]} = {mass(pdg.value)};"
165+
return f"constexpr {mass_type} Mass{pdg.name[1:]} = {mass(pdg.value)};"
166166

167167

168168
def main():
169169
"""Main function"""
170170

171+
path_header = "PhysicsConstants.h"
171172
name_script = os.path.basename(__file__)
172173

173174
# Comment at the beginning of the output
@@ -195,7 +196,6 @@ def main():
195196
mass_root_head = "/// \\brief Declarations of masses for particles in ROOT PDG_t"
196197

197198
# Get header content before and after the generated block.
198-
path_header = "PhysicsConstants.h"
199199
print(f"File {path_header} will be updated.")
200200
try:
201201
with open(path_header, encoding="utf-8") as file:

0 commit comments

Comments
 (0)