File indexing completed on 2026-11-15 09:30:29
0001
0002
0003
0004 #pragma once
0005
0006 #include "extensions/jana/JOmniFactory.h"
0007 #include "services/algorithms_init/AlgorithmsInit_service.h"
0008 #include "algorithms/reco/TransformLocalFFFrameToLabFrame.h"
0009
0010 namespace eicrecon {
0011
0012 class TransformLocalFFFrameToLabFrame_factory
0013 : public JOmniFactory<TransformLocalFFFrameToLabFrame_factory,
0014 TransformLocalFFFrameToLabFrameConfig> {
0015
0016 public:
0017 using AlgoT = eicrecon::TransformLocalFFFrameToLabFrame;
0018
0019 private:
0020 std::unique_ptr<AlgoT> m_algo;
0021
0022 PodioInput<edm4eic::ReconstructedParticle> m_FF_local_input{this};
0023 PodioOutput<edm4eic::ReconstructedParticle> m_FF_lab_output{this};
0024
0025 ParameterRef<double> m_crossing_angle{this, "crossing_angle", config().m_crossing_angle};
0026
0027
0028 Service<AlgorithmsInit_service> m_algoInitSvc{this};
0029
0030 public:
0031 void Configure() {
0032 m_algo = std::make_unique<AlgoT>(GetPrefix());
0033 m_algo->level(static_cast<algorithms::LogLevel>(logger()->level()));
0034 m_algo->applyConfig(config());
0035 m_algo->init();
0036 }
0037
0038 void Process(int32_t , uint64_t ) {
0039 m_algo->process({m_FF_local_input()}, {m_FF_lab_output().get()});
0040 }
0041 };
0042
0043 }