19 std::string_view title,
20 std::string_view context,
22 :
Neuland::
ParSet(name.data(), title.data(), context.data(), own)
28 jsn = nlohmann::json{ {
"expIDs", par.exp_ids_ },
29 {
"num_of_planes", par.num_of_planes_ },
30 {
"offspill", par.offspill_tpat_pos_ },
31 {
"trig_mapping", par.trigIDMap_ } };
35 jsn.at(
"expIDs").get_to(par.exp_ids_);
36 jsn.at(
"num_of_planes").get_to(par.num_of_planes_);
37 jsn.at(
"offspill").get_to(par.offspill_tpat_pos_);
39 par.trigIDMap_.clear();
40 for (
const auto& jsonEntry : jsn.at(
"trig_mapping"))
42 const auto moduleID = jsonEntry.at(
"barID").template get<int>();
43 const auto trigID_left = jsonEntry.at(
"trigID_left").template get<int>();
44 const auto trigID_right = jsonEntry.at(
"trigID_right").template get<int>();
45 par.trigIDMap_.insert({ moduleID, std::make_pair(trigID_left, trigID_right) });
ClassImp(R3B::Neuland::Cal2HitPar)
CalibrationBasePar(std::string_view name="NeulandCalibrationBasePar", std::string_view title="Neuland calibration base par", std::string_view context="TestDefaultContext", bool own=true)
ParSet(std::string_view name="parSet", std::string_view title="Neuland parameter", std::string_view context="TestDefaultContext", bool own=true)
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)