From 07df19f5627d88d514aef8bd8d8b9c9cc88b9f16 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 1 Jul 2024 17:04:23 -0400 Subject: [PATCH] treewide: add missing AlgorithmsInit_service for particleSvc (#1524) More of changes like #1522. Closes: #1523 --- src/factories/reco/HadronicFinalState_factory.h | 3 +++ src/factories/reco/InclusiveKinematicsReconstructed_factory.h | 3 +++ src/factories/reco/TransformBreitFrame_factory.h | 3 +++ src/global/tracking/TrackParamTruthInit_factory.h | 2 ++ 4 files changed, 11 insertions(+) diff --git a/src/factories/reco/HadronicFinalState_factory.h b/src/factories/reco/HadronicFinalState_factory.h index 00d03523e3..10f7bf6905 100644 --- a/src/factories/reco/HadronicFinalState_factory.h +++ b/src/factories/reco/HadronicFinalState_factory.h @@ -11,6 +11,7 @@ #include #include "extensions/jana/JOmniFactory.h" +#include "services/algorithms_init/AlgorithmsInit_service.h" namespace eicrecon { @@ -29,6 +30,8 @@ class HadronicFinalState_factory : typename FactoryT::template PodioInput m_rc_particles_assoc_input {this}; typename FactoryT::template PodioOutput m_hadronic_final_state_output {this}; + typename FactoryT::template Service m_algorithmsInit {this}; + public: void Configure() { m_algo = std::make_unique(this->GetPrefix()); diff --git a/src/factories/reco/InclusiveKinematicsReconstructed_factory.h b/src/factories/reco/InclusiveKinematicsReconstructed_factory.h index 7c395f39dc..dbc7e922e4 100644 --- a/src/factories/reco/InclusiveKinematicsReconstructed_factory.h +++ b/src/factories/reco/InclusiveKinematicsReconstructed_factory.h @@ -11,6 +11,7 @@ #include #include "extensions/jana/JOmniFactory.h" +#include "services/algorithms_init/AlgorithmsInit_service.h" namespace eicrecon { @@ -29,6 +30,8 @@ class InclusiveKinematicsReconstructed_factory : typename FactoryT::template PodioInput m_hadronic_final_state_input {this}; typename FactoryT::template PodioOutput m_inclusive_kinematics_output {this}; + typename FactoryT::template Service m_algorithmsInit {this}; + public: void Configure() { m_algo = std::make_unique(this->GetPrefix()); diff --git a/src/factories/reco/TransformBreitFrame_factory.h b/src/factories/reco/TransformBreitFrame_factory.h index 3a9852818b..ce1ee17d5d 100644 --- a/src/factories/reco/TransformBreitFrame_factory.h +++ b/src/factories/reco/TransformBreitFrame_factory.h @@ -14,6 +14,7 @@ #include "algorithms/reco/TransformBreitFrame.h" #include "extensions/jana/JOmniFactory.h" +#include "services/algorithms_init/AlgorithmsInit_service.h" namespace eicrecon { @@ -33,6 +34,8 @@ namespace eicrecon { // output collection PodioOutput m_out_part {this}; + Service m_algorithmsInit {this}; + public: void Configure() { diff --git a/src/global/tracking/TrackParamTruthInit_factory.h b/src/global/tracking/TrackParamTruthInit_factory.h index 4196b66c8b..09bd09dda3 100644 --- a/src/global/tracking/TrackParamTruthInit_factory.h +++ b/src/global/tracking/TrackParamTruthInit_factory.h @@ -15,6 +15,7 @@ #include "algorithms/tracking/TrackParamTruthInit.h" #include "algorithms/tracking/TrackParamTruthInitConfig.h" #include "extensions/jana/JOmniFactory.h" +#include "services/algorithms_init/AlgorithmsInit_service.h" namespace eicrecon { @@ -37,6 +38,7 @@ class TrackParamTruthInit_factory : ParameterRef m_momentumSmear {this, "MomentumSmear", config().momentumSmear, "Momentum magnitude fraction to use as width of gaussian smearing"}; Service m_ACTSGeoSvc {this}; + Service m_algorithmsInit {this}; public: void Configure() {