|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/MsgStream.h"
16 #include "GaudiKernel/StatusCode.h"
17 #include "GaudiKernel/DataObject.h"
18 #include "GaudiKernel/IRegistry.h"
26 #include "GaudiKernel/IToolSvc.h"
37 m_tool(
"HLT::HLTResultByteStreamTool"),
38 m_ByteStreamEventAccess(
"ByteStreamCnvSvc",
"HLTResultByteStreamCnv"),
39 m_robDataProvider(
"ROBDataProviderSvc",
"HLTResultByteStreamCnv")
58 return StatusCode::SUCCESS;
68 if(StatusCode::SUCCESS!=
sc)
73 m_log =
new MsgStream(
msgSvc(),
"HLTResultByteStreamCnv");
75 (*m_log) <<
MSG::DEBUG <<
"HLTResultByteStreamCnv in initialize() " <<
endmsg;
78 if ( m_ByteStreamEventAccess.retrieve().isFailure() ) {
79 (*m_log) <<
MSG::FATAL <<
"failed to retrieve ByteStreamEventAccess service: "
80 << m_ByteStreamEventAccess <<
endmsg;
81 return StatusCode::FAILURE;
83 (*m_log) <<
MSG::DEBUG <<
"successfully retrieved ByteStreamEventAccess service: "
84 << m_ByteStreamEventAccess <<
endmsg;
107 if ( m_tool.retrieve().isFailure() ) {
108 (*m_log) <<
MSG::FATAL <<
"failed to retrieve converter tool : "
110 return StatusCode::FAILURE;
112 (*m_log) <<
MSG::DEBUG <<
"successfully retrieved converter tool: "
118 if (m_robDataProvider.retrieve().isFailure()) {
119 (*m_log) <<
MSG::FATAL <<
"failed to retrieve ROBDataProviderSvc service: "
120 << m_robDataProvider <<
endmsg;
121 return StatusCode::FAILURE;
123 (*m_log) <<
MSG::DEBUG <<
"successfully retrieved ROBDataProviderSvc service: "
124 << m_robDataProvider <<
endmsg;
142 return StatusCode::SUCCESS;
153 if(pBS_Addr==
nullptr) {
154 (*m_log) << MSG::ERROR <<
" Can not cast to ByteStreamAddress " <<
endmsg ;
155 return StatusCode::FAILURE;
158 const std::string
nm = *(pBS_Addr->par()) ;
159 std::vector<ROBData> vRobData;
162 if (
sc != StatusCode::SUCCESS) {
163 (*m_log) << MSG::ERROR <<
"Failed to create object " <<
nm <<
endmsg;
181 (*m_log) << MSG::ERROR <<
" Cannot cast to HLTResult " <<
endmsg ;
182 return StatusCode::FAILURE;
185 std::string
nm = pObj->registry()->name();
191 if ( pAddr !=
nullptr ) pAddr->release();
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
virtual StatusCode finalize()
Gaudi finalize.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
static long storageType()
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
create RDO (HLTResult) from bytestream
DataObject * asStorable(T *pObject)
static const CLID & ID()
the CLID of T
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static long storageType()
storageType
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
create bytestream from RDOs (HLTResult)
uint32_t CLID
The Class ID type.
static constexpr long storageType()
static const CLID & classID()
CLID.
const boost::regex re(r_e)
static const CLID & classID()
virtual StatusCode initialize()
Gaudi initialize.
macros to associate a CLID to a type
HLTResultByteStreamCnv(ISvcLocator *svcloc)
std Gaudi converter constructor