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"
23using namespace DataSvcHelpers;
39 MsgStream log(
msgSvc(),
"TrigCnv");
40 log << MSG::DEBUG <<
"TrigCnv::initialize"<< endreq;
53 StatusCode sc=StatusCode::SUCCESS;
55 MsgStream log(
msgSvc(),
"TrigCnv");
56 log << MSG::DEBUG <<
"TObjectToDataObject" << endreq;
75 MsgStream log(
msgSvc(),
"TrigCnv");
76 log << MSG::DEBUG <<
"TrigCnv::DataObjectToTObject" << endreq;
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 TTrigEvent" << 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;
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
void setTrigCnv(TrigCnv *trigcnv)
Base class for all Root Converters.
virtual StatusCode initialize()
RootInterface * m_rootInterface
pointer to the RootInterface
int m_branchNr
the branchNr of this converter for writing
virtual StatusCode createBranch(const std::string &tree, const std::string &branch, const char *classname, void *addr, int &branchnr)
create a branch in this tree
TrigCnv(ISvcLocator *svc)
virtual StatusCode initialize()
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
void initialize(bool fromMc)
static TTrigEvent * m_trigEvt
Provide access to the ROOT event pointers.