42 if ( !
m_dataMgr ) {
return makeError(
"Failed to access IDataManagerSvc interface." ); }
58 long loc = path.find(
'/', 1 );
59 string local =
"<local>";
62 loc = path.find(
'/', ++loc );
63 if ( loc > 0 ) { local += path.substr( loc ); }
77 if ( fptr ) {
return fptr->
name(); }
86 size_t idx = path.find(
'/', 1 );
87 if ( idx != string::npos ) {
88 idx = path.find(
'/', idx + 1 );
89 if ( idx != string::npos ) { path.resize( idx ); }
114 TClass* cl = gROOT->GetClass(
"Gaudi::RootNTupleDescriptor", kTRUE );
118 TBranch* b = con->
getBranch(
"##Descriptors",
"GaudiStatisticsDescription", cl, ptr, 512, 0 );
120 dsc->description = desc;
122 dsc->container = ident;
124 b->SetAddress( &ptr );
131 return makeError(
"Failed to access ROOT branch GaudiStatisticsDescription" );
133 return makeError(
"Failed to access TClass RootNTupleDescriptor" );
135 return makeError(
"Failed to access Tuple file:" + path );
unsigned int CLID
Class ID definition.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode initialize() override
Initialize the converter.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
SmartIF< IDataProviderSvc > & dataProvider() const override
Get Data provider service.
StatusCode finalize() override
Initialize the converter.
A DataObject is the base class of any identifiable object on any data store.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
RootConverter(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
Concrete implementation of the IDataConnection interface to access ROOT files.
TBranch * getBranch(std::string_view section, std::string_view branch_name)
Access data branch by name: Get existing branch in read only mode.
StatusCode saveDescription(const std::string &path, const std::string &ident, const std::string &desc, const std::string &opt, const CLID &clid)
Save statistics object description.
virtual const std::string fileName(IRegistry *pReg) const
Retrieve the name of the file a given object is placed into.
StatusCode initialize() override
Initialize converter object.
StatusCode finalize() override
Finalize converter object.
StatusCode makeError(const std::string &msg, bool throw_exception=false) const
Helper method to issue error messages.
MsgStream & log() const
Helper to use mesage logger.
SmartIF< IDataManagerSvc > m_dataMgr
Reference to data manager service to manipulate the TES.
RootStatCnv(long typ, const CLID &clid, ISvcLocator *svc, RootCnvSvc *mgr)
Initializing Constructor.
virtual const std::string topLevel(IRegistry *pReg) const
Retrieve the full path of the file a given object is placed into.
std::unique_ptr< MsgStream > m_log
Reference to logger object.
virtual const std::string containerName(IRegistry *pDir) const
Retrieve the name of the container a given object is placed into.
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
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)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition of the MsgStream class used to transmit messages.
Small class representing an N tuple file in the transient store.
const std::string & name() const
Retrun physical file name.
This class is used for returning status codes from appropriate routines.
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.