13 :
public JOmniFactory<LGADHitCalibration_factory, LGADHitCalibrationConfig> {
15 std::unique_ptr<eicrecon::LGADHitCalibration> m_algo;
17 PodioInput<edm4eic::RawTrackerHit> m_raw_hits_input{
this};
18 PodioOutput<edm4eic::TrackerHit> m_rec_hits_output{
this};
20 ParameterRef<double> m_c_slope{
this,
"cSlope",
config().c_slope};
21 ParameterRef<double> m_c_intercept{
this,
"cIntercept",
config().c_intercept};
22 ParameterRef<double> m_t_slope{
this,
"tSlope",
config().t_slope};
23 ParameterRef<double> m_t_intercept{
this,
"tIntercept",
config().t_intercept};
27 m_algo = std::make_unique<eicrecon::LGADHitCalibration>(
GetPrefix());
28 m_algo->level(
static_cast<algorithms::LogLevel
>(
logger()->level()));
29 m_algo->applyConfig(
config());
36 m_algo->process({m_raw_hits_input()}, {m_rec_hits_output().get()});
Definition JOmniFactory.h:30
LGADHitCalibrationConfig & config()
Retrieve reference to embedded config object.
Definition JOmniFactory.h:576
std::shared_ptr< spdlog::logger > & logger()
Retrieve reference to already-configured logger.
Definition JOmniFactory.h:573
std::string GetPrefix()
Definition JOmniFactory.h:570
Definition LGADHitCalibration_factory.h:13
void Configure()
Definition LGADHitCalibration_factory.h:26
void Process(int32_t, uint64_t)
Definition LGADHitCalibration_factory.h:35
void ChangeRun(int32_t)
Definition LGADHitCalibration_factory.h:33
-client
Definition CalorimeterClusterRecoCoG.cc:37