9#include "GaudiKernel/DataObject.h"
10#include "GaudiKernel/IDataProviderSvc.h"
11#include "GaudiKernel/ISvcLocator.h"
12#include "GaudiKernel/MsgStream.h"
13#include "GaudiKernel/PropertyMgr.h"
14#include "GaudiKernel/RegistryEntry.h"
15#include "GaudiKernel/SmartDataPtr.h"
17#include "GaudiKernel/IOpaqueAddress.h"
19#include "DstEvent/DstEvent.h"
20#include "EventModel/EventHeader.h"
21#include "EventModel/EventModel.h"
22#include "RootCnvSvc/Dst/DstCnv.h"
23#include "RootCnvSvc/RootAddress.h"
24#include "RootCnvSvc/RootEvtSelector.h"
26#include "McTruth/DecayMode.h"
28using namespace DataSvcHelpers;
40 StatusCode sc = StatusCode::SUCCESS;
42 MsgStream log(
msgSvc(),
"DstCnv" );
43 log << MSG::DEBUG <<
"TObjectToDataObject" << endmsg;
60 MsgStream log(
msgSvc(),
"DstCnv" );
61 log << MSG::DEBUG <<
"DstCnv::initialize" << endmsg;
73 MsgStream log(
msgSvc(),
"DstCnv" );
74 log << MSG::DEBUG <<
"DstCnv::DataObjectToTObject" << endmsg;
79 if ( m_common.m_dstEvt != NULL )
return StatusCode::SUCCESS;
92 log << MSG::ERROR <<
"Could not downcast to TDS DstEvent" << endmsg;
93 return StatusCode::FAILURE;
97 m_common.m_dstEvt = m_objWrite;
106 if ( sc.isFailure() )
108 log << MSG::ERROR <<
"Could not create branch TDstEvent" << endmsg;
116 m_objWrite->initialize();
118 return StatusCode::SUCCESS;
virtual StatusCode initialize()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
static const CLID & classID()
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
virtual StatusCode initialize()
RootInterface * m_rootInterface
pointer to the RootInterface
std::string m_rootBranchname
root branchname (may be concatenated of severals)
RootEventBaseCnv(const CLID &clid, ISvcLocator *svc)