File indexing completed on 2025-01-18 09:15:30
0001
0002
0003
0004 #pragma once
0005
0006 #include <algorithms/algorithm.h>
0007 #include <edm4eic/ClusterCollection.h>
0008 #include <edm4eic/MCRecoClusterParticleAssociationCollection.h>
0009 #include <edm4eic/TensorCollection.h>
0010 #include <edm4hep/ParticleIDCollection.h>
0011 #include <optional>
0012 #include <string>
0013 #include <string_view>
0014
0015 #include "algorithms/interfaces/WithPodConfig.h"
0016
0017 namespace eicrecon {
0018
0019 using CalorimeterParticleIDPostMLAlgorithm =
0020 algorithms::Algorithm<
0021 algorithms::Input<edm4eic::ClusterCollection,
0022 std::optional<edm4eic::MCRecoClusterParticleAssociationCollection>,
0023 edm4eic::TensorCollection>,
0024 algorithms::Output<edm4eic::ClusterCollection,
0025 std::optional<edm4eic::MCRecoClusterParticleAssociationCollection>,
0026 edm4hep::ParticleIDCollection>
0027 >;
0028
0029 class CalorimeterParticleIDPostML : public CalorimeterParticleIDPostMLAlgorithm,
0030 public WithPodConfig<NoConfig> {
0031
0032 public:
0033 CalorimeterParticleIDPostML(std::string_view name)
0034 : CalorimeterParticleIDPostMLAlgorithm{name,
0035 {"inputClusters", "inputClusterAssociations", "inputPredictionsTensor"},
0036 {"outputClusters", "outputClusterAssociations", "outputParticleIDs"},
0037 ""} {
0038 }
0039
0040 void init() final;
0041 void process(const Input&, const Output&) const final;
0042 };
0043
0044 }