21#include <RtypesCore.h>
24#include <fmt/format.h>
25#include <range/v3/algorithm/max_element.hpp>
26#include <range/v3/view/map.hpp>
27#include <range/v3/view/transform.hpp>
45 :
ParSet(name, title, context, own)
51 auto threshold_views =
52 ranges::views::transform(
module_pars_ | ranges::views::values,
59 auto max_value = ranges::max_element(threshold_views);
60 if (max_value != threshold_views.end())
67#ifdef HAS_CPP_STANDARD_17
73 throw R3B::logic_error(fmt::format(
"module pars has no module num {}", module_num));
ClassImp(R3B::Neuland::Cal2HitPar)
void CalculateEnergyCutoff()
std::unordered_map< int, ::R3B::Neuland::HitModulePar > module_pars_
auto GetModuleParAt(int module_num) const -> const ::R3B::Neuland::HitModulePar &
Cal2HitPar(std::string_view name="NeulandHitPar", std::string_view title="Neuland Cal2Hit calibration", 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.
constexpr auto TotalBarLength
ValueError< double > light_attenuation_length
cm, 1/alpha
LRPair< ValueError< double > > pmt_threshold