Go to the documentation of this file.
31 using namespace Gaudi;
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 );
124 b->SetAddress( &ptr );
131 return makeError(
"Failed to access ROOT branch GaudiStatisticsDescription" );
133 return makeError(
"Failed to access TClass RootNTupleDescriptor" );
SmartIF< IDataProviderSvc > & dataProvider() const override
Get Data provider service.
std::string optional
Optional description.
Small class representing an N tuple file in the transient store.
unsigned long clid
Class ID of the described object.
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
virtual const std::string containerName(IRegistry *pDir) const
Retrieve the name of the container a given object is placed into.
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.
StatusCode makeError(const std::string &msg, bool throw_exception=false) const
Helper method to issue error messages.
std::unique_ptr< MsgStream > m_log
Reference to logger object.
std::string description
Description string.
unsigned int CLID
Class ID definition.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
StatusCode finalize() override
Finalize converter object.
MsgStream & log() const
Helper to use mesage logger.
constexpr static const auto SUCCESS
const std::string & name() const
Retrun physical file name.
virtual const std::string topLevel(IRegistry *pReg) const
Retrieve the full path of the file a given object is placed into.
SmartIF< IDataManagerSvc > m_dataMgr
Reference to data manager service to manipulate the TES.
virtual const id_type & identifier() const =0
Full identifier (or key)
virtual const std::string fileName(IRegistry *pReg) const
Retrieve the name of the file a given object is placed into.
StatusCode initialize() override
Initialize the converter.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
constexpr static const auto FAILURE
std::string container
Identifier of description.
TBranch * getBranch(std::string_view section, std::string_view branch_name)
Access data branch by name: Get existing branch in read only mode.
StatusCode initialize() override
Initialize converter object.
StatusCode finalize() override
Initialize the converter.