21 using namespace Gaudi;
32 if ( !
m_dataMgr ) {
return makeError(
"Failed to access IDataManagerSvc interface." ); }
48 long loc =
path.find(
'/', 1 );
49 string local =
"<local>";
52 loc =
path.find(
'/', ++loc );
53 if ( loc > 0 ) { local +=
path.substr( loc ); }
66 NTuple::File* fptr = dynamic_cast<NTuple::File*>( pObj );
67 if ( fptr ) {
return fptr->
name(); }
76 size_t idx =
path.find(
'/', 1 );
77 if ( idx != string::npos ) {
78 idx =
path.find(
'/', idx + 1 );
79 if ( idx != string::npos ) {
path =
path.substr( 0, idx ); }
104 TClass* cl = gROOT->GetClass(
"Gaudi::RootNTupleDescriptor", kTRUE );
108 TBranch* b = con->
getBranch(
"##Descriptors",
"GaudiStatisticsDescription", cl, ptr, 512, 0 );
114 b->SetAddress( &ptr );
121 return makeError(
"Failed to access ROOT branch GaudiStatisticsDescription" );
123 return makeError(
"Failed to access TClass RootNTupleDescriptor" );
Definition of the MsgStream class used to transmit messages.
StatusCode makeError(const std::string &msg, bool throw_exception=false) const
Helper method to issue error messages.
TBranch * getBranch(std::string_view section, std::string_view branch_name)
Access data branch by name: Get existing branch in read only mode.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual const std::string topLevel(IRegistry *pReg) const
Retrieve the full path of the file a given object is placed into.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
StatusCode initialize() override
Initialize the converter.
constexpr static const auto SUCCESS
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
virtual const std::string fileName(IRegistry *pReg) const
Retrieve the name of the file a given object is placed into.
SmartIF< IDataManagerSvc > m_dataMgr
Reference to data manager service to manipulate the TES.
const std::string & name() const
Retrun physical file name.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
StatusCode finalize() override
Initialize the converter.
std::string optional
Optional description.
StatusCode finalize() override
Finalize converter object.
This class is used for returning status codes from appropriate routines.
MsgStream & log() const
Helper to use mesage logger.
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.
std::string description
Description string.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
unsigned int CLID
Class ID definition.
SmartIF< IDataProviderSvc > & dataProvider() const override
Get Data provider service.
virtual StatusCode retrieveObject(IRegistry *pDirectory, std::string_view path, DataObject *&pObject)=0
Retrieve object identified by its directory entry.
std::string container
Identifier of description.
constexpr static const auto FAILURE
virtual const id_type & identifier() const =0
Full identifier (or key)
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
unsigned long clid
Class ID of the described object.
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.
StatusCode initialize() override
Initialize converter object.
A DataObject is the base class of any identifiable object on any data store.
Concrete implementation of the IDataConnection interface to access ROOT files.
Header file for std:chrono::duration-based Counters.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Small class representing an N tuple file in the transient store.
Description: Definition of the ROOT data converter.