File indexing completed on 2025-02-22 10:33:25
0001
0002
0003
0004 #pragma once
0005
0006 #include <algorithms/algorithm.h>
0007 #include <edm4eic/VertexCollection.h>
0008 #include <string> // for basic_string
0009 #include <string_view> // for string_view
0010
0011 #include "algorithms/interfaces/WithPodConfig.h"
0012 #include "algorithms/reco/PrimaryVerticesConfig.h"
0013
0014
0015 namespace eicrecon {
0016
0017 using PrimaryVerticesAlgorithm = algorithms::Algorithm<
0018 algorithms::Input<edm4eic::VertexCollection>,
0019 algorithms::Output<edm4eic::VertexCollection>>;
0020
0021 class PrimaryVertices :
0022 public PrimaryVerticesAlgorithm,
0023 public WithPodConfig<PrimaryVerticesConfig>{
0024
0025 public:
0026 PrimaryVertices(std::string_view name)
0027 : PrimaryVerticesAlgorithm{name,
0028 {"inputVertices"},
0029 {"outputPrimaryVertices"},
0030 "Sort reconstructed vertices in PrimaryVertices collection"} {}
0031
0032 void init() final;
0033 void process(const Input&, const Output&) const final;
0034
0035 private:
0036
0037 };
0038 }