EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
TracksToParticles.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2022 - 2024, Sylvester Joosten, Wouter Deconinck, Dmitry Romanov, Christopher Dilks, Dmitry Kalinkin
3
4#pragma once
5
6#include <algorithms/algorithm.h>
7#include <edm4eic/MCRecoParticleAssociationCollection.h>
8#include <edm4eic/EDM4eicVersion.h>
9#include <edm4eic/MCRecoTrackParticleAssociationCollection.h>
10#include <edm4eic/ReconstructedParticleCollection.h>
11#include <edm4eic/TrackCollection.h>
12#include <optional>
13#include <string>
14#include <string_view>
15
17
18#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
19#include <edm4eic/MCRecoParticleLinkCollection.h>
20#endif
21
22namespace eicrecon {
23
24using TracksToParticlesAlgorithm = algorithms::Algorithm<
25 algorithms::Input<edm4eic::TrackCollection,
26 std::optional<edm4eic::MCRecoTrackParticleAssociationCollection>>,
27 algorithms::Output<edm4eic::ReconstructedParticleCollection,
28#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
29 std::optional<edm4eic::MCRecoParticleLinkCollection>,
30#endif
31 std::optional<edm4eic::MCRecoParticleAssociationCollection>>>;
32
34public:
35 TracksToParticles(std::string_view name)
37 {"inputTracksCollection", "inputTrackAssociationsCollection"},
38 {"outputReconstructedParticlesCollection",
39#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
40 "outputLinks",
41#endif
42 "outputAssociationsCollection"},
43 "Converts track to particles with associations"} {};
44
45 void init() final;
46 void process(const Input&, const Output&) const final;
47};
48
49} // namespace eicrecon
Definition TracksToParticles.h:33
TracksToParticles(std::string_view name)
Definition TracksToParticles.h:35
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4eic::TrackCollection, std::optional< edm4eic::MCRecoTrackParticleAssociationCollection > >, algorithms::Output< edm4eic::ReconstructedParticleCollection, std::optional< edm4eic::MCRecoParticleLinkCollection >, std::optional< edm4eic::MCRecoParticleAssociationCollection > > > TracksToParticlesAlgorithm
Definition TracksToParticles.h:31