ATLAS Offline Software
Loading...
Searching...
No Matches
EL::Detail::BaseManager Class Referencefinal

a Manager to handle all of the basic tasks More...

#include <BaseManager.h>

Inheritance diagram for EL::Detail::BaseManager:
Collaboration diagram for EL::Detail::BaseManager:

Public Member Functions

virtual std::pair< Detail::ManagerOrder, std::string > getManagerOrder () const noexcept override
 get the order/name of this manager
virtual::StatusCode doManagerStep (Detail::ManagerData &data) const override
 do whatever needs to be done for the given submission step

Detailed Description

a Manager to handle all of the basic tasks

Definition at line 22 of file BaseManager.h.

Member Function Documentation

◆ doManagerStep()

StatusCode EL::Detail::BaseManager::doManagerStep ( Detail::ManagerData & data) const
overridevirtual

do whatever needs to be done for the given submission step

Guarantee
basic
Failures
job configuration errors
driver errors

Implements EL::Detail::Manager.

Definition at line 40 of file BaseManager.cxx.

42 {
43 switch (data.step)
44 {
46 // normally this should get overriden by the operation
47 // manager, but this is a safety fallback in case the
48 // operation doesn't do that, leaving us with nothing
49 // happening
50 data.nextStep = ManagerStep::final;
51 break;
52
54 ANA_MSG_INFO ("done");
55 break;
56
57 default:
58 break;
59 }
60 return ::StatusCode::SUCCESS;
61 }
#define ANA_MSG_INFO(xmsg)
Macro printing info messages.
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
@ initial
this is just the initial step we do, nothing really happens here
Definition ManagerStep.h:45

◆ getManagerOrder()

std::pair< Detail::ManagerOrder, std::string > EL::Detail::BaseManager::getManagerOrder ( ) const
overridevirtualnoexcept

get the order/name of this manager

This is both used to identify the manager we are looking at, and to make sure they get executed in the right order. It is a mistake to load two managers that report the same order.

This is a pair of an enum that defines the absolute order of managers, and a string that identifies the stream that this manager belongs to. If this manager is not specific to a stream this should be the empty stream.

Guarantee
no-fail

Implements EL::Detail::Manager.

Definition at line 32 of file BaseManager.cxx.

34 {
35 return std::make_pair (ManagerOrder::BASE, "");
36 }
@ BASE
the most basic operations, common for all tasks

The documentation for this class was generated from the following files: