ATLAS Offline Software
AthenaMPToolBase.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "AthenaMPToolBase.h"
6 #include "copy_file_icc_hack.h"
8 #include "CxxUtils/xmalloc.h"
9 
10 #include "GaudiKernel/IEvtSelector.h"
11 #include "GaudiKernel/IIoComponentMgr.h"
12 #include "GaudiKernel/IFileMgr.h"
13 #include "GaudiKernel/IMessageSvc.h"
14 
15 #include <sys/stat.h>
16 #include <sstream>
17 #include <fstream>
18 #include <unistd.h>
19 #include <stdio.h>
20 #include <stdint.h>
21 #include <signal.h>
22 
23 #include <iterator>
24 #include <filesystem>
25 
26 namespace AthenaMPToolBase_d {
27  std::atomic<bool> sig_done = false;
28  void pauseForDebug(int /*sig*/) {
29  sig_done = true;
30  }
31 }
32 
34  , const std::string& name
35  , const IInterface* parent)
36  : base_class(type,name,parent)
37  , m_evtProcessor("AthenaEventLoopMgr",name)
38  , m_appMgr("ApplicationMgr",name)
39  , m_fileMgr("FileMgr",name)
40  , m_ioMgr("IoComponentMgr",name)
41 {
42 }
43 
45 {
46 }
47 
49 {
50  ATH_MSG_DEBUG("In initialize");
51 
52  if(m_isPileup) {
53  m_evtProcessor = ServiceHandle<IEventProcessor>("PileUpEventLoopMgr",name());
54  ATH_MSG_INFO("The job running in pileup mode");
55  }
56  else {
57  ATH_MSG_INFO("The job running in non-pileup mode");
58  }
59 
60  ATH_CHECK(m_evtProcessor.retrieve());
61  ATH_CHECK(m_appMgr.retrieve());
62 
63  SmartIF<IProperty> prpMgr(serviceLocator());
64  if(prpMgr.isValid()) {
65  // Get event selector name. Retrieve EventSelector and EventSeek
66  m_evtSelName = prpMgr->getProperty("EvtSel").toString();
67  // If the job runs with no event selector, then the name will be empty
68  if(!m_evtSelName.empty()) {
69  m_evtSelector = serviceLocator()->service(m_evtSelName);
70  ATH_CHECK(m_evtSelector.isValid());
71  }
72  }
73  else {
74  ATH_MSG_ERROR("IProperty interface not found in ApplicationMgr");
75  return StatusCode::FAILURE;
76  }
77 
78  ATH_CHECK(m_fileMgr.retrieve());
79 
80  SmartIF<IProperty> prpMgr1(m_fileMgr.get());
81  ATH_CHECK(prpMgr1.isValid());
82  m_fileMgrLog = prpMgr1->getProperty("LogFile").toString();
83 
84  return StatusCode::SUCCESS;
85 }
86 
88 {
89  return StatusCode::SUCCESS;
90 }
91 
92 StatusCode AthenaMPToolBase::wait_once(pid_t& pid)
93 {
94  bool flag(true);
96 
97  if(flag) { // Either none of the processes changed its status or one of the processes finished successfully
98  return StatusCode::SUCCESS;
99  }
100  else {
101  if(pid<0) { // Wait failed on the group
102  ATH_MSG_ERROR("Wait failed on the Process Group!");
103  }
104  else {
105  ATH_MSG_WARNING("Abnormal termination of the process PID=" << pid);
106  }
107  return StatusCode::FAILURE;
108  }
109 }
110 
112 {
113  ATH_MSG_INFO("Statuses of sub-processes");
114  const std::vector<AthenaInterprocess::ProcessStatus>& statuses = m_processGroup->getStatuses();
115  for(size_t i=0; i<statuses.size(); ++i)
116  ATH_MSG_INFO("*** Process PID=" << statuses[i].pid << ". Status " << ((statuses[i].exitcode)?"FAILURE":"SUCCESS"));
117 }
118 
120 {
122 
123  if(m_fileMgrLog.empty()) {
124  ATH_MSG_WARNING(name() << " cannot make output report because FileMgr has not been configured to write log file!");
125  }
126  else {
127  // Collect output files made by the workers
128  std::string line;
129  for(int i=0;i<m_nprocs;++i) {
130  // Get the name of FileMgr log
131  std::ostringstream workindex;
132  workindex<<i;
134  logFilePath /= std::filesystem::path(m_subprocDirPrefix+workindex.str());
135  std::filesystem::path logFile(logFilePath);
137  if(!(std::filesystem::exists(logFile)&&std::filesystem::is_regular_file(logFile))) {
138  ATH_MSG_WARNING(logFile.string() << " either does not exist or is not a regular file. Skipping");
139  continue;
140  }
141 
142  ATH_MSG_DEBUG("FileMgr log file (" << i << ") " << logFile);
143 
144  std::ifstream inpStream(logFile.string().c_str());
145  std::set<std::string> reportedFiles; // Don't report the same file twice
146  while(!inpStream.eof()) {
147  std::getline(inpStream,line);
148  if(line.find("WRITE")!=std::string::npos) {
149  // Parse the entry
150  size_t startpos(0);
151  std::vector<std::string> entries;
152  while(startpos<line.size()) {
153  while(line[startpos]==' ')
154  startpos++;
155 
156  size_t endpos = line.find(' ',startpos);
157  if(endpos==std::string::npos) endpos = line.size();
158  entries.push_back(line.substr(startpos,endpos-startpos));
159  startpos=endpos+1;
160  }
161 
162  // enties[0] is filename
163  std::filesystem::path filenamePath(entries[0]);
164  std::filesystem::path basename = filenamePath.filename();
165  if(reportedFiles.find(basename.string())==reportedFiles.end())
166  reportedFiles.insert(basename.string());
167  else
168  continue;
169  std::filesystem::path absolutename = basename.is_absolute() ? basename : std::filesystem::absolute(std::filesystem::path(logFilePath)/=basename);
170  AthenaMP::AllWorkerOutputsIterator it1 = jobOutputs->find(basename.string());
171  if(it1==jobOutputs->end()) {
172  (*jobOutputs)[basename.string()] = AthenaMP::SingleWorkerOutputs();
173  (*jobOutputs)[basename.string()].reserve(m_nprocs);
174  }
175 
176  AthenaMP::WorkerOutput newOutput;
177  newOutput.filename = absolutename.string();
178  newOutput.technology = entries[1];
179  newOutput.description = entries[2];
180  newOutput.access_mode = entries[3];
181  newOutput.shared = (line.find("SHARED")!=std::string::npos);
182 
183  (*jobOutputs)[basename.string()].emplace_back(std::move(newOutput));
184  }
185  }
186  }
187  }
188  return jobOutputs;
189 }
190 
191 void AthenaMPToolBase::useFdsRegistry(std::shared_ptr<AthenaInterprocess::FdsRegistry> registry)
192 {
193  m_fdsRegistry = std::move(registry);
194 }
195 
196 void AthenaMPToolBase::setRandString(const std::string& randStr)
197 {
198  m_randStr = randStr;
199 }
200 
202 {
204  kill(child.getProcessID(),SIGKILL);
205  }
206 }
207 
208 std::unique_ptr<AthenaInterprocess::ScheduledWork> AthenaMPToolBase::operator()(const AthenaInterprocess::ScheduledWork& param)
209 {
210  std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork;
211  bool all_ok(true);
212 
213  if(param.size==sizeof(Func_Flag)) {
214  Func_Flag flag;
215  memcpy(&flag,param.data,param.size);
216  switch(flag) {
217  case FUNC_BOOTSTRAP:
218  {
219  outwork = bootstrap_func();
220  break;
221  }
222  case FUNC_EXEC:
223  {
224  outwork = exec_func();
225  break;
226  }
227  case FUNC_FIN:
228  {
229  outwork = fin_func();
230  break;
231  }
232  default:
233  {
234  ATH_MSG_ERROR("Unexpected value for the function flag");
235  all_ok = false;
236  }
237  }
238  }
239  else {
240  ATH_MSG_ERROR("Unexpected parameter size");
241  all_ok = false;
242  }
243 
244  if(!all_ok) {
245  outwork = std::unique_ptr<AthenaInterprocess::ScheduledWork>(new AthenaInterprocess::ScheduledWork);
246  outwork->data = CxxUtils::xmalloc(sizeof(int));
247  *(int*)(outwork->data) = 1; // Error code: for now use 0 success, 1 failure
248  outwork->size = sizeof(int);
249  }
250 
251  return outwork;
252 }
253 
254 int AthenaMPToolBase::mapAsyncFlag(Func_Flag flag, pid_t pid)
255 {
257  params.data = (void*)(&flag);
258  params.size = sizeof(flag);
259  if(m_processGroup->map_async(this,&params,pid)){
260  if(pid)
261  ATH_MSG_ERROR("Unable to map the flag on subprocess pid=" << pid);
262  else
263  ATH_MSG_ERROR("Unable to map the flag on all subprocesses in the group");
264  return -1;
265  }
266  return 0;
267 }
268 
269 int AthenaMPToolBase::redirectLog(const std::string& rundir, bool addTimeStamp)
270 {
271  // Redirect both stdout and stderr to the same file AthenaMP.log
272  int dup2result1(0), dup2result2(0);
273 
274  int newout = open(std::string(rundir+"/AthenaMP.log").c_str(),O_CREAT | O_RDWR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
275  if(newout==-1) {
276  ATH_MSG_ERROR("Unable to open log file in the run directory. " << fmterror(errno));
277  return -1;
278  }
279  dup2result1 = dup2(newout, STDOUT_FILENO);
280  dup2result2 = dup2(newout, STDERR_FILENO);
281  TEMP_FAILURE_RETRY(close(newout));
282  if(dup2result1==-1) {
283  ATH_MSG_ERROR("Unable to redirect standard output. " << fmterror(errno));
284  return -1;
285  }
286  if(dup2result2==-1) {
287  ATH_MSG_ERROR("Unable to redirect standard error. " << fmterror(errno));
288  return -1;
289  }
290 
291  if(addTimeStamp) {
292  SmartIF<IProperty> propertyServer(msgSvc());
293  if(propertyServer==0) {
294  ATH_MSG_ERROR("Unable to cast message svc to IProperty");
295  return -1;
296  }
297 
298  std::string propertyName("Format");
299  std::string oldFormat("");
300  StringProperty formatProp(propertyName,oldFormat);
301  StatusCode sc = propertyServer->getProperty(&formatProp);
302  if(sc.isFailure()) {
303  ATH_MSG_WARNING("Message Service does not have Format property");
304  }
305  else {
306  oldFormat = formatProp.value();
307  if(oldFormat.find("%t")==std::string::npos) {
308  // Add time stamps
309  std::string newFormat("%t " + oldFormat);
310  StringProperty newFormatProp(std::move(propertyName),newFormat);
311  ATH_CHECK(propertyServer->setProperty(newFormatProp), -1);
312  }
313  else {
314  ATH_MSG_DEBUG("MsgSvc format already contains timestamps. Nothing to be done");
315  }
316  }
317  }
318 
319  return 0;
320 }
321 
322 int AthenaMPToolBase::updateIoReg(const std::string& rundir)
323 {
324  ATH_CHECK(m_ioMgr.retrieve(), -1);
325 
326  // update the IoRegistry for the new workdir - make sure we use absolute path
328  ATH_CHECK(m_ioMgr->io_update_all(abs_rundir.string()), -1);
329 
330  return 0;
331 }
332 
333 std::string AthenaMPToolBase::fmterror(int errnum)
334 {
335  char buf[256];
336  strerror_r(errnum, buf, sizeof(buf));
337  return std::string(buf);
338 }
339 
341 {
342  // Reopen file descriptors.
343  // First go over all open files, which have been registered with the FileMgr
344  // Then also check the FdsRegistry, in case it contains some files not registered with the FileMgr
345  std::set<int> fdLog;
346 
347  // Query the FileMgr contents
348  std::vector<const Io::FileAttr*> filemgrFiles;
349  std::vector<const Io::FileAttr*>::const_iterator itFile;
350  unsigned filenum = m_fileMgr->getFiles(filemgrFiles); // Get attributes for open files only. We don't care about closed ones at this point
351  if(filenum!=filemgrFiles.size())
352  ATH_MSG_WARNING("getFiles returned " << filenum << " while vector size is " << filemgrFiles.size());
353 
354  for(itFile=filemgrFiles.begin();itFile!=filemgrFiles.end();++itFile) {
355  ATH_MSG_DEBUG("* " << **itFile);
356  const std::string& filename = (**itFile).name();
357  Io::Fd fd = (**itFile).fd();
358 
359  if(fd==-1) {
360  // It is legal to have fd=-1 for remote inputs
361  // On the other hand, these inputs should not remain open after fork. The issue being tracked at ATEAM-434.
362  // So, this hopefully is a temporary patch
363  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FileMgr. Skip FD reopening. File name: " << filename);
364  continue;
365  }
366 
367  if(reopenFd(fd,filename))
368  return -1;
369 
370  fdLog.insert(fd);
371  }
372 
373  // Check the FdsRegistry
374  for(const AthenaInterprocess::FdsRegistryEntry& regEntry : *m_fdsRegistry) {
375  if(fdLog.find(regEntry.fd)!=fdLog.end()) {
376  ATH_MSG_DEBUG("The file from FdsRegistry " << regEntry.name << " was registered with FileMgr. Skip reopening");
377  }
378  else {
379  ATH_MSG_WARNING("The file " << regEntry.name << " has not been registered with the FileMgr!");
380 
381  if(regEntry.fd==-1) {
382  // Same protection as the one above
383  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FD Registry. Skip FD reopening. File name: " << regEntry.name);
384  continue;
385  }
386 
387  if(reopenFd(regEntry.fd,regEntry.name))
388  return -1;
389 
390  fdLog.insert(regEntry.fd);
391  }
392  }
393  return 0;
394 }
395 
397 {
398  if(std::filesystem::is_regular_file("PoolFileCatalog.xml.AthenaMP-saved"))
399  COPY_FILE_HACK("PoolFileCatalog.xml.AthenaMP-saved",dest_path.string()+"/PoolFileCatalog.xml");
400  return 0;
401 }
402 
404 {
405  ATH_MSG_INFO("Bootstrap worker PID " << getpid() << " - waiting for SIGUSR1");
406  sigset_t mask, oldmask;
407 
409 
410  sigemptyset (&mask);
411  sigaddset (&mask, SIGUSR1);
412 
413  sigprocmask (SIG_BLOCK, &mask, &oldmask);
415  sigsuspend (&oldmask);
416  sigprocmask (SIG_UNBLOCK, &mask, NULL);
417 }
418 
419 int AthenaMPToolBase::reopenFd(int fd, const std::string& name)
420 {
421  ATH_MSG_DEBUG("Attempting to reopen descriptor for " << name);
422  int old_openflags = fcntl(fd,F_GETFL,0);
423  switch(old_openflags & O_ACCMODE) {
424  case O_RDONLY: {
425  ATH_MSG_DEBUG("The File Access Mode is RDONLY");
426  break;
427  }
428  case O_WRONLY: {
429  ATH_MSG_DEBUG("The File Access Mode is WRONLY");
430  break;
431  }
432  case O_RDWR: {
433  ATH_MSG_DEBUG("The File Access Mode is RDWR");
434  break;
435  }
436  }
437 
438  int old_descflags = fcntl(fd,F_GETFD,0);
439  off_t oldpos = lseek(fd,0,SEEK_CUR);
440  if(oldpos==-1) {
441  if(errno==ESPIPE) {
442  ATH_MSG_WARNING("Dealing with PIPE. Skipping ... (FIXME!)");
443  }
444  else {
445  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on " << name << ". " << fmterror(errno));
446  return -1;
447  }
448  }
449  else {
450  Io::Fd newfd = open(name.c_str(),old_openflags);
451  if(newfd==-1) {
452  ATH_MSG_ERROR("When re-opening file descriptors unable to open " << name << " for reading. " << fmterror(errno));
453  return -1;
454  }
455  if(lseek(newfd,oldpos,SEEK_SET)==-1){
456  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on the newly opened " << name << ". " << fmterror(errno));
457  TEMP_FAILURE_RETRY(close(newfd));
458  return -1;
459  }
460  TEMP_FAILURE_RETRY(close(fd));
461  if(dup2(newfd,fd)==-1) {
462  ATH_MSG_ERROR("When re-opening file descriptors unable to duplicate descriptor for " << name << ". " << fmterror(errno));
463  TEMP_FAILURE_RETRY(close(newfd));
464  return -1;
465  }
466  if(fcntl(fd,F_SETFD,old_descflags)==-1) {
467  ATH_MSG_ERROR("When re-opening file descriptors unable to set descriptor flags for " << name << ". " << fmterror(errno));
468  TEMP_FAILURE_RETRY(close(newfd));
469  return -1;
470  }
471  TEMP_FAILURE_RETRY(close(newfd));
472  }
473  return 0;
474 }
AthenaMPToolBase::killChildren
virtual void killChildren() override
Definition: AthenaMPToolBase.cxx:201
python.Dso.registry
registry
Definition: Control/AthenaServices/python/Dso.py:158
python.DQPostProcessMod.rundir
def rundir(fname)
Definition: DQPostProcessMod.py:115
pid_t
int32_t pid_t
Definition: FPGATrackSimTypes.h:19
AthenaInterprocess::ProcessGroup::getStatuses
const std::vector< ProcessStatus > & getStatuses() const
Definition: ProcessGroup.cxx:204
AthenaMPToolBase::waitForSignal
void waitForSignal()
Definition: AthenaMPToolBase.cxx:403
AthenaMPToolBase::fin_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > fin_func()=0
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthenaMPToolBase_d
Definition: AthenaMPToolBase.cxx:26
AthenaMP::WorkerOutput::description
std::string description
Definition: IAthenaMPTool.h:24
AthenaInterprocess::ScheduledWork::size
int size
Definition: IMessageDecoder.h:14
AthenaMPToolBase::m_processGroup
AthenaInterprocess::ProcessGroup * m_processGroup
Definition: AthenaMPToolBase.h:91
AthenaMPToolBase::~AthenaMPToolBase
virtual ~AthenaMPToolBase() override
Definition: AthenaMPToolBase.cxx:44
AthenaInterprocess::ScheduledWork
Definition: IMessageDecoder.h:12
AthenaMPToolBase::exec_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > exec_func()=0
AthenaMPToolBase::m_randStr
std::string m_randStr
Definition: AthenaMPToolBase.h:101
AthenaMPToolBase::m_nprocs
int m_nprocs
Number of workers spawned by the master process.
Definition: AthenaMPToolBase.h:85
AthenaMPToolBase::FUNC_FIN
@ FUNC_FIN
Definition: AthenaMPToolBase.h:70
AthenaInterprocess::ProcessGroup::getChildren
const std::vector< Process > & getChildren() const
Definition: ProcessGroup.cxx:197
AthenaMPToolBase::setRandString
virtual void setRandString(const std::string &randStr) override
Definition: AthenaMPToolBase.cxx:196
plotting.yearwise_luminosity.absolute
absolute
Definition: yearwise_luminosity.py:29
AthenaMPToolBase::fmterror
std::string fmterror(int errnum)
Definition: AthenaMPToolBase.cxx:333
DeMoUpdate.statuses
list statuses
Definition: DeMoUpdate.py:568
AthenaMPToolBase::generateOutputReport
virtual AthenaMP::AllWorkerOutputs_ptr generateOutputReport() override
Definition: AthenaMPToolBase.cxx:119
AthenaMPToolBase::m_evtSelName
std::string m_evtSelName
Name of the event selector.
Definition: AthenaMPToolBase.h:89
AthenaMPToolBase::finalize
virtual StatusCode finalize() override
Definition: AthenaMPToolBase.cxx:87
AthenaInterprocess::ScheduledWork::data
void * data
Definition: IMessageDecoder.h:13
athena.exitcode
int exitcode
Definition: athena.py:161
ProcessGroup.h
dq_defect_bulk_create_defects.line
line
Definition: dq_defect_bulk_create_defects.py:27
AthenaMPToolBase::m_fileMgrLog
std::string m_fileMgrLog
Definition: AthenaMPToolBase.h:99
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:459
AthenaMP::AllWorkerOutputsIterator
AllWorkerOutputs::iterator AllWorkerOutputsIterator
Definition: IAthenaMPTool.h:30
AthenaMP::SingleWorkerOutputs
std::vector< WorkerOutput > SingleWorkerOutputs
Definition: IAthenaMPTool.h:28
Fd
IIoSvc::Fd Fd
Definition: IoSvc.cxx:22
sigaddset
#define sigaddset(x, y)
Definition: SealSignal.h:84
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthenaMPToolBase::FUNC_EXEC
@ FUNC_EXEC
Definition: AthenaMPToolBase.h:69
COPY_FILE_HACK
#define COPY_FILE_HACK(_src, _dest)
Definition: copy_file_icc_hack.h:15
sigset_t
int sigset_t
Definition: SealSignal.h:80
copy_file_icc_hack.h
AthenaMPToolBase::m_evtSelector
SmartIF< IEvtSelector > m_evtSelector
Definition: AthenaMPToolBase.h:98
AthenaMPToolBase::m_appMgr
ServiceHandle< IAppMgrUI > m_appMgr
Definition: AthenaMPToolBase.h:95
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthenaMPToolBase::m_isPileup
Gaudi::Property< bool > m_isPileup
Definition: AthenaMPToolBase.h:103
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
AthenaMPToolBase::bootstrap_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > virtual operator() ATLAS_NOT_THREAD_SAFE(const AthenaInterprocess std::unique_ptr< AthenaInterprocess::ScheduledWork > bootstrap_func()=0
AthenaMPToolBase::Func_Flag
Func_Flag
Definition: AthenaMPToolBase.h:67
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthenaMPToolBase::useFdsRegistry
virtual void useFdsRegistry(std::shared_ptr< AthenaInterprocess::FdsRegistry >) override
Definition: AthenaMPToolBase.cxx:191
master.flag
bool flag
Definition: master.py:29
AthenaMPToolBase::reopenFd
int reopenFd(int fd, const std::string &name)
Definition: AthenaMPToolBase.cxx:419
AthenaMPToolBase::AthenaMPToolBase
AthenaMPToolBase()
AthenaMP::WorkerOutput::shared
bool shared
Definition: IAthenaMPTool.h:26
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthenaMPToolBase_d::pauseForDebug
void pauseForDebug(int)
Definition: AthenaMPToolBase.cxx:28
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthenaMP::WorkerOutput::access_mode
std::string access_mode
Definition: IAthenaMPTool.h:25
AthenaMPToolBase::updateIoReg
int updateIoReg(const std::string &rundir)
Definition: AthenaMPToolBase.cxx:322
AthenaMPToolBase::initialize
virtual StatusCode initialize() override
Definition: AthenaMPToolBase.cxx:48
ReadFromCoolCompare.fd
fd
Definition: ReadFromCoolCompare.py:196
AthenaMPToolBase.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AthenaMPToolBase::m_ioMgr
ServiceHandle< IIoComponentMgr > m_ioMgr
Definition: AthenaMPToolBase.h:97
AthenaMPToolBase::redirectLog
int redirectLog(const std::string &rundir, bool addTimeStamp=true)
Definition: AthenaMPToolBase.cxx:269
AthenaInterprocess::Process
Definition: Process.h:17
Cut::signal
@ signal
Definition: SUSYToolsAlg.cxx:67
Trk::open
@ open
Definition: BinningType.h:40
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthenaMP::WorkerOutput::technology
std::string technology
Definition: IAthenaMPTool.h:23
AthenaInterprocess::FdsRegistryEntry
Definition: FdsRegistry.h:13
AthenaMP::AllWorkerOutputs_ptr
std::unique_ptr< AllWorkerOutputs > AllWorkerOutputs_ptr
Definition: IAthenaMPTool.h:32
AthenaMP::WorkerOutput
Definition: IAthenaMPTool.h:21
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:23
AthenaMPToolBase::reportSubprocessStatuses
virtual void reportSubprocessStatuses() override
Definition: AthenaMPToolBase.cxx:111
entries
double entries
Definition: listroot.cxx:49
AthenaMPToolBase::m_subprocDirPrefix
std::string m_subprocDirPrefix
For ex. "worker__".
Definition: AthenaMPToolBase.h:88
AthenaMPToolBase::m_subprocTopDir
std::string m_subprocTopDir
Top run directory for subprocesses.
Definition: AthenaMPToolBase.h:87
python.dummyaccess.exists
def exists(filename)
Definition: dummyaccess.py:9
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
columnar::operator()
decltype(auto) operator()(ObjectId< CI, CM > id) const noexcept
Definition: ColumnAccessor.h:173
CxxUtils::xmalloc
void * xmalloc(size_t size)
Trapping version of malloc.
Definition: xmalloc.cxx:31
AthenaInterprocess::ProcessGroup::wait_once
pid_t wait_once(bool &flag)
Definition: ProcessGroup.cxx:149
jetMakeRefSamples.logFile
string logFile
Definition: jetMakeRefSamples.py:56
AthenaMPToolBase::handleSavedPfc
int handleSavedPfc(const std::filesystem::path &dest_path)
Definition: AthenaMPToolBase.cxx:396
AthenaMPToolBase::m_fileMgr
ServiceHandle< IFileMgr > m_fileMgr
Definition: AthenaMPToolBase.h:96
AthenaMP::AllWorkerOutputs
std::map< std::string, SingleWorkerOutputs > AllWorkerOutputs
Definition: IAthenaMPTool.h:29
AthenaMPToolBase::FUNC_BOOTSTRAP
@ FUNC_BOOTSTRAP
Definition: AthenaMPToolBase.h:68
xmalloc.h
Trapping version of malloc.
AthenaMPToolBase::reopenFds
int reopenFds()
Definition: AthenaMPToolBase.cxx:340
sigemptyset
#define sigemptyset(x)
Definition: SealSignal.h:82
AthenaMPToolBase::m_fdsRegistry
std::shared_ptr< AthenaInterprocess::FdsRegistry > m_fdsRegistry
Definition: AthenaMPToolBase.h:100
AthenaMP::WorkerOutput::filename
std::string filename
Definition: IAthenaMPTool.h:22
AthenaMPToolBase_d::sig_done
std::atomic< bool > sig_done
Definition: AthenaMPToolBase.cxx:27
ServiceHandle< IEventProcessor >
AthenaMPToolBase::m_evtProcessor
ServiceHandle< IEventProcessor > m_evtProcessor
Definition: AthenaMPToolBase.h:94
beamspotman.basename
basename
Definition: beamspotman.py:636