EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TrackParamTruthInit.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2022 - 2025 Whitney Armstrong, Wouter Deconinck, Sylvester Joosten, Dmitry Romanov
3
4#pragma once
5
6#include <algorithms/algorithm.h>
7#include <edm4eic/TrackParametersCollection.h>
8#include <edm4eic/TrackSeedCollection.h>
9#include <edm4hep/EventHeaderCollection.h>
10#include <edm4hep/MCParticleCollection.h>
11#include <memory>
12#include <string>
13#include <string_view>
14
21
22namespace eicrecon {
23
24using TrackParamTruthInitAlgorithm = algorithms::Algorithm<
25 algorithms::Input<edm4hep::EventHeaderCollection, edm4hep::MCParticleCollection>,
26 algorithms::Output<edm4eic::TrackSeedCollection, edm4eic::TrackParametersCollection>>;
27
29 public WithPodConfig<TrackParamTruthInitConfig> {
30
31public:
32 TrackParamTruthInit(std::string_view name)
34 {"inputMCParticles"},
35 {"outputTrackParameters"},
36 "create track seeds from truth information"} {}
37
38 void init() final {};
39
40 void process(const Input& input, const Output& output) const final;
41
42private:
43 const algorithms::ActsSvc& m_actsSvc{algorithms::ActsSvc::instance()};
44 std::shared_ptr<const ActsGeometryProvider> m_geoSvc{m_actsSvc.acts_geometry_provider()};
45
46 const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
47 const algorithms::UniqueIDGenSvc& m_uid = algorithms::UniqueIDGenSvc::instance();
48};
49
50} // namespace eicrecon
Definition ActsSvc.h:13
std::shared_ptr< const ActsGeometryProvider > acts_geometry_provider() const
Definition ActsSvc.h:21
Definition ParticleSvc.h:13
Definition UniqueIDGenSvc.h:23
Definition TrackParamTruthInit.h:29
TrackParamTruthInit(std::string_view name)
Definition TrackParamTruthInit.h:32
void init() final
Definition TrackParamTruthInit.h:38
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4hep::EventHeaderCollection, edm4hep::MCParticleCollection >, algorithms::Output< edm4eic::TrackSeedCollection, edm4eic::TrackParametersCollection > > TrackParamTruthInitAlgorithm
Definition TrackParamTruthInit.h:26