10#include <algorithms/algorithm.h>
11#include <edm4eic/ClusterCollection.h>
12#include <edm4eic/EDM4eicVersion.h>
13#include <edm4eic/MCRecoClusterParticleAssociationCollection.h>
14#include <edm4eic/MCRecoParticleAssociationCollection.h>
15#include <edm4eic/ReconstructedParticleCollection.h>
16#include <edm4hep/MCParticleCollection.h>
24#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
25#include <edm4eic/MCRecoParticleLinkCollection.h>
31 algorithms::Input<edm4hep::MCParticleCollection, edm4eic::ReconstructedParticleCollection,
32 edm4eic::MCRecoParticleAssociationCollection, edm4eic::ClusterCollection,
33 edm4eic::MCRecoClusterParticleAssociationCollection>,
34 algorithms::Output<edm4eic::ReconstructedParticleCollection,
35#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
36 edm4eic::MCRecoParticleLinkCollection,
38 edm4eic::MCRecoParticleAssociationCollection>>;
45 {
"MCParticles",
"CentralTracks",
"CentralTrackAssociations",
46 "EcalClusters",
"EcalClusterAssociations"},
47 {
"ReconstructedParticles",
48#if EDM4EIC_BUILD_VERSION >= EDM4EIC_VERSION(8, 7, 0)
49 "ReconstructedParticleLinks",
51 "ReconstructedParticleAssociations"},
52 "Match tracks with clusters, and assign associations."} {
56 void process(
const Input&,
const Output&)
const final;
61 std::map<int, edm4eic::Cluster>
62 indexedClusters(
const edm4eic::ClusterCollection* clusters,
63 const edm4eic::MCRecoClusterParticleAssociationCollection* associations)
const;
67 static edm4eic::MutableReconstructedParticle
68 reconstruct_neutral(
const edm4eic::Cluster* cluster,
const double mass,
const int32_t pdg);
Definition MatchClusters.h:40
MatchClusters(std::string_view name)
Definition MatchClusters.h:43
void init() final
Definition MatchClusters.h:55
Definition WithPodConfig.h:22
-client
Definition CalorimeterClusterRecoCoG.cc:37
algorithms::Algorithm< algorithms::Input< edm4hep::MCParticleCollection, edm4eic::ReconstructedParticleCollection, edm4eic::MCRecoParticleAssociationCollection, edm4eic::ClusterCollection, edm4eic::MCRecoClusterParticleAssociationCollection >, algorithms::Output< edm4eic::ReconstructedParticleCollection, edm4eic::MCRecoParticleLinkCollection, edm4eic::MCRecoParticleAssociationCollection > > MatchClustersAlgorithm
Definition MatchClusters.h:38