File indexing completed on 2025-01-30 10:04:55
0001 #pragma once
0002
0003 #include <Acts/Geometry/GeometryContext.hpp>
0004 #include <Acts/MagneticField/MagneticFieldContext.hpp>
0005 #include <JANA/JApplication.h>
0006 #include <JANA/JEvent.h>
0007 #include <JANA/JEventProcessor.h>
0008 #include <TDirectory.h>
0009 #include <spdlog/logger.h>
0010 #include <memory>
0011
0012 #include "extensions/spdlog/SpdlogMixin.h"
0013
0014 class GeometryNavigationSteps_processor:
0015 public JEventProcessor,
0016 public eicrecon::SpdlogMixin
0017 {
0018 public:
0019 explicit GeometryNavigationSteps_processor(JApplication *);
0020 ~GeometryNavigationSteps_processor() override = default;
0021
0022
0023
0024
0025
0026
0027
0028 void Init() override;
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 void Process(const std::shared_ptr<const JEvent>& event) override;
0039
0040
0041
0042
0043
0044
0045
0046 void Finish() override;
0047
0048 private:
0049
0050
0051 TDirectory *m_dir_main{};
0052 Acts::GeometryContext m_geoContext;
0053 Acts::MagneticFieldContext m_fieldContext;
0054 std::shared_ptr<spdlog::logger> m_log;
0055
0056 };