ATLAS Offline Software
Loading...
Searching...
No Matches
RetrieveManager.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
9//
10// includes
11//
12
14
16#include <EventLoop/Driver.h>
21#include <TSystem.h>
22
23using namespace EL::msgEventLoop;
24
25//
26// method implementations
27//
28
29namespace EL
30{
31 namespace Detail
32 {
33 std::pair<Detail::ManagerOrder,std::string> RetrieveManager ::
34 getManagerOrder () const noexcept
35 {
36 return std::make_pair (ManagerOrder::OPERATION, "");
37 }
38
39
40
41 ::StatusCode RetrieveManager ::
42 doManagerStep (Detail::ManagerData& data) const
43 {
44 switch (data.step)
45 {
47 {
49 }
50 break;
51
53 {
54 if (gSystem->AccessPathName ((data.submitDir + "/submitted").c_str()) != 0)
55 {
56 ANA_MSG_ERROR ("job submission was unsuccessful");
57 return ::StatusCode::FAILURE;
58 }
59 }
60 break;
61
63 {
64 if (!data.retrieved)
65 {
66 ANA_MSG_FATAL ("Driver::retrieve not implemented in class " << typeid(*data.driver).name());
67 std::abort ();
68 }
69
71 }
72 break;
73
74 default:
75 (void) true; // safe to do nothing
76 }
77 return ::StatusCode::SUCCESS;
78 }
79 }
80}
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
#define ANA_MSG_FATAL(xmsg)
Macro printing fatal messages.
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
@ finalRetrieve
the final retrieve step
@ initial
this is just the initial step we do, nothing really happens here
Definition ManagerStep.h:45
@ initialRetrieve
the initial retrieve step
@ OPERATION
the base-operation performed (e.g. submit, retrieve)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
an internal data structure for passing data between different manager objects anbd step
Definition ManagerData.h:46