9 using json = nlohmann::ordered_json;
17 template <
typename Option>
21 nlohmann::ordered_json{ {
"enable", option.enable }, {
"read", option.read }, {
"write", option.write } };
24 template <
typename Option>
27 json_obj.at(
"enable").get_to(option.enable);
28 json_obj.at(
"read").get_to(option.read);
29 json_obj.at(
"write").get_to(option.write);
35 void to_json(nlohmann::ordered_json& json_obj,
const Application::Options& option);
38 void from_json(
const nlohmann::ordered_json& json_obj, Application::Options& option);
41 void to_json(nlohmann::ordered_json& json_obj,
const Application::Options::Input& option);
44 void from_json(
const nlohmann::ordered_json& json_obj, Application::Options::Input& option);
47 void to_json(nlohmann::ordered_json& json_obj,
const Application::Options::Output& option);
50 void from_json(
const nlohmann::ordered_json& json_obj, Application::Options::Output& option);
55 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options& option);
58 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options& option);
61 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options::Tasks& option);
64 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks& option);
69 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options::Tasks::Digi& option);
72 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::Digi& option);
75 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options::Tasks::MultiTrain& option);
78 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::MultiTrain& option);
81 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options::Tasks::NeutronRValue& option);
84 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::NeutronRValue& option);
87 void to_json(nlohmann::ordered_json& json_obj,
const AnalysisApplication::Options::Tasks::Cal2HitParTask& option);
90 void from_json(
const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::Cal2HitParTask& option);
95 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options& option);
98 void from_json(
const nlohmann::ordered_json& json_obj, SimulationApplication::Options& option);
101 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options::Simulation& option);
104 void from_json(
const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Simulation& option);
107 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options::Simulation::Generator& option);
110 void from_json(
const nlohmann::ordered_json& json_obj,
111 SimulationApplication::Options::Simulation::Generator& option);
114 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options::Detector& option);
117 void from_json(
const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector& option);
123 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options::Detector::Cave& option);
126 void from_json(
const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector::Cave& option);
129 void to_json(nlohmann::ordered_json& json_obj,
const SimulationApplication::Options::Detector::Neuland& option);
132 void from_json(
const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector::Neuland& option);
void from_json(const json &json_obj, Params ¶m)
void to_json(json &json_obj, const Params ¶m)
nlohmann::ordered_json json
Simulation of NeuLAND Bar/Paddle.
void from_json(const nlohmann::ordered_json &json_obj, MinimizerLimVar &option)
void to_json(nlohmann::ordered_json &json_obj, const MinimizerLimVar &option)