File indexing completed on 2025-07-14 08:14:46
0001 #include "GeometryNavigationSteps_processor.h"
0002
0003 #include <JANA/JApplication.h>
0004 #include <JANA/JApplicationFwd.h>
0005 #include <JANA/JEvent.h>
0006 #include <JANA/Services/JGlobalRootLock.h>
0007 #include <string>
0008
0009 #include "services/geometry/acts/ACTSGeo_service.h"
0010 #include "services/rootfile/RootFile_service.h"
0011
0012 void GeometryNavigationSteps_processor::Init() {
0013 std::string plugin_name = ("geometry_navigation_test");
0014
0015
0016 auto* app = GetApplication();
0017
0018
0019 auto root_file_service = app->GetService<RootFile_service>();
0020
0021
0022 auto globalRootLock = app->GetService<JGlobalRootLock>();
0023 globalRootLock->acquire_write_lock();
0024 auto* file = root_file_service->GetHistFile();
0025 globalRootLock->release_lock();
0026
0027
0028 m_dir_main = file->mkdir(plugin_name.c_str());
0029
0030
0031 InitLogger(app, plugin_name);
0032
0033 auto acts_service = GetApplication()->GetService<ACTSGeo_service>();
0034 }
0035
0036 void GeometryNavigationSteps_processor::Process(const std::shared_ptr<const JEvent>& ) {}
0037
0038 void GeometryNavigationSteps_processor::Finish() {}