Page MenuHomeHEPForge

Read currently hard-coded values from data files
Open, NormalPublic

Description

Copied from original trac ticket:
https://laura.hepforge.org/trac/ticket/13

The particle masses, resonance parameters, lists of allowed daughters/parents are currently hard-coded within various classes/namespaces. Would be better to have these read in from data files.

Related Objects

Event Timeline

tlatham created this object with edit policy "Laura (Project)".
tlatham triaged this task as Normal priority.May 30 2019, 11:56 AM
tlatham changed the visibility from "All Users" to "Public (No Login Required)".Nov 4 2019, 11:36 AM

Looking into using YAML for the data format and the yaml-cpp package for parsing it.

Should also take the opportunity to sort out the naming conventions, particularly for the resonances.

Another option for the data format and parser would be JSON and nlohmann_json as the parser.
While I slightly prefer the look of YAML files, the nlohmann_json parser looks to be more fully featured that either json-cpp or yaml-cpp.
Will look at the various use-cases and see which would work better.