6#include <spdlog/logger.h>
15 :
public JOmniFactory<TrackClusterMatch_factory, TrackClusterMatchConfig> {
18 std::unique_ptr<eicrecon::TrackClusterMatch> m_algo;
21 PodioInput<edm4eic::TrackSegment> m_tracks{
this};
22 PodioInput<edm4eic::Cluster> m_clusters{
this};
25 PodioOutput<edm4eic::TrackClusterMatch> m_matched_particles{
this};
28 ParameterRef<double> m_matching_distance{
this,
"matchingDistance",
config().matching_distance};
32 m_algo = std::make_unique<eicrecon::TrackClusterMatch>(
GetPrefix());
33 m_algo->level(
static_cast<algorithms::LogLevel
>(
logger()->level()));
34 m_algo->applyConfig(
config());
39 m_algo->process({m_tracks(), m_clusters()}, {m_matched_particles().get()});
Definition JOmniFactory.h:30
TrackClusterMatchConfig & 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 TrackClusterMatch_factory.h:15
void Configure()
Definition TrackClusterMatch_factory.h:31
void Process(int32_t, uint64_t)
Definition TrackClusterMatch_factory.h:38
-client
Definition CalorimeterClusterRecoCoG.cc:37