6#include <ActsExamples/EventData/Track.hpp>
7#include <JANA/JEvent.h>
9#include <edm4eic/TrackSegmentCollection.h>
25 std::unique_ptr<AlgoT> m_algo;
27 Input<Acts::ConstVectorMultiTrajectory> m_acts_track_states_input{
this};
28 Input<Acts::ConstVectorTrackContainer> m_acts_tracks_input{
this};
29 PodioInput<edm4eic::Track> m_tracks_input{
this};
30 PodioOutput<edm4eic::TrackSegment> m_segments_output{
this};
32 Service<AlgorithmsInit_service> m_algorithmsInit{
this};
36 m_algo = std::make_unique<AlgoT>(this->
GetPrefix());
37 m_algo->level((algorithms::LogLevel)
logger()->level());
38 m_algo->applyConfig(
config());
43 auto track_states_vec = m_acts_track_states_input();
44 auto tracks_vec = m_acts_tracks_input();
45 assert(!track_states_vec.empty() &&
"ConstVectorMultiTrajectory vector should not be empty");
46 assert(track_states_vec.front() !=
nullptr &&
47 "ConstVectorMultiTrajectory pointer should not be null");
48 assert(!tracks_vec.empty() &&
"ConstVectorTrackContainer vector should not be empty");
49 assert(tracks_vec.front() !=
nullptr &&
"ConstVectorTrackContainer pointer should not be null");
53 track_states_vec.front(),
58 m_segments_output().get(),
Definition JOmniFactory.h:30
NoConfig & 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
std::string GetPrefix()
Definition JOmniFactory.h:570
Definition TrackProjector_factory.h:20
void Configure()
Definition TrackProjector_factory.h:35
void Process(int32_t, uint64_t)
Definition TrackProjector_factory.h:42
Definition TrackProjector.h:25
-client
Definition CalorimeterClusterRecoCoG.cc:37