|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/MsgStream.h"
17 #include "GaudiKernel/StatusCode.h"
18 #include "GaudiKernel/DataObject.h"
19 #include "GaudiKernel/IRegistry.h"
27 #include "GaudiKernel/IToolSvc.h"
35 AthConstConverter(storageType(), classID(),svcloc,
"LArAccumulatedDigitContByteStreamCnv"),
36 m_tool(
"LArRawDataContByteStreamTool"),
37 m_rdpSvc(
"ROBDataProviderSvc",
name())
53 if (
m_rdpSvc.retrieve().isFailure()) {
54 ATH_MSG_WARNING(
" Can't get ByteStreamInputSvc interface Reading of ByteStream Data not possible. " );
59 return StatusCode::SUCCESS;
66 ATH_MSG_VERBOSE(
"Executing CreateObj method for LArAccumulatedDigitContainer ");
69 ATH_MSG_ERROR(
" ROBDataProviderSvc not loaded. Can't read ByteStream." );
70 return StatusCode::FAILURE;
75 ATH_MSG_ERROR(
"dynamic_cast of OpaqueAdress to ByteStreamAddress failed!" );
76 return StatusCode::FAILURE;
81 ATH_MSG_ERROR(
"Could not get raw event from ByteStreamInputSvc" );
82 return StatusCode::FAILURE;
84 const std::string&
key = *(pAddr->par());
89 else if (
key==
"MEDIUM")
95 ATH_MSG_DEBUG(
"Converting LArAccumulatedDigits (from ByteStream). key=" <<
key <<
" ,gain=" <<
gain );
98 if (
sc!=StatusCode::SUCCESS) {
99 ATH_MSG_WARNING(
"Conversion tool returned an error. LArAccumulatedDigitContainer might be empty." );
103 return StatusCode::SUCCESS;
109 ATH_MSG_ERROR(
"CreateRep method of LArAccumulatedDigitContainer not implemented" );
110 return StatusCode::SUCCESS;
Container class for LArAccumulatedDigit.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
virtual StatusCode initialize() override
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
#define ATH_MSG_VERBOSE(x)
Gaudi converter base class with const interfaces.
virtual ~LArAccumulatedDigitContByteStreamCnv()
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
static const CLID & classID()
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
ToolHandle< BYTESTREAMTOOL > m_tool
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
uint32_t CLID
The Class ID type.
#define ATH_MSG_WARNING(x)
const boost::regex re(r_e)
LArAccumulatedDigitContByteStreamCnv(ISvcLocator *svcloc)
macros to associate a CLID to a type