1#include "GaudiKernel/MsgStream.h"
3#include "EventModel/EventModel.h"
4#include "EvtRecEvent/EvtRecObject.h"
5#include "RootEventData/TEvtRecObject.h"
7#include "RootCnvSvc/RootAddress.h"
8#include "RootCnvSvc/EvtRec/EvtRecCnv.h"
15 m_rootBranchname =
"";
27 MsgStream log(
msgSvc(),
"EvtRecCnv");
28 log << MSG::DEBUG <<
"EvtRecCnv::TObjectToDataObject" << endreq;
32 refpObject = evtRecObject;
34 return StatusCode::SUCCESS;
39 MsgStream log(
msgSvc(),
"EvtRecCnv");
40 log << MSG::DEBUG <<
"EvtRecCnv::DataObjectToTObject" << endreq;
45 if ( ! evtRecObject ) {
46 log << MSG::ERROR <<
"Could not downcast to EvtRecObject" << endreq;
47 return StatusCode::FAILURE;
57 if ( sc.isFailure() ) {
58 cout<<
"Could not create branch TEvtRecObject"<<endl;
59 log << MSG::ERROR <<
"Could not create branch TEvtRecObject" << endreq;
66 return StatusCode::SUCCESS;
virtual StatusCode initialize()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
EvtRecCnv(ISvcLocator *svc)
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setEvtRecCnv(EvtRecCnv *evtreccnv)
Base class for all Root Converters.
virtual StatusCode initialize()
RootInterface * m_rootInterface
pointer to the RootInterface
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 TEvtRecObject * m_evtRecObject