File indexing completed on 2025-01-18 09:28:00
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/EventData/TrackParameters.hpp"
0013 #include "Acts/MagneticField/MagneticFieldContext.hpp"
0014 #include "Acts/Utilities/Result.hpp"
0015 #include "Acts/Vertexing/GaussianTrackDensity.hpp"
0016 #include "Acts/Vertexing/IVertexFinder.hpp"
0017 #include "Acts/Vertexing/Vertex.hpp"
0018 #include "Acts/Vertexing/VertexingOptions.hpp"
0019
0020 namespace Acts {
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 class TrackDensityVertexFinder final : public IVertexFinder {
0033 public:
0034
0035 struct Config {
0036
0037 GaussianTrackDensity trackDensityEstimator;
0038 };
0039
0040
0041 struct State {};
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 Result<std::vector<Vertex>> find(const std::vector<InputTrack>& trackVector,
0052 const VertexingOptions& vertexingOptions,
0053 IVertexFinder::State& state) const override;
0054
0055 IVertexFinder::State makeState(
0056 const Acts::MagneticFieldContext& ) const override {
0057 return IVertexFinder::State{State{}};
0058 }
0059
0060 void setTracksToRemove(
0061 IVertexFinder::State& ,
0062 const std::vector<InputTrack>& ) const override {
0063
0064 }
0065
0066
0067
0068
0069 TrackDensityVertexFinder(const Config& cfg) : m_cfg(cfg) {}
0070
0071 private:
0072 Config m_cfg;
0073 };
0074
0075 }