File indexing completed on 2025-12-06 09:00:37
0001
0002
0003
0004 #pragma once
0005
0006 #include <DD4hep/Detector.h>
0007 #include <algorithms/algorithm.h>
0008 #include <algorithms/geo.h>
0009 #include <edm4eic/ReconstructedParticleCollection.h>
0010 #include <edm4eic/VertexCollection.h>
0011 #include <gsl/pointers>
0012 #include <string> // for basic_string
0013 #include <string_view> // for string_view
0014
0015 #include "algorithms/interfaces/WithPodConfig.h"
0016 #include "algorithms/reco/SecondaryVerticesHelixConfig.h"
0017
0018 namespace eicrecon {
0019
0020 using SecondaryVerticesHelixAlgorithm = algorithms::Algorithm<
0021 algorithms::Input<edm4eic::VertexCollection, edm4eic::ReconstructedParticleCollection>,
0022 algorithms::Output<edm4eic::VertexCollection>>;
0023
0024 class SecondaryVerticesHelix : public SecondaryVerticesHelixAlgorithm,
0025 public WithPodConfig<SecondaryVerticesHelixConfig> {
0026
0027 public:
0028 SecondaryVerticesHelix(std::string_view name)
0029 : SecondaryVerticesHelixAlgorithm{
0030 name,
0031 {"inputVertices", "inputParticles"},
0032 {"outputSecondaryVertices"},
0033 "Reconstruct secondary vertices in SecondaryVertices collection"} {}
0034
0035 void init() final;
0036 void process(const Input&, const Output&) const final;
0037
0038 private:
0039 const dd4hep::Detector* m_det{algorithms::GeoSvc::instance().detector()};
0040 };
0041
0042 }