Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:05:54

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2024 Dmitry Kalinkin
0003 
0004 #pragma once
0005 
0006 #include <algorithms/algorithm.h>
0007 #include <edm4eic/ClusterCollection.h>
0008 #include <edm4eic/MCRecoClusterParticleLinkCollection.h>
0009 #include <edm4eic/TensorCollection.h>
0010 #include <optional>
0011 #include <string>
0012 #include <string_view>
0013 
0014 #include "algorithms/interfaces/WithPodConfig.h"
0015 
0016 namespace eicrecon {
0017 
0018 using CalorimeterParticleIDPreMLAlgorithm = algorithms::Algorithm<
0019     algorithms::Input<edm4eic::ClusterCollection,
0020                       std::optional<edm4eic::MCRecoClusterParticleLinkCollection>>,
0021     algorithms::Output<edm4eic::TensorCollection, std::optional<edm4eic::TensorCollection>>>;
0022 
0023 class CalorimeterParticleIDPreML : public CalorimeterParticleIDPreMLAlgorithm,
0024                                    public WithPodConfig<NoConfig> {
0025 
0026 public:
0027   CalorimeterParticleIDPreML(std::string_view name)
0028       : CalorimeterParticleIDPreMLAlgorithm{name,
0029                                             {"inputClusters", "inputClusterLinks"},
0030                                             {"outputFeatureTensor", "outputTargetTensor"},
0031                                             ""} {}
0032 
0033   void init() final;
0034   void process(const Input&, const Output&) const final;
0035 };
0036 
0037 } // namespace eicrecon