9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/DataObject.h"
11#include "GaudiKernel/SmartDataPtr.h"
12#include "GaudiKernel/RegistryEntry.h"
13#include "GaudiKernel/IDataProviderSvc.h"
14#include "GaudiKernel/ISvcLocator.h"
15#include "GaudiKernel/PropertyMgr.h"
17#include "GaudiKernel/IOpaqueAddress.h"
28using namespace DataSvcHelpers;
42 StatusCode sc=StatusCode::SUCCESS;
44 MsgStream log(
msgSvc(),
"DstCnv");
45 log << MSG::DEBUG <<
"TObjectToDataObject" << endreq;
64 MsgStream log(
msgSvc(),
"DstCnv");
65 log << MSG::DEBUG <<
"DstCnv::initialize"<< endreq;
78 MsgStream log(
msgSvc(),
"DstCnv");
79 log << MSG::DEBUG <<
"DstCnv::DataObjectToTObject" << endreq;
83 if (m_common.
m_dstEvt != NULL)
return StatusCode::SUCCESS;
95 log << MSG::ERROR <<
"Could not downcast to TDS DstEvent" << endreq;
96 return StatusCode::FAILURE;
106 if (sc.isFailure()) {
107 log << MSG::ERROR <<
"Could not create branch TDstEvent" << endreq;
118 return StatusCode::SUCCESS;
virtual StatusCode initialize()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setDstCnv(DstCnv *dstcnv)
Base class for all Root Converters.
virtual StatusCode initialize()
RootInterface * m_rootInterface
pointer to the RootInterface
std::string m_rootBranchname
root branchname (may be concatenated of severals)
virtual StatusCode createBranch(const std::string &tree, const std::string &branch, const char *classname, void *addr, int &branchnr)
create a branch in this tree
static TDstEvent * m_dstEvt
Provide access to the ROOT event pointers.