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 "TrigEvent/TrigEvent.h"
17#include "EventModel/EventModel.h"
18#include "RootCnvSvc/Trig/TrigCnv.h"
19#include "RootCnvSvc/RootEvtSelector.h"
20#include "RootCnvSvc/RootAddress.h"
21#include "RootCnvSvc/Util.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;
80 if (m_common.
m_trigEvt != 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 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()
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
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.