![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
27 AthConstConverter(storageType(), classID(),svcloc,
"LArCalibDigitContByteStreamCnv"),
28 m_tool(
"LArRawDataContByteStreamTool"),
29 m_rdpSvc(
"ROBDataProviderSvc",
name()),
30 m_byteStreamEventAccess(
"ByteStreamCnvSvc",
name()),
31 m_byteStreamCnvSvc(nullptr),
32 m_calibLineMappingKey (
"LArCalibLineMap"),
33 m_onOffIdMappingKey (
"LArOnOffIdMap")
49 if (
m_rdpSvc.retrieve().isFailure()) {
50 ATH_MSG_WARNING(
" Can't get ByteStreamInputSvc interface Reading of ByteStream Data not possible. " );
60 return StatusCode::SUCCESS;
66 ATH_MSG_VERBOSE(
"Executing CreateObj method for LArCalibDigitContainer " );
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());
90 else if (
key==
"MEDIUM")
95 ATH_MSG_DEBUG(
"Converting LArCalibDigits (from ByteStream). key=" <<
key <<
" ,gain=" <<
gain );
104 if (
sc!=StatusCode::SUCCESS) {
105 ATH_MSG_WARNING(
"Conversion tool returned an error. LArCalibDigitContainer might be empty." );
109 return StatusCode::SUCCESS;
115 ATH_MSG_VERBOSE(
"Execute CreateRep method of LArCalibDigitContainer " );
121 if (!
SG::fromStorable (pObj, CalibDigitContainer) || !CalibDigitContainer) {
122 ATH_MSG_ERROR(
"Cannot get LArCalibDigitContainer for DataObject. Key=" << pObj->registry()->name() );
123 return StatusCode::FAILURE;
126 std::string
nm = pObj->registry()->name();
131 return StatusCode::SUCCESS;
static const CLID & classID()
virtual StatusCode initialize() override
Template class for assembling a full atlas raw event from subfragments.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
convert to and from a SG storable
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
DataObject * asStorable(T *pObject)
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibLineMappingKey
ToolHandle< BYTESTREAMTOOL > m_tool
#define ATH_MSG_VERBOSE(x)
Gaudi converter base class with const interfaces.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
static const CLID & ID()
the CLID of T
Container class for LArCalibDigit.
Gaudi Conversion Service class for ByteStream Persistency.
ByteStreamCnvSvc * m_byteStreamCnvSvc
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
uint32_t CLID
The Class ID type.
LArCalibDigitContByteStreamCnv(ISvcLocator *svcloc)
StatusCode initialize(bool used=true)
#define ATH_MSG_WARNING(x)
const boost::regex re(r_e)
virtual ~LArCalibDigitContByteStreamCnv()
StatusCode getFullEventAssembler(T *&t, const std::string &nm)
Access to FullEventAssembler.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdMappingKey
ServiceHandle< IByteStreamEventAccess > m_byteStreamEventAccess