6 #include "GaudiKernel/IProperty.h"
7 #include "GaudiKernel/Property.h"
8 #include "GaudiKernel/SmartIF.h"
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/IHistogramSvc.h"
11 #include "GaudiKernel/IDataProviderSvc.h"
12 #include "GaudiKernel/IAlgTool.h"
13 #include "GaudiKernel/IToolSvc.h"
14 #include "GaudiKernel/DataObject.h"
18 #include "GaudiPython/Helpers.h"
43 const std::string&
path )
46 if ( !dpsvc ) {
return nullptr ; }
58 const std::string s_NAME =
"EnableFaultHandler" ;
68 , m_old ( s_NAME , true )
69 , m_enable ( !disable )
72 else if ( m_enable ) { ; }
77 if ( !property || !m_old.assign ( *property ) )
79 else if ( m_old.value() != m_enable )
82 ( m_svc.get() , s_NAME , m_enable ) ;
91 else if ( code().isSuccess() && m_old.value() != m_enable ) {
125 const std::string& path ,
126 const bool retrieve ,
129 if ( !dpsvc ) {
return nullptr ; }
131 Disabler sentry ( dpsvc , disable ) ;
137 dpsvc -> retrieveObject ( path , result ) :
138 dpsvc -> findObject ( path , result ) ;
140 return sc.
isSuccess() ? result : nullptr ;
StatusCode setProperty(IProperty *component, const std::string &name, const TYPE &value, const std::string &doc)
simple function to set the property of the given object from the value
static GAUDI_API DataObject * findobject(IDataProviderSvc *dpsvc, const std::string &path)
simple wrapper for IDataProviderSvc::findObject The methdod does NOT trigger the loading the object f...
bool isSuccess() const
Test for a status code of SUCCESS.
Data provider interface definition.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
static GAUDI_API DataObject * getobject(IDataProviderSvc *dpsvc, const std::string &path, const bool retrieve=true, const bool disableDoD=false)
the generic function to get object from TES
GAUDI_API Property * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component
Property base class allowing Property* collections to be "homogeneous".
A DataObject is the base class of any identifiable object on any data store.