|
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"
29 #include "GaudiKernel/IToolSvc.h"
37 AthConstConverter(storageType(), classID(),svcloc,
"LArAccumulatedCalibDigitContByteStreamCnv"),
38 m_tool(
"LArRawDataContByteStreamTool"),
39 m_rdpSvc(
"ROBDataProviderSvc",
name()),
40 m_calibLineMappingKey (
"LArCalibLineMap")
56 if (
m_rdpSvc.retrieve().isFailure()) {
57 ATH_MSG_WARNING(
" Can't get ByteStreamInputSvc interface Reading of ByteStream Data not possible. " );
63 return StatusCode::SUCCESS;
69 ATH_MSG_VERBOSE(
"Executing CreateObj method for LArAccumulatedCalibDigitContainer " );
73 ATH_MSG_ERROR(
" ROBDataProviderSvc not loaded. Can't read ByteStream." );
74 return StatusCode::FAILURE;
79 ATH_MSG_ERROR(
"dynamic_cast of OpaqueAdress to ByteStreamAddress failed!" );
80 return StatusCode::FAILURE;
85 ATH_MSG_ERROR(
"Could not get raw event from ByteStreamInputSvc" );
87 const std::string&
key = *(pAddr->par());
92 else if (
key==
"MEDIUM")
100 ATH_MSG_DEBUG(
"Converting LArAccumulatedCalibDigits (from ByteStream). key=" <<
key <<
" ,gain=" <<
gain );
104 if (
sc!=StatusCode::SUCCESS) {
105 ATH_MSG_WARNING(
"Conversion tool returned an error. LArAccumulatedCalibDigitContainer might be empty." );
110 return StatusCode::SUCCESS;
117 ATH_MSG_ERROR(
"CreateRep method of LArAccumulatedCalibDigitContainer not implemented" );
118 return StatusCode::SUCCESS;
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibLineMappingKey
void setDelayScale(const double scale)
set the delay Scale
static const CLID & classID()
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.
LArAccumulatedCalibDigitContByteStreamCnv(ISvcLocator *svcloc)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
uint32_t CLID
The Class ID type.
virtual ~LArAccumulatedCalibDigitContByteStreamCnv()
StatusCode initialize(bool used=true)
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
#define ATH_MSG_WARNING(x)
const boost::regex re(r_e)
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
Container class for LArAccumulatedCalibDigit.
macros to associate a CLID to a type
ToolHandle< BYTESTREAMTOOL > m_tool