50# pragma clang diagnostic push
51# pragma clang diagnostic ignored "-Wkeyword-macro"
53#define class class GAUDI_API
55# pragma clang diagnostic pop
57#include <AIDA/IBaseHistogram.h>
69 info() <<
"Histograms Converted/Excluded: " << m_converted.size() <<
"/" << m_excluded.size() << endmsg;
102 fatal() <<
"IProperty interface not found in ApplicationMgr." <<
endmsg;
112 const std::string outputFile =
'"' +
m_outputFile +
'"';
114 opts.set(
"RootHistSvc.OutputFile", outputFile );
116 opts.set(
"HbookHistSvc.OutputFile", outputFile );
145 const std::string s_NULL =
"<NULL>";
153 inline bool match(
const std::string& name,
const std::string& pat ) {
162 inline const std::string& oname(
const DataObject* obj ) {
163 if ( !obj ) {
return s_NULL; }
173 inline bool match(
const DataObject* obj,
const std::string& pat ) {
return obj && match( oname( obj ), pat ); }
188 if (
dynamic_cast<AIDA::IBaseHistogram*
>( pObj ) ) {
190 auto match_pObj = [&](
const std::string& s ) {
return match( pObj, s ); };
197 const auto& path = oname( pObj );
bool PyHelper setProperty(IInterface *p, char *name, char *value)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
complex< _Tp > log(const complex< _Tp > &)
constexpr bool any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
constexpr bool none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
static const size_type npos
void insert(_InputIterator __first, _InputIterator __last)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
A DataObject is the base class of any identifiable object on any data store.
const std::string & name() const
Retreive DataObject name. It is the name when registered in the store.
IRegistry * registry() const
Get pointer to Registry.
const ValueType & value() const
HistogramPersistencySvc class implementation definition.
Set m_converted
for the final report: the list of converted histograms
Gaudi::Property< std::string > m_histPersName
StatusCode initialize() override
Initialize the service.
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
StatusCode finalize() override
Finalize the service.
Gaudi::Property< std::vector< std::string > > m_convert
Gaudi::Property< bool > m_warnings
StatusCode reinitialize() override
Reinitialize the service.
Set m_excluded
for the final report: the list of excluded histograms
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
Gaudi::Property< std::string > m_outputFile
Gaudi::Property< std::vector< std::string > > m_exclude
Opaque address interface definition.
The IProperty is the basic interface for all components which have properties that can be set or get.
virtual const id_type & identifier() const =0
Full identifier (or key).
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Gaudi::Interfaces::IOptionsSvc & getOptsSvc()
Direct access to Gaudi::Interfaces::IOptionsSvc implementation.
PersistencySvc class implementation definition.
StatusCode setConversionSvc(IConversionSvc *svc) override
Set conversion service the converter is connected to.
Gaudi::Property< std::vector< std::string > > m_svcNames
SmartIF< IConversionSvc > conversionSvc() override
Get conversion service the converter is connected to.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
StatusCode initialize() override
Initialize the service.
bool enable(bool value)
Set enabled flag.
StatusCode finalize() override
stop the service.
SmartIF< IConversionSvc > & service(const std::string &nam)
Retrieve conversion service by name.
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
const std::string & name() const override
Retrieve name of the service.
This class is used for returning status codes from appropriate routines.
void ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE