EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
ClustersToParticles.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2026 ePIC Collaboration
3
4#pragma once
5
6#include <algorithms/algorithm.h>
7#include <edm4eic/ClusterCollection.h>
8#include <edm4eic/EDM4eicVersion.h>
9#include <edm4eic/MCRecoClusterParticleAssociationCollection.h>
10#include <edm4eic/MCRecoParticleAssociationCollection.h>
11#include <edm4eic/ReconstructedParticleCollection.h>
12#include <string>
13#include <string_view>
14
15#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
16#include <edm4eic/MCRecoParticleLinkCollection.h>
17#endif
18
22
23namespace eicrecon {
24
26 algorithms::Algorithm<algorithms::Input<edm4eic::ClusterCollection,
27 edm4eic::MCRecoClusterParticleAssociationCollection>,
28 algorithms::Output<edm4eic::ReconstructedParticleCollection,
29#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
30 edm4eic::MCRecoParticleLinkCollection,
31#endif
32 edm4eic::MCRecoParticleAssociationCollection>>;
33
35 public WithPodConfig<ClustersToParticlesConfig> {
36
37public:
38 ClustersToParticles(std::string_view name)
40 {"inputClusters", "inputClusterAssociations"},
41 {"outputReconstructedParticles",
42#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
43 "outputParticleLinks",
44#endif
45 "outputParticleAssociations"},
46 "Convert clusters to neutral reconstructed particles."} {
47 }
48
49 void init() final;
50
51 void process(const Input& input, const Output& output) const final;
52
53private:
54 const algorithms::ParticleSvc& m_particleSvc = algorithms::ParticleSvc::instance();
55 double m_mass{0.0};
56 int m_charge{0};
57};
58
59} // namespace eicrecon
Definition ClustersToParticles.h:35
ClustersToParticles(std::string_view name)
Definition ClustersToParticles.h:38
Definition WithPodConfig.h:22
Definition ActsSvc.h:11
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4eic::ClusterCollection, edm4eic::MCRecoClusterParticleAssociationCollection >, algorithms::Output< edm4eic::ReconstructedParticleCollection, edm4eic::MCRecoParticleLinkCollection, edm4eic::MCRecoParticleAssociationCollection > > ClustersToParticlesAlgorithm
Definition ClustersToParticles.h:32