![]() |
The Gaudi Framework
master (cc9a61f4)
|
The Application Manager class. More...
#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/ApplicationMgr/ApplicationMgr.h>


Public Member Functions | |
| ApplicationMgr (IInterface *=nullptr) | |
| void const * | i_cast (const InterfaceID &iid) const override |
| StatusCode | run () override |
| StatusCode | configure () override |
| StatusCode | terminate () override |
| StatusCode | initialize () override |
| StatusCode | start () override |
| StatusCode | stop () override |
| StatusCode | finalize () override |
| StatusCode | nextEvent (int maxevt) override |
| const std::string & | name () const override |
| EventContext | createEventContext () override |
| implementation of IEventProcessor::createEventContext() | |
| StatusCode | executeEvent (EventContext &&ctx) override |
| implementation of IEventProcessor::executeEvent(void*) | |
| StatusCode | executeRun (int evtmax) override |
| implementation of IEventProcessor::executeRun(int) | |
| StatusCode | stopRun () override |
| implementation of IEventProcessor::stopRun() | |
| Gaudi::StateMachine::State | FSMState () const override |
| Gaudi::StateMachine::State | targetFSMState () const override |
| StatusCode | reinitialize () override |
| StatusCode | restart () override |
| StatusCode | sysInitialize () override |
| StatusCode | sysStart () override |
| StatusCode | sysStop () override |
| StatusCode | sysFinalize () override |
| StatusCode | sysReinitialize () override |
| StatusCode | sysRestart () override |
| void | push (EventContext &&ctx) override |
| bool | empty () const override |
| std::optional< Gaudi::Interfaces::IQueueingEventProcessor::ResultType > | pop () override |
| Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > | |
| StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) |
| Set the property from a property. | |
| StatusCode | setProperty (const std::string &name, const char *v) |
| Special case for string literals. | |
| StatusCode | setProperty (const std::string &name, const std::string &v) |
| Special case for std::string. | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| PropertyHolder ()=default | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Details::PropertyBase &prop) |
| Declare a property. | |
| Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
| Declare a remote property. | |
| StatusCode | setPropertyRepr (const std::string &n, const std::string &r) override |
| set the property from name and value string representation | |
| StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override |
| get the property | |
| const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override |
| get all properties | |
| bool | hasProperty (std::string_view name) const override |
| Return true if we have a property with the given name. | |
| Gaudi::Details::PropertyBase * | property (std::string_view name) const |
| \fixme property and bindPropertiesTo should be protected | |
| void | bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc) |
| PropertyHolder & | operator= (const PropertyHolder &)=delete |
| Public Member Functions inherited from CommonMessagingBase | |
| virtual | ~CommonMessagingBase ()=default |
| Virtual destructor. | |
| const SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the cached level (originally extracted from the embedded MsgStream) | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Gaudi::Details::PropertyBase handlers | |
| typedef std::map< unsigned long, SmartIF< IComponentManager > > | ManagersMap |
| Typedef for the map of component managers, the key is the "id" field of the basic InterfaceID of the managed components. | |
| ManagersMap | m_managers |
| Map of known component managers. | |
| Gaudi::Property< std::vector< std::string > > | m_declaredManagers |
| Property to declare the list of known managers. | |
| SmartIF< ISvcManager > | m_svcManager |
| Cached pointer to the manager of services. | |
| SmartIF< IAlgManager > | m_algManager |
| Cached pointer to the manager of algorithms. | |
| SmartIF< ISvcLocator > | m_svcLocator |
| Reference to its own service locator (must be instantiated prior to any service!). | |
| SmartIF< DLLClassManager > | m_classManager |
| Reference to the class manager. | |
| Gaudi::Property< int > | m_SIGo |
| Gaudi::Property< int > | m_SIExit |
| Gaudi::Property< std::vector< std::string > > | m_topAlgNameList |
| Gaudi::Property< std::vector< std::string > > | m_outStreamNameList |
| Gaudi::Property< std::string > | m_messageSvcType |
| Gaudi::Property< std::string > | m_jobOptionsSvcType |
| std::string | m_name = "ApplicationMgr" |
| Name. | |
| Gaudi::StateMachine::State | m_state = Gaudi::StateMachine::OFFLINE |
| Internal State. | |
| Gaudi::StateMachine::State | m_targetState = Gaudi::StateMachine::OFFLINE |
| Internal State. | |
| Gaudi::Property< std::vector< std::string > > | m_svcMapping { this, "SvcMapping", {}, "Default mapping of services" } |
| Gaudi::Property< std::vector< std::string > > | m_svcOptMapping |
| SmartIF< IMessageSvc > | m_messageSvc |
| Reference to the message service. | |
| SmartIF< IRunable > | m_runable |
| Reference to the runable object. | |
| SmartIF< IEventProcessor > | m_processingMgr |
| Reference to processing manager object. | |
| SmartIF< IQueueingEventProcessor > | m_queueingProcessor |
| Reference to a queueing processing manager object. | |
| Gaudi::Monitoring::Hub | m_monitoringHub |
| Gaudi::Property< int > | m_evtMax { this, "EvtMax", -1, "Number of events to be processed (-1 means all events)" } |
| Gaudi::Property< std::vector< std::string > > | m_extSvcNameList |
| Gaudi::Property< bool > | m_extSvcCreates |
| Gaudi::Property< std::vector< std::string > > | m_dllNameList { this, "Dlls", {}, "List of DDL's names" } |
| Gaudi::Property< std::string > | m_jobOptionsType { this, "JobOptionsType", "FILE", "Source type (e.g. dbase, file...)" } |
| Gaudi::Property< std::string > | m_jobOptionsPath { this, "JobOptionsPath", {}, "The \"file\" to look for properties" } |
| Gaudi::Property< std::string > | m_jobOptionsPreAction |
| Gaudi::Property< std::string > | m_jobOptionsPostAction |
| Gaudi::Property< std::string > | m_runableType { this, "Runable", "AppMgrRunable", "Runable type", "Service:IRunable" } |
| Gaudi::Property< std::string > | m_eventLoopMgr |
| Gaudi::Property< std::string > | m_evtsel { this, "EvtSel", {}, "Event selection" } |
| Gaudi::Property< std::string > | m_histPersName { this, "HistogramPersistency", "NONE", "Name of the Hist Pers Svc" } |
| Gaudi::Property< int > | m_outputLevel { this, "OutputLevel", MSG::INFO, "Message output level" } |
| Gaudi::Property< std::string > | m_appName { this, "AppName", "ApplicationMgr", "The name of the application" } |
| Gaudi::Property< std::string > | m_appVersion { this, "AppVersion", {}, "The version of the application" } |
| Gaudi::Property< bool > | m_actHistory { this, "ActivateHistory", false, "Activate HistorySvc" } |
| Gaudi::Property< int > | m_pluginDebugLevel |
| Gaudi::Property< std::vector< std::string > > | m_createSvcNameList |
| Gaudi::Property< bool > | m_auditTools { this, "AuditTools", false } |
| Defaults for auditors. | |
| Gaudi::Property< bool > | m_auditSvcs { this, "AuditServices", false } |
| Gaudi::Property< bool > | m_auditAlgs { this, "AuditAlgorithms", false } |
| Gaudi::Property< std::map< std::string, std::string > > | m_environment |
| Gaudi::Property< bool > | m_loopCheck |
| Gaudi::Property< bool > | m_stopOnSignal |
| Property to enable/disable the "stop on signal" service. | |
| Gaudi::Property< bool > | m_propertiesPrint |
| Gaudi::Property< int > | m_returnCode |
| Property to record the error conditions occurring during the running. | |
| Gaudi::Property< bool > | m_printAlgsSequence |
| Gaudi::Property< bool > | m_useMessageSvcForROOTMessages |
| bool | m_useHiveAlgorithmManager |
| std::vector< std::string > | m_okDlls |
| names of successfully loaded dlls | |
| void | evtLoopPropertyHandler (Gaudi::Details::PropertyBase &theProp) |
| StatusCode | decodeExtSvcNameList () |
| StatusCode | decodeCreateSvcNameList () |
| void | createSvcNameListHandler (Gaudi::Details::PropertyBase &) |
| void | extSvcNameListHandler (Gaudi::Details::PropertyBase &theProp) |
| StatusCode | decodeDllNameList () |
| void | dllNameListHandler (Gaudi::Details::PropertyBase &theProp) |
| void | pluginDebugPropertyHandler (Gaudi::Details::PropertyBase &theProp) |
| template<class I> | |
| SmartIF< IComponentManager > & | getManager () |
| SmartIF< ISvcManager > & | svcManager () |
| SmartIF< IAlgManager > & | algManager () |
| SmartIF< ISvcLocator > & | serviceLocator () const override |
| Needed to locate the message service. | |
| void | outputLevelUpdate () override |
| Function to call to update the outputLevel of the components (after a change in MessageSvc). | |
| Gaudi::Monitoring::Hub & | monitoringHub () override |
| void | printAlgsSequences () |
| Print the sequence of algorithms that have been loaded. | |
| void | setServiceManager (ISvcManager *) override |
| StatusCode | i_startup () |
| Internal startup routine. | |
| StatusCode | GoToState (Gaudi::StateMachine::State state, bool ignoreFailures=false) |
| Reach a state from current state (whichever it is) going through the correct transitions. | |
| template<typename SELF, typename PIMPL, typename METHOD, typename... ARGS> | |
| static auto | i_delegateToEvtProc (SELF *self, PIMPL &member, std::string_view method_name, METHOD &&method, ARGS &&... args) |
| Helper to delegate calls to event processor implementation. | |
Additional Inherited Members | |
| Public Types inherited from PropertyHolder< CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > > | |
| using | PropertyHolderImpl |
| Typedef used to refer to this class from derived classes, as in. | |
| Public Types inherited from CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > | |
| using | base_class |
| Protected Member Functions inherited from CommonMessaging< implements< IAppMgrUI, Gaudi::Interfaces::IQueueingEventProcessor, IService, IStateful, INamedInterface, IProperty > > | |
| MSG::Level | setUpMessaging () const override final |
| Set up local caches. | |
| MSG::Level | resetMessaging () |
| Reinitialize internal states. | |
| void | updateMsgStreamOutputLevel (int level) |
| Update the output level of the cached MsgStream. | |
The Application Manager class.
The main purpose of the Application Manager is to steer any data processing application. This includes all data processing applications for LHCb data in all stages: simulation, reconstruction, analysis, high level triggers, etc. Specific implementations of the ApplicationMgr will be developed to cope with the different environments (on-line, off-line, interactive, batch, etc.).
Definition at line 52 of file ApplicationMgr.h.
|
protected |
Typedef for the map of component managers, the key is the "id" field of the basic InterfaceID of the managed components.
Definition at line 171 of file ApplicationMgr.h.
| ApplicationMgr::ApplicationMgr | ( | IInterface * | = nullptr | ) |
Definition at line 83 of file ApplicationMgr.cpp.
|
inline |
Definition at line 139 of file ApplicationMgr.h.
|
override |
Definition at line 255 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::createEventContext()
Definition at line 781 of file ApplicationMgr.cpp.
| void ApplicationMgr::createSvcNameListHandler | ( | Gaudi::Details::PropertyBase & | ) |
Definition at line 867 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeCreateSvcNameList | ( | ) |
Definition at line 873 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeDllNameList | ( | ) |
Definition at line 933 of file ApplicationMgr.cpp.
| StatusCode ApplicationMgr::decodeExtSvcNameList | ( | ) |
Definition at line 901 of file ApplicationMgr.cpp.
| void ApplicationMgr::dllNameListHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 927 of file ApplicationMgr.cpp.
|
override |
Definition at line 773 of file ApplicationMgr.cpp.
| void ApplicationMgr::evtLoopPropertyHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 860 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::executeEvent(void*)
Definition at line 759 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::executeRun(int)
Definition at line 790 of file ApplicationMgr.cpp.
| void ApplicationMgr::extSvcNameListHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
Definition at line 894 of file ApplicationMgr.cpp.
|
override |
Definition at line 550 of file ApplicationMgr.cpp.
|
override |
Definition at line 813 of file ApplicationMgr.cpp.
|
inline |
Definition at line 129 of file ApplicationMgr.h.
|
protected |
Reach a state from current state (whichever it is) going through the correct transitions.
By default, if a transition fails, the chain is interrupted, but the behavior can be changed with the parameter "gnoreFailures"
Definition at line 653 of file ApplicationMgr.cpp.
|
override |
Definition at line 117 of file ApplicationMgr.cpp.
|
inlinestaticprivate |
Helper to delegate calls to event processor implementation.
Definition at line 314 of file ApplicationMgr.h.
|
protected |
Internal startup routine.
Definition at line 137 of file ApplicationMgr.cpp.
|
override |
Definition at line 421 of file ApplicationMgr.cpp.
|
inlineoverride |
Definition at line 151 of file ApplicationMgr.h.
|
override |
Definition at line 811 of file ApplicationMgr.cpp.
|
override |
Definition at line 501 of file ApplicationMgr.cpp.
|
override |
Function to call to update the outputLevel of the components (after a change in MessageSvc).
Definition at line 1005 of file ApplicationMgr.cpp.
| void ApplicationMgr::pluginDebugPropertyHandler | ( | Gaudi::Details::PropertyBase & | theProp | ) |
|
override |
Definition at line 777 of file ApplicationMgr.cpp.
| void ApplicationMgr::printAlgsSequences | ( | ) |
Print the sequence of algorithms that have been loaded.
Definition at line 1031 of file ApplicationMgr.cpp.
|
override |
Definition at line 768 of file ApplicationMgr.cpp.
|
override |
Definition at line 816 of file ApplicationMgr.cpp.
|
override |
Definition at line 840 of file ApplicationMgr.cpp.
|
override |
Definition at line 736 of file ApplicationMgr.cpp.
|
inlineoverride |
|
inlineoverrideprotected |
Definition at line 158 of file ApplicationMgr.h.
|
override |
Definition at line 470 of file ApplicationMgr.cpp.
|
override |
Definition at line 515 of file ApplicationMgr.cpp.
|
override |
implementation of IEventProcessor::stopRun()
Definition at line 801 of file ApplicationMgr.cpp.
|
inline |
Definition at line 133 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 104 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 98 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 106 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 108 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 100 of file ApplicationMgr.h.
|
inlineoverride |
Definition at line 102 of file ApplicationMgr.h.
|
override |
Definition at line 814 of file ApplicationMgr.cpp.
|
override |
Definition at line 594 of file ApplicationMgr.cpp.
|
protected |
Definition at line 259 of file ApplicationMgr.h.
|
protected |
Cached pointer to the manager of algorithms.
Definition at line 183 of file ApplicationMgr.h.
|
protected |
Definition at line 257 of file ApplicationMgr.h.
|
protected |
Definition at line 258 of file ApplicationMgr.h.
|
protected |
Definition at line 279 of file ApplicationMgr.h.
|
protected |
Definition at line 278 of file ApplicationMgr.h.
|
protected |
Defaults for auditors.
Definition at line 277 of file ApplicationMgr.h.
|
protected |
Reference to the class manager.
Definition at line 188 of file ApplicationMgr.h.
|
protected |
Definition at line 273 of file ApplicationMgr.h.
|
protected |
Property to declare the list of known managers.
Definition at line 177 of file ApplicationMgr.h.
|
protected |
Definition at line 244 of file ApplicationMgr.h.
|
protected |
Definition at line 281 of file ApplicationMgr.h.
|
protected |
Definition at line 252 of file ApplicationMgr.h.
|
protected |
Definition at line 238 of file ApplicationMgr.h.
|
protected |
Definition at line 254 of file ApplicationMgr.h.
|
protected |
Definition at line 241 of file ApplicationMgr.h.
|
protected |
Definition at line 239 of file ApplicationMgr.h.
|
protected |
Definition at line 255 of file ApplicationMgr.h.
|
protected |
Definition at line 246 of file ApplicationMgr.h.
|
protected |
Definition at line 249 of file ApplicationMgr.h.
|
protected |
Definition at line 247 of file ApplicationMgr.h.
|
protected |
Definition at line 215 of file ApplicationMgr.h.
|
protected |
Definition at line 245 of file ApplicationMgr.h.
|
protected |
Definition at line 284 of file ApplicationMgr.h.
|
protected |
Map of known component managers.
It contains (at least) the managers for IService and IAlgorithm. IAlgTool and IAuditor are not mandatory (but a missing manager for IAlgTool will probably not allow any job to run).
Definition at line 175 of file ApplicationMgr.h.
|
protected |
Reference to the message service.
Definition at line 226 of file ApplicationMgr.h.
|
protected |
Definition at line 213 of file ApplicationMgr.h.
|
protected |
Definition at line 232 of file ApplicationMgr.h.
|
protected |
Name.
Definition at line 218 of file ApplicationMgr.h.
|
private |
names of successfully loaded dlls
Definition at line 310 of file ApplicationMgr.h.
|
protected |
Definition at line 256 of file ApplicationMgr.h.
|
protected |
Definition at line 211 of file ApplicationMgr.h.
|
protected |
Definition at line 260 of file ApplicationMgr.h.
|
protected |
Definition at line 300 of file ApplicationMgr.h.
|
protected |
Reference to processing manager object.
Definition at line 228 of file ApplicationMgr.h.
|
protected |
Definition at line 293 of file ApplicationMgr.h.
|
protected |
Reference to a queueing processing manager object.
Definition at line 230 of file ApplicationMgr.h.
|
protected |
Property to record the error conditions occurring during the running.
Definition at line 297 of file ApplicationMgr.h.
Reference to the runable object.
Definition at line 227 of file ApplicationMgr.h.
|
protected |
Definition at line 251 of file ApplicationMgr.h.
|
protected |
Definition at line 198 of file ApplicationMgr.h.
|
protected |
Definition at line 190 of file ApplicationMgr.h.
|
protected |
Internal State.
Definition at line 219 of file ApplicationMgr.h.
|
protected |
Property to enable/disable the "stop on signal" service.
Definition at line 290 of file ApplicationMgr.h.
|
mutableprotected |
Reference to its own service locator (must be instantiated prior to any service!).
Definition at line 186 of file ApplicationMgr.h.
|
protected |
Cached pointer to the manager of services.
Definition at line 180 of file ApplicationMgr.h.
|
protected |
Definition at line 222 of file ApplicationMgr.h.
|
protected |
Definition at line 223 of file ApplicationMgr.h.
|
protected |
Internal State.
Definition at line 220 of file ApplicationMgr.h.
|
protected |
Definition at line 205 of file ApplicationMgr.h.
|
protected |
Definition at line 307 of file ApplicationMgr.h.
|
protected |
Definition at line 303 of file ApplicationMgr.h.