Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:07:33

0001 #include "GeometryNavigationSteps_processor.h"
0002 
0003 #include <JANA/JApplication.h>
0004 #include <JANA/JApplicationFwd.h>
0005 #include <JANA/Services/JGlobalRootLock.h>
0006 #include <string>
0007 
0008 #include "services/geometry/acts/ACTSGeo_service.h"
0009 #include "services/rootfile/RootFile_service.h"
0010 
0011 void GeometryNavigationSteps_processor::Init() {
0012   std::string plugin_name = ("geometry_navigation_test");
0013 
0014   // Get JANA application
0015   auto* app = GetApplication();
0016 
0017   // Ask service locator a file to write histograms to
0018   auto root_file_service = app->GetService<RootFile_service>();
0019 
0020   // Get TDirectory for histograms root file
0021   auto globalRootLock = app->GetService<JGlobalRootLock>();
0022   globalRootLock->acquire_write_lock();
0023   auto* file = root_file_service->GetHistFile();
0024   globalRootLock->release_lock();
0025 
0026   // Create a directory for this plugin. And subdirectories for series of histograms
0027   m_dir_main = file->mkdir(plugin_name.c_str());
0028 
0029   // Get log level from user parameter or default
0030   InitLogger(app, plugin_name);
0031 
0032   auto acts_service = GetApplication()->GetService<ACTSGeo_service>();
0033 }
0034 
0035 void GeometryNavigationSteps_processor::Process(const std::shared_ptr<const JEvent>& /* event */) {}
0036 
0037 void GeometryNavigationSteps_processor::Finish() {}