Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/EICrecon/algorithms/tracking/TracksToParticles.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022 - 2024, Sylvester Joosten, Wouter Deconinck, Dmitry Romanov, Christopher Dilks, Dmitry Kalinkin
0003 
0004 #pragma once
0005 
0006 #include <algorithms/algorithm.h>
0007 #include <edm4eic/MCRecoParticleAssociationCollection.h>
0008 #include <edm4eic/MCRecoParticleLinkCollection.h>
0009 #include <edm4eic/MCRecoTrackParticleAssociationCollection.h>
0010 #include <edm4eic/ReconstructedParticleCollection.h>
0011 #include <edm4eic/TrackCollection.h>
0012 #include <optional>
0013 #include <string>
0014 #include <string_view>
0015 
0016 #include "algorithms/interfaces/WithPodConfig.h"
0017 
0018 namespace eicrecon {
0019 
0020 using TracksToParticlesAlgorithm = algorithms::Algorithm<
0021     algorithms::Input<edm4eic::TrackCollection,
0022                       std::optional<edm4eic::MCRecoTrackParticleAssociationCollection>>,
0023     algorithms::Output<edm4eic::ReconstructedParticleCollection,
0024                        std::optional<edm4eic::MCRecoParticleLinkCollection>,
0025                        std::optional<edm4eic::MCRecoParticleAssociationCollection>>>;
0026 
0027 class TracksToParticles : public TracksToParticlesAlgorithm, public WithPodConfig<NoConfig> {
0028 public:
0029   TracksToParticles(std::string_view name)
0030       : TracksToParticlesAlgorithm{name,
0031                                    {"inputTracksCollection", "inputTrackAssociationsCollection"},
0032                                    {"outputReconstructedParticlesCollection", "outputLinks",
0033                                     "outputAssociationsCollection"},
0034                                    "Converts track to particles with associations"} {};
0035 
0036   void init() final;
0037   void process(const Input&, const Output&) const final;
0038 };
0039 
0040 } // namespace eicrecon