6#ifndef EvtHeaderCnv_CXX
7#define EvtHeaderCnv_CXX
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"
27using namespace DataSvcHelpers;
35 MsgStream log(
msgSvc(),
"EvtHeaderCnv");
36 log << MSG::DEBUG <<
" constructor of EvtHeaderCnv "<<endreq;
50 StatusCode sc=StatusCode::SUCCESS;
52 MsgStream log(
msgSvc(),
"EvtHeaderCnv");
53 log << MSG::DEBUG <<
"TObjectToDataObject" << endreq;
67 log << MSG::DEBUG <<
"TObjectToDataObject eventid = "<<m_eventId<<
" "<<m_runId
68 <<
" "<<std::hex<<
"0x"<<m_eventTag<<std::dec<<endreq;
79 MsgStream log(
msgSvc(),
"EvtHeaderCnv");
80 log << MSG::DEBUG <<
"EvtHeaderCnv::initialize"<< endreq;
93 MsgStream log(
msgSvc(),
"EvtHeaderCnv");
94 log << MSG::DEBUG <<
"EvtHeaderCnv::DataObjectToTObject" << endreq;
99 log << MSG::ERROR <<
"Could not downcast to TDS EventHeader" << endreq;
100 return StatusCode::FAILURE;
107 UInt_t flag1 = devtTds->
flag1();
108 UInt_t flag2 = devtTds->
flag2();
112 return StatusCode::SUCCESS;
119 log << MSG::DEBUG <<
"EvtHeaderCnv::DataObjectToTObject tree name: " <<rootaddr->
getTreename()<<endreq;
124 if (sc.isFailure()) {
126 log << MSG::ERROR <<
"Could not create branch TEvtHeader" << endreq;
127 return StatusCode::SUCCESS;
138 log << MSG::DEBUG <<
"EvtHeaderCnv::DataObjectToTObject eventid = "<<evtId<<
" "<<runId <<
" "<<std::hex<<evtTag<<std::dec<< endreq;
145 return StatusCode::SUCCESS;
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setEvtHeaderCnv(EvtHeaderCnv *evtheadercnv)
Base class for all Root Converters.
std::vector< void * > m_adresses
each converter knows the corresponding adresses
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 TEvtHeader * m_EvtHeader