9#include "GaudiKernel/DataObject.h"
10#include "GaudiKernel/IOpaqueAddress.h"
11#include "GaudiKernel/MsgStream.h"
12#include "GaudiKernel/RegistryEntry.h"
13#include "GaudiKernel/SmartDataPtr.h"
15#include "EventModel/EventHeader.h"
16#include "EventModel/EventModel.h"
17#include "RootCnvSvc/RootAddress.h"
18#include "RootCnvSvc/RootEvtSelector.h"
19#include "RootCnvSvc/Trig/TrigCnv.h"
20#include "TrigEvent/TrigEvent.h"
23using namespace DataSvcHelpers;
36 MsgStream log(
msgSvc(),
"TrigCnv" );
37 log << MSG::DEBUG <<
"TrigCnv::initialize" << endmsg;
49 StatusCode sc = StatusCode::SUCCESS;
51 MsgStream log(
msgSvc(),
"TrigCnv" );
52 log << MSG::DEBUG <<
"TObjectToDataObject" << endmsg;
71 MsgStream log(
msgSvc(),
"TrigCnv" );
72 log << MSG::DEBUG <<
"TrigCnv::DataObjectToTObject" << endmsg;
77 if ( m_common.m_trigEvt != NULL )
return StatusCode::SUCCESS;
90 log << MSG::ERROR <<
"Could not downcast to TDS RecEvent" << endmsg;
91 return StatusCode::FAILURE;
94 m_common.m_trigEvt = m_objWrite;
102 m_objWrite->ClassName(), &m_objWrite,
m_branchNr );
103 if ( sc.isFailure() )
105 log << MSG::ERROR <<
"Could not create branch TTrigEvent" << endmsg;
116 std::cout <<
"******************************" << std::endl;
117 std::cout <<
" eveId: " << evtId << std::endl;
118 std::cout <<
" runId: " << runId << std::endl;
119 std::cout <<
"******************************" << std::endl;
123 m_objWrite->initialize();
125 return StatusCode::SUCCESS;
Definition of a Root address, derived from IOpaqueAddress.
std::string getTreename() const
virtual StatusCode initialize()
int m_branchNr
the branchNr of this converter for writing
RootInterface * m_rootInterface
pointer to the RootInterface
RootEventBaseCnv(const CLID &clid, ISvcLocator *svc)
static const CLID & classID()
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)