R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandAppOptionJson.h
Go to the documentation of this file.
1#pragma once
2
3#include "R3BNeulandApp.h"
8#include <R3BNeulandSimApp.h>
9#include <nlohmann/json.hpp>
10#include <nlohmann/json_fwd.hpp>
11
13{
14 using json = nlohmann::ordered_json;
15 void to_json(json& json_obj, const Params& param);
16
17 void from_json(const json& json_obj, Params& param);
18
19} // namespace R3B::Digitizing::Neuland::Tamex
20namespace R3B::Neuland
21{
22 // =============================================================================================
23 // general options:
24 template <>
25 void to_json(nlohmann::ordered_json& json_obj, const CLIApplication::Options& option);
26
27 template <>
28 void from_json(const nlohmann::ordered_json& json_obj, CLIApplication::Options& option);
29
30 template <>
31 void to_json(nlohmann::ordered_json& json_obj, const CLIApplication::Options::Input& option);
32
33 template <>
34 void from_json(const nlohmann::ordered_json& json_obj, CLIApplication::Options::Input& option);
35
36 template <>
37 void to_json(nlohmann::ordered_json& json_obj, const CLIApplication::Options::Output& option);
38
39 template <>
40 void from_json(const nlohmann::ordered_json& json_obj, CLIApplication::Options::Output& option);
41
42 // =============================================================================================
43 // Anaysis options:
44 template <>
45 void to_json(nlohmann::ordered_json& json_obj, const AnalysisApplication::Options& option);
46
47 template <>
48 void from_json(const nlohmann::ordered_json& json_obj, AnalysisApplication::Options& option);
49
50 template <>
51 void to_json(nlohmann::ordered_json& json_obj, const AnalysisApplication::Options::Tasks& option);
52
53 template <>
54 void from_json(const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks& option);
55
56 // =============================================================================================
57 // tasks specialization:
58 template <>
59 void to_json(nlohmann::ordered_json& json_obj, const R3B::Neuland::DigiTaskOptions& option);
60
61 template <>
62 void from_json(const nlohmann::ordered_json& json_obj, R3B::Neuland::DigiTaskOptions& option);
63
64 template <>
65 void to_json(nlohmann::ordered_json& json_obj, const AnalysisApplication::Options::Tasks::MultiTrain& option);
66
67 template <>
68 void from_json(const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::MultiTrain& option);
69
70 template <>
71 void to_json(nlohmann::ordered_json& json_obj, const AnalysisApplication::Options::Tasks::NeutronRValue& option);
72
73 template <>
74 void from_json(const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::NeutronRValue& option);
75
76 template <>
77 void to_json(nlohmann::ordered_json& json_obj, const AnalysisApplication::Options::Tasks::Cal2HitParTask& option);
78
79 template <>
80 void from_json(const nlohmann::ordered_json& json_obj, AnalysisApplication::Options::Tasks::Cal2HitParTask& option);
81
82 // =============================================================================================
83 // Simuation options:
84 template <>
85 void to_json(nlohmann::ordered_json& json_obj, const SimulationApplication::Options& option);
86
87 template <>
88 void from_json(const nlohmann::ordered_json& json_obj, SimulationApplication::Options& option);
89
90 template <>
91 void to_json(nlohmann::ordered_json& json_obj, const SimulationApplication::Options::Simulation& option);
92
93 template <>
94 void from_json(const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Simulation& option);
95
96 template <>
97 void to_json(nlohmann::ordered_json& json_obj, const SimulationApplication::Options::Detector& option);
98
99 template <>
100 void from_json(const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector& option);
101
102 // =============================================================================================
103 // Detector options:
104
105 template <>
106 void to_json(nlohmann::ordered_json& json_obj, const SimulationApplication::Options::Detector::Cave& option);
107
108 template <>
109 void from_json(const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector::Cave& option);
110
111 template <>
112 void to_json(nlohmann::ordered_json& json_obj, const SimulationApplication::Options::Detector::Neuland& option);
113
114 template <>
115 void from_json(const nlohmann::ordered_json& json_obj, SimulationApplication::Options::Detector::Neuland& option);
116} // namespace R3B::Neuland
void from_json(const json &json_obj, Params &param)
void to_json(json &json_obj, const Params &param)
Simulation of NeuLAND Bar/Paddle.
void from_json(const nlohmann::ordered_json &json_obj, GeneratorFactory::Options &options)
void to_json(nlohmann::ordered_json &json_obj, const GeneratorFactory::Options &options)
Configuration struct for R3B::Neuland::Digitizer used in R3B::Neuland::AnalysisApplication.