22 using namespace Gaudi;
36 return makeError(
"Failed to access IDataManagerSvc interface.");
60 long loc = path.find(
'/',1);
61 string local =
"<local>";
64 loc = path.find(
'/',++loc);
66 local += path.substr(loc,path.length()-loc);
92 size_t idx = path.find(
'/', 1);
93 if ( idx != string::npos ) {
94 idx = path.find(
'/', idx+1);
95 if ( idx != string::npos ) {
96 path = path.substr(0, idx);
129 TClass* cl = gROOT->GetClass(
"Gaudi::RootNTupleDescriptor",kTRUE);
133 TBranch* b = con->
getBranch(
"##Descriptors",
"GaudiStatisticsDescription",cl,ptr,512,0);
146 return makeError(
"Failed to access ROOT branch GaudiStatisticsDescription");
148 return makeError(
"Failed to access TClass RootNTupleDescriptor");
150 return makeError(
"Failed to access Tuple file:"+path);
const std::string & name() const
Retrun physical file name.
MsgStream & log() const
Helper to use mesage logger.
Definition of the MsgStream class used to transmit messages.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual StatusCode finalize()
Initialize the converter.
virtual StatusCode finalize()
Finalize converter object.
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.
virtual StatusCode initialize()
Initialize the converter.
bool isSuccess() const
Test for a status code of SUCCESS.
RootCnvSvc * m_dbMgr
Conversion service needed for proper operation to forward requests.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
StatusCode makeError(const std::string &msg, bool throw_exception=false) const
Helper method to issue error messages.
StatusCode connectDatabase(const std::string &dataset, int mode, RootDataConnection **con)
Connect the output file to the service with open mode.
std::string optional
Optional description.
This class is used for returning status codes from appropriate routines.
virtual const std::string fileName(IRegistry *pReg) const
Retrieve the name of the file a given object is placed into.
TBranch * getBranch(const std::string §ion, const std::string &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.
std::string description
Description string.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
string opt
print 'Summary: %32s [s] d d steps'%(summary.protocol,summary.type,summary.nevt,len(summary.data),)
unsigned int CLID
Class ID definition.
GAUDI_API std::string path(const AIDA::IBaseHistogram *aida)
get the path in THS for AIDA histogram
virtual SmartIF< IDataProviderSvc > & dataProvider() const
Get Data provider service.
virtual unsigned long release()=0
Release Interface instance.
std::string container
Identifier of description.
virtual const id_type & identifier() const =0
Full identifier (or key)
unsigned long clid
Class ID of the described object.
MsgStream * m_log
Reference to logger object.
This is a number of static methods for bootstrapping the Gaudi framework.
virtual StatusCode initialize()
Initialize converter object.
virtual const std::string containerName(IRegistry *pDir) const
Retrieve the name of the container a given object is placed into.
A DataObject is the base class of any identifiable object on any data store.
Concrete implementation of the IDataConnection interface to access ROOT files.
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
IDataManagerSvc * m_dataMgr
Reference to data manager service to manipulate the TES.
Small class representing an N tuple file in the transient store.
Description: Definition of the ROOT data converter.