11#ifndef ATHENAROOTCOMPS_ROOTCNVSVC_H
12#define ATHENAROOTCOMPS_ROOTCNVSVC_H 1
23#include "GaudiKernel/ServiceHandle.h"
35class RootCnvSvc:
public extends<::AthCnvSvc, ::IAthenaRootCnvSvc> {
40 RootCnvSvc(
const std::string& name, ISvcLocator* pSvcLocator);
53 StatusCode
commitOutput(
const std::string& output,
bool do_commit);
59 const std::string* par,
60 const unsigned long* ip,
61 IOpaqueAddress*& refpAddress);
64 StatusCode
convertAddress(
const IOpaqueAddress* pAddress, std::string& refAddress);
69 const std::string& refAddress,
70 IOpaqueAddress*& refpAddress);
uint32_t CLID
The Class ID type.
This file contains the class definition for the IAthenaRootCnvSvc interface class.
RootCnvSvc & operator=(const RootCnvSvc &)
ServiceHandle< ::ITPCnvSvc > m_tpCnvSvc
ServiceHandle to the T/P conversion service.
ITPCnvBase * getTPConverter(const CLID &clid) const
Get T/P converter for a transient class.
IConverter * createConverter(long typ, const CLID &clid, const ICnvFactory *fac)
Create new converter using factory.
RootCnvSvc(const RootCnvSvc &)
RootCnvSvc()
Default constructor:
StatusCode commitOutput(const std::string &output, bool do_commit)
Commit pending output.
StatusCode updateServiceState(IOpaqueAddress *pAddress)
Update state of the service.
StatusCode createAddress(long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress)
Create a Generic address using explicit arguments to identify a single object.
RootCnvSvc(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
ServiceHandle< ::IDictLoaderSvc > m_dictSvc
ServiceHandle to the dictionary service.
StatusCode connectOutput(const std::string &file)
Connect the output file to the service.
ServiceHandle< ::IRootSvc > m_rootSvc
ServiceHandle to the root service.
std::string m_treeName
ROOT TTree name.
RootType getType(const CLID &clid) const
const Token * writeObject(const std::string &key, const RootType &typeDesc, const void *pObj, ITPCnvBase *tpConverter=0)
Write object of a given class to Root, using optional T/P converter.
StatusCode initialize()
Gaudi Service Interface method implementations:
StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert an address to string form.
This class provides the interface to the ROOT software.
This class provides a token that identifies in a unique way objects on the persistent storage.
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....