Skip to content

Commit

Permalink
treewide: add missing AlgorithmsInit_service for particleSvc (#1524)
Browse files Browse the repository at this point in the history
More of changes like #1522.
Closes: #1523
  • Loading branch information
veprbl authored Jul 1, 2024
1 parent 6bcc95c commit 07df19f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/factories/reco/HadronicFinalState_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <vector>

#include "extensions/jana/JOmniFactory.h"
#include "services/algorithms_init/AlgorithmsInit_service.h"

namespace eicrecon {

Expand All @@ -29,6 +30,8 @@ class HadronicFinalState_factory :
typename FactoryT::template PodioInput<edm4eic::MCRecoParticleAssociation> m_rc_particles_assoc_input {this};
typename FactoryT::template PodioOutput<edm4eic::HadronicFinalState> m_hadronic_final_state_output {this};

typename FactoryT::template Service<AlgorithmsInit_service> m_algorithmsInit {this};

public:
void Configure() {
m_algo = std::make_unique<AlgoT>(this->GetPrefix());
Expand Down
3 changes: 3 additions & 0 deletions src/factories/reco/InclusiveKinematicsReconstructed_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <vector>

#include "extensions/jana/JOmniFactory.h"
#include "services/algorithms_init/AlgorithmsInit_service.h"

namespace eicrecon {

Expand All @@ -29,6 +30,8 @@ class InclusiveKinematicsReconstructed_factory :
typename FactoryT::template PodioInput<edm4eic::HadronicFinalState> m_hadronic_final_state_input {this};
typename FactoryT::template PodioOutput<edm4eic::InclusiveKinematics> m_inclusive_kinematics_output {this};

typename FactoryT::template Service<AlgorithmsInit_service> m_algorithmsInit {this};

public:
void Configure() {
m_algo = std::make_unique<AlgoT>(this->GetPrefix());
Expand Down
3 changes: 3 additions & 0 deletions src/factories/reco/TransformBreitFrame_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "algorithms/reco/TransformBreitFrame.h"
#include "extensions/jana/JOmniFactory.h"
#include "services/algorithms_init/AlgorithmsInit_service.h"

namespace eicrecon {

Expand All @@ -33,6 +34,8 @@ namespace eicrecon {
// output collection
PodioOutput<edm4eic::ReconstructedParticle> m_out_part {this};

Service<AlgorithmsInit_service> m_algorithmsInit {this};

public:

void Configure() {
Expand Down
2 changes: 2 additions & 0 deletions src/global/tracking/TrackParamTruthInit_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -37,6 +38,7 @@ class TrackParamTruthInit_factory :
ParameterRef<double> m_momentumSmear {this, "MomentumSmear", config().momentumSmear, "Momentum magnitude fraction to use as width of gaussian smearing"};

Service<ACTSGeo_service> m_ACTSGeoSvc {this};
Service<AlgorithmsInit_service> m_algorithmsInit {this};

public:
void Configure() {
Expand Down

0 comments on commit 07df19f

Please sign in to comment.