22 static std::string stat_dir =
"/stat";
23 static std::string undefFileName =
"UndefinedROOTOutputFileName";
60 info() <<
"Writing ROOT histograms disabled." <<
endmsg;
70 debug() <<
"RootHistCnv::PersSvc::finalize()" <<
endmsg;
73 m_hfile->Write(
"", TObject::kOverwrite );
90 if ( top.ptr() == pObject ) {
91 TDirectory* pDir =
m_hfile.get();
93 long( pDir ),
long( 0 ) );
104 error() <<
"Internal error while creating Histogram persistent representations" <<
endmsg;
111 warning() <<
"no ROOT output file name, "
112 <<
"Histograms cannot be persistified" <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
long repSvcType() const override
Retrieve the class type of the data store the converter uses.
StatusCode finalize() override
stop the service.
StatusCode initialize() override
Initialize the service.
SmartIF< IDataProviderSvc > & dataProvider() const override
Implementation of IConverter: Get Data provider service.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
A DataObject is the base class of any identifiable object on any data store.
Opaque address interface definition.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
virtual const id_type & identifier() const =0
Full identifier (or key)
Persistency service - to store histograms in ROOT format.
PersSvc(const std::string &name, ISvcLocator *svc)
Standard constructor.
Gaudi::Property< bool > m_outputEnabled
bool m_prtWar
Already printed a Warning.
StatusCode finalize() override
Finalise the service.
StatusCode initialize() override
Initialise the service.
Gaudi::Property< std::string > m_defFileName
std::unique_ptr< TFile > m_hfile
Pointer to the ROOT file.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert a collection of transient data objects into another representation.
A small class used to access easily (and efficiently) data items residing in data stores.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE