Hi,
I would like to ask some opinions whether it's a good idea to have a metadata (JSON) file for experiments (in root folder or in config folder). It could be like:
[
{
"exp": "s509",
"detectors":
{
"neuland":
{
"onspill_tpat": 1,
"offspill_tpat": 14,
"NumOfPlanes": 26,
}
}
},
{
"exp": "s522",
"detectors":
{
"neuland":
{
"onspill_tpat": 1,
"offspill_tpat": 11,
"NumOfPlanes": 26,
}
}
},
{
"exp": "s118",
"detectors":
{
"neuland":
{
"onspill_tpat": 1,
"offspill_tpat": 14,
"NumOfPlanes": 26,
}
}
},
]
The JSON file can then be read by CMake. When configure the cmake, experiment ID can be set with:
and the corresponding C++ global constants can be set accordingly during the compile time. We could also set the default value of R3BEXP to be the latest experiment if not specified.
These are my initial thought. Any suggestions and comments are welcomed.
Hi,
I would like to ask some opinions whether it's a good idea to have a metadata (JSON) file for experiments (in root folder or in config folder). It could be like:
[ { "exp": "s509", "detectors": { "neuland": { "onspill_tpat": 1, "offspill_tpat": 14, "NumOfPlanes": 26, } } }, { "exp": "s522", "detectors": { "neuland": { "onspill_tpat": 1, "offspill_tpat": 11, "NumOfPlanes": 26, } } }, { "exp": "s118", "detectors": { "neuland": { "onspill_tpat": 1, "offspill_tpat": 14, "NumOfPlanes": 26, } } }, ]The JSON file can then be read by CMake. When configure the cmake, experiment ID can be set with:
and the corresponding C++ global constants can be set accordingly during the compile time. We could also set the default value of
R3BEXPto be the latest experiment if not specified.These are my initial thought. Any suggestions and comments are welcomed.