ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
EventLoop
Root
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
13
#include <
EventLoop/RetrieveManager.h
>
14
15
#include <
AsgMessaging/StatusCode.h
>
16
#include <
EventLoop/Driver.h
>
17
#include <
EventLoop/ManagerData.h
>
18
#include <
EventLoop/ManagerOrder.h
>
19
#include <
EventLoop/MessageCheck.h
>
20
#include <
RootCoreUtils/Assert.h
>
21
#include <TSystem.h>
22
23
using namespace
EL::msgEventLoop;
24
25
//
26
// method implementations
27
//
28
29
namespace
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
{
46
case
Detail::ManagerStep::initial
:
47
{
48
data.nextStep =
Detail::ManagerStep::initialRetrieve
;
49
}
50
break
;
51
52
case
Detail::ManagerStep::initialRetrieve
:
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
62
case
Detail::ManagerStep::finalRetrieve
:
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
70
data.nextStep =
Detail::ManagerStep::final
;
71
}
72
break
;
73
74
default
:
75
(void)
true
;
// safe to do nothing
76
}
77
return ::StatusCode::SUCCESS;
78
}
79
}
80
}
Assert.h
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
ANA_MSG_FATAL
#define ANA_MSG_FATAL(xmsg)
Macro printing fatal messages.
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:296
StatusCode.h
Driver.h
ManagerData.h
ManagerOrder.h
MessageCheck.h
RetrieveManager.h
const
EL::Detail
Definition
AsgComponentFactories.h:20
EL::Detail::ManagerStep::final
@ final
Definition
ManagerStep.h:136
EL::Detail::ManagerStep::finalRetrieve
@ finalRetrieve
the final retrieve step
Definition
ManagerStep.h:134
EL::Detail::ManagerStep::initial
@ initial
this is just the initial step we do, nothing really happens here
Definition
ManagerStep.h:45
EL::Detail::ManagerStep::initialRetrieve
@ initialRetrieve
the initial retrieve step
Definition
ManagerStep.h:122
EL::Detail::ManagerOrder::OPERATION
@ OPERATION
the base-operation performed (e.g. submit, retrieve)
Definition
ManagerOrder.h:35
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::Detail::ManagerData
an internal data structure for passing data between different manager objects anbd step
Definition
ManagerData.h:46
Generated on
for ATLAS Offline Software by
1.17.0