ATLAS Offline Software
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>
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  {
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 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Driver.h
RetrieveManager.h
ANA_MSG_ERROR
#define ANA_MSG_ERROR(xmsg)
Macro printing error messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:294
EL::Detail::ManagerStep::final
@ final
Assert.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
MessageCheck.h
ManagerOrder.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ManagerData.h
EL::Detail::ManagerStep::initial
@ initial
this is just the initial step we do, nothing really happens here
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
ANA_MSG_FATAL
#define ANA_MSG_FATAL(xmsg)
Macro printing fatal messages.
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:296
StatusCode.h
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
EL::Detail::ManagerStep::finalRetrieve
@ finalRetrieve
the final retrieve step
EL::Detail::ManagerStep::initialRetrieve
@ initialRetrieve
the initial retrieve step
EL::Detail::ManagerData
an internal data structure for passing data between different manager objects anbd step
Definition: ManagerData.h:46