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