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"
19#include "EventModel/EventHeader.h"
20#include "ReconEvent/ReconEvent.h"
21#include "EventModel/EventModel.h"
22#include "RootCnvSvc/Rec/RecTrackCnv.h"
23#include "RootCnvSvc/RootEvtSelector.h"
24#include "RootCnvSvc/RootAddress.h"
25#include "RootCnvSvc/Util.h"
26#include "McTruth/DecayMode.h"
28using namespace DataSvcHelpers;
48 MsgStream log(
msgSvc(),
"RecTrackCnv");
49 log << MSG::DEBUG <<
"RecTrackCnv::initialize"<< endreq;
62 StatusCode sc=StatusCode::SUCCESS;
64 MsgStream log(
msgSvc(),
"RecTrackCnv");
65 log << MSG::DEBUG <<
"TObjectToDataObject" << endreq;
85 MsgStream log(
msgSvc(),
"RecTrackCnv");
86 log << MSG::DEBUG <<
"RecTrackCnv::DataObjectToTObject" << endreq;
91 if (m_common.
m_rectrackEvt != NULL)
return StatusCode::SUCCESS;
102 log << MSG::ERROR <<
"Could not downcast to TDS Event" << endreq;
103 return StatusCode::FAILURE;
115 if (sc.isFailure()) {
116 cout<<
"Could not create branch TRecEvent"<<endl;
117 log << MSG::ERROR <<
"Could not create branch TRecEvent" << endreq;
128 return StatusCode::SUCCESS;
virtual StatusCode TObjectToDataObject(DataObject *&refpObject)
do the transformation from ROOT to TDS object
RecTrackCnv(ISvcLocator *svc)
virtual StatusCode initialize()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation from TDS object to ROOT
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setRecTrackCnv(RecTrackCnv *rectrackcnv)
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 TRecTrackEvent * m_rectrackEvt
Provide access to the ROOT event pointers.