EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TrackerHitReconstruction_factory.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2023 - 2025 Wouter Deconinck
3
4#pragma once
5
9
10namespace eicrecon {
11
13 : public JOmniFactory<TrackerHitReconstruction_factory, TrackerHitReconstructionConfig> {
14
15public:
17
18private:
19 std::unique_ptr<AlgoT> m_algo;
20
21 PodioInput<edm4eic::RawTrackerHit> m_raw_hits_input{this};
22 PodioOutput<edm4eic::TrackerHit> m_rec_hits_output{this};
23
24 ParameterRef<float> m_timeResolution{this, "timeResolution", config().timeResolution};
25
26 Service<DD4hep_service> m_geoSvc{this};
27
28public:
29 void Configure() {
30 m_algo = std::make_unique<AlgoT>(GetPrefix());
31 m_algo->level(static_cast<algorithms::LogLevel>(logger()->level()));
32 m_algo->applyConfig(config());
33 m_algo->init();
34 }
35
36 void Process(int32_t /* run_number */, uint64_t /* event_number */) {
37 m_algo->process({m_raw_hits_input()}, {m_rec_hits_output().get()});
38 }
39};
40
41} // namespace eicrecon
Definition JOmniFactory.h:30
TrackerHitReconstructionConfig & 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 TrackerHitReconstruction_factory.h:13
void Process(int32_t, uint64_t)
Definition TrackerHitReconstruction_factory.h:36
void Configure()
Definition TrackerHitReconstruction_factory.h:29
Definition TrackerHitReconstruction.h:28
-client
Definition CalorimeterClusterRecoCoG.cc:37