ATLAS Offline Software
WorkerConfigModule.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 //
9 // includes
10 //
11 
13 
14 #include <EventLoop/Job.h>
15 #include <EventLoop/ModuleData.h>
16 #include <EventLoop/WorkerConfig.h>
17 #include <EventLoop/Worker.h>
20 #include <TPython.h>
21 
22 //
23 // method implementations
24 //
25 
26 namespace EL
27 {
28  namespace Detail
29  {
32  {
33  std::string configFile = data.m_worker->metaData()->castString (Job::optWorkerConfigFile, "");
34  if (!configFile.empty())
35  {
39  TPython::Bind (&config, "workerConfig");
40  TPython::Exec ("fillWorkerConfig (workerConfig)");
41  TPython::Bind (nullptr, "workerConfig");
42  }
43 
44  return StatusCode::SUCCESS;
45  }
46  }
47 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
taskman.configFile
configFile
Definition: taskman.py:311
EL::Detail::ModuleData
the data the EventLoop core classes are sharing with the Module implementation
Definition: ModuleData.h:64
EL::Detail::WorkerConfigModule::onInitialize
virtual StatusCode onInitialize(ModuleData &data) override
action just before algorithms are initialized
Definition: WorkerConfigModule.cxx:31
Job.h
python.base_data.config
config
Definition: base_data.py:21
EL::WorkerConfig
Definition: WorkerConfig.h:27
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
WorkerConfigModule.h
MetaObject.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::Job::optWorkerConfigFile
static const std::string optWorkerConfigFile
a python configuration file that will be executed on the worker
Definition: Job.h:243
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
PathResolver.h
LoadMacro
gROOT LoadMacro("../ISF_FastCaloSimParametrization/MeanAndRMS.h+")
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
PathResolverFindDataFile
std::string PathResolverFindDataFile(const std::string &logical_file_name)
Definition: PathResolver.cxx:379
Worker.h
ModuleData.h
WorkerConfig.h