File indexing completed on 2025-07-02 07:54:38
0001
0002
0003
0004 #pragma once
0005
0006 #include "algorithms/tracking/TrackerHitReconstruction.h"
0007 #include "services/geometry/dd4hep/DD4hep_service.h"
0008 #include "extensions/jana/JOmniFactory.h"
0009
0010 namespace eicrecon {
0011
0012 class TrackerHitReconstruction_factory
0013 : public JOmniFactory<TrackerHitReconstruction_factory, TrackerHitReconstructionConfig> {
0014
0015 TrackerHitReconstruction m_algo;
0016
0017 PodioInput<edm4eic::RawTrackerHit> m_raw_hits_input{this};
0018 PodioOutput<edm4eic::TrackerHit> m_rec_hits_output{this};
0019
0020 ParameterRef<float> m_timeResolution{this, "timeResolution", config().timeResolution};
0021
0022 Service<DD4hep_service> m_geoSvc{this};
0023
0024 public:
0025 void Configure() {
0026 m_algo.applyConfig(config());
0027 m_algo.init(m_geoSvc().converter(), logger());
0028 }
0029
0030 void ChangeRun(int32_t ) {}
0031
0032 void Process(int32_t , uint64_t ) {
0033 m_rec_hits_output() = m_algo.process(*m_raw_hits_input());
0034 }
0035 };
0036
0037 }