File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Common/Constants/include/CommonConstants Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
168168def 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 :
You can’t perform that action at this time.
0 commit comments