File indexing completed on 2025-01-18 09:55:42
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010 #include <DD4hep/Detector.h>
0011 #include <DDRec/CellIDPositionConverter.h>
0012 #include <edm4eic/Measurement2DCollection.h>
0013 #include <edm4eic/TrackerHitCollection.h>
0014 #include <spdlog/logger.h>
0015 #include <memory>
0016
0017 #include "ActsGeometryProvider.h"
0018
0019 namespace eicrecon {
0020
0021 class TrackerMeasurementFromHits {
0022 public:
0023 void init(const dd4hep::Detector* detector,
0024 const dd4hep::rec::CellIDPositionConverter* converter,
0025 std::shared_ptr<const ActsGeometryProvider> acts_context,
0026 std::shared_ptr<spdlog::logger> logger);
0027
0028 std::unique_ptr<edm4eic::Measurement2DCollection> produce(const edm4eic::TrackerHitCollection& trk_hits);
0029
0030 private:
0031 std::shared_ptr<spdlog::logger> m_log;
0032
0033
0034 const dd4hep::Detector* m_dd4hepGeo;
0035 const dd4hep::rec::CellIDPositionConverter* m_converter;
0036
0037 std::shared_ptr<const ActsGeometryProvider> m_acts_context;
0038
0039
0040 int m_detid_b0tracker;
0041 };
0042
0043 }