9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/DataObject.h"
11#include "GaudiKernel/SmartDataPtr.h"
12#include "GaudiKernel/RegistryEntry.h"
13#include "GaudiKernel/IOpaqueAddress.h"
15#include "EventModel/EventHeader.h"
16#include "HltEvent/HltEvent.h"
17#include "EventModel/EventModel.h"
18#include "RootCnvSvc/Hlt/HltCnv.h"
19#include "RootCnvSvc/RootEvtSelector.h"
20#include "RootCnvSvc/RootAddress.h"
21#include "RootCnvSvc/Util.h"
23using namespace DataSvcHelpers;
39 MsgStream log(
msgSvc(),
"HltCnv");
40 log << MSG::DEBUG <<
"HltCnv::initialize"<< endreq;
53 StatusCode sc=StatusCode::SUCCESS;
55 MsgStream log(
msgSvc(),
"HltCnv");
56 log << MSG::DEBUG <<
"TObjectToDataObject" << endreq;
75 MsgStream log(
msgSvc(),
"HltCnv");
76 log << MSG::DEBUG <<
"HltCnv::DataObjectToTObject" << endreq;
80 if (m_common.
m_hltEvt != NULL)
return StatusCode::SUCCESS;
92 log << MSG::ERROR <<
"Could not downcast to TDS RecEvent" << endreq;
93 return StatusCode::FAILURE;
102 if (sc.isFailure()) {
103 log << MSG::ERROR <<
"Could not create branch THltEvent" << endreq;
114 std::cout<<
"******************************"<<std::endl;
115 std::cout<<
" eveId: "<<evtId<<std::endl;
116 std::cout<<
" runId: "<<runId<<std::endl;
117 std::cout<<
"******************************"<<std::endl;
123 return StatusCode::SUCCESS;
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
virtual StatusCode initialize()
void initialize(bool fromMc)
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setHltCnv(HltCnv *hltcnv)
Base class for all Root Converters.
virtual StatusCode initialize()
int m_branchNr
the branchNr of this converter for writing
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 THltEvent * m_hltEvt
Provide access to the ROOT event pointers.