EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
ChargedCandidateMaker_factory.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2026 Derek Anderson
3
4#pragma once
5
6#include <string>
7
10
11namespace eicrecon {
12
13class ChargedCandidateMaker_factory : public JOmniFactory<ChargedCandidateMaker_factory, NoConfig> {
14
15public:
17
18private:
19 std::unique_ptr<AlgoT> m_algo;
20
21 // input collection
22 PodioInput<edm4eic::TrackClusterMatch> m_track_cluster_match_input{this};
23
24 // output collection
25 PodioOutput<edm4eic::ReconstructedParticle> m_charged_candidate_output{this};
26
27public:
28 void Configure() {
29 m_algo = std::make_unique<AlgoT>(GetPrefix());
30 m_algo->level(static_cast<algorithms::LogLevel>(logger()->level()));
31 m_algo->applyConfig(config());
32 m_algo->init();
33 }
34
35 void Process(int32_t /*run_number*/, uint64_t /*event_number*/) {
36 m_algo->process({m_track_cluster_match_input()}, {m_charged_candidate_output().get()});
37 }
38}; // end ChargedCandidateMaker_factory
39
40} // namespace eicrecon
Definition JOmniFactory.h:30
NoConfig & 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 ChargedCandidateMaker_factory.h:13
void Process(int32_t, uint64_t)
Definition ChargedCandidateMaker_factory.h:35
void Configure()
Definition ChargedCandidateMaker_factory.h:28
Definition ChargedCandidateMaker.h:28
-client
Definition CalorimeterClusterRecoCoG.cc:37