File indexing completed on 2025-10-13 09:14:53
0001
0002
0003
0004 #pragma once
0005
0006 #include <DDRec/CellIDPositionConverter.h>
0007 #include <algorithms/algorithm.h>
0008 #include <edm4eic/RawTrackerHitCollection.h>
0009 #include <edm4eic/TrackerHitCollection.h>
0010 #include <spdlog/logger.h>
0011 #include <memory>
0012 #include <string>
0013 #include <string_view>
0014
0015 #include "LGADHitCalibrationConfig.h"
0016 #include "algorithms/interfaces/WithPodConfig.h"
0017
0018 namespace eicrecon {
0019
0020 using LGADHitCalibrationAlgorithm =
0021 algorithms::Algorithm<algorithms::Input<edm4eic::RawTrackerHitCollection>,
0022 algorithms::Output<edm4eic::TrackerHitCollection>>;
0023
0024 class LGADHitCalibration : public LGADHitCalibrationAlgorithm,
0025 public WithPodConfig<LGADHitCalibrationConfig> {
0026
0027 public:
0028 LGADHitCalibration(std::string_view name)
0029 : LGADHitCalibrationAlgorithm{name, {"TOFBarrelADCTDC"}, {"TOFBarrelCalHit"}, ""} {};
0030
0031 void init() final;
0032 void process(const Input&, const Output&) const final;
0033
0034 private:
0035 std::shared_ptr<spdlog::logger> m_log;
0036
0037 const dd4hep::rec::CellIDPositionConverter* m_converter = nullptr;
0038 };
0039 }