Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-14 08:14:36

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/MCRecoClusterParticleAssociationCollection.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::MCRecoClusterParticleAssociationCollection>>,
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{
0029             name, {"inputClusters"}, {"outputFeatureTensor", "outputTargetTensor"}, ""} {}
0030 
0031   void init() final;
0032   void process(const Input&, const Output&) const final;
0033 };
0034 
0035 } // namespace eicrecon