Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-27 07:03:08

0001 #include "GeometryNavigationSteps_processor.h"
0002 
0003 #include <JANA/JApplication.h>
0004 #include <JANA/JEvent.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 GeometryNavigationSteps_processor::GeometryNavigationSteps_processor(JApplication *app) :
0012         JEventProcessor(app)
0013 {
0014 }
0015 
0016 void GeometryNavigationSteps_processor::Init()
0017 {
0018     std::string plugin_name=("geometry_navigation_test");
0019 
0020     // Get JANA application
0021     auto *app = GetApplication();
0022 
0023     // Ask service locator a file to write histograms to
0024     auto root_file_service = app->GetService<RootFile_service>();
0025 
0026     // Get TDirectory for histograms root file
0027     auto globalRootLock = app->GetService<JGlobalRootLock>();
0028     globalRootLock->acquire_write_lock();
0029     auto *file = root_file_service->GetHistFile();
0030     globalRootLock->release_lock();
0031 
0032     // Create a directory for this plugin. And subdirectories for series of histograms
0033     m_dir_main = file->mkdir(plugin_name.c_str());
0034 
0035     // Get log level from user parameter or default
0036     InitLogger(app, plugin_name);
0037 
0038     auto acts_service = GetApplication()->GetService<ACTSGeo_service>();
0039 
0040 }
0041 
0042 
0043 void GeometryNavigationSteps_processor::Process(const std::shared_ptr<const JEvent>& event)
0044 {
0045 }
0046 
0047 void GeometryNavigationSteps_processor::Finish()
0048 {
0049 }