|
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_byteStreamCnvSvc(
"ByteStreamCnvSvc",
name()),
31 m_calibLineMappingKey (
"LArCalibLineMap"),
32 m_onOffIdMappingKey (
"LArOnOffIdMap")
48 if (
m_rdpSvc.retrieve().isFailure()) {
49 ATH_MSG_WARNING(
" Can't get ByteStreamInputSvc interface Reading of ByteStream Data not possible. " );
58 return StatusCode::SUCCESS;
64 ATH_MSG_VERBOSE(
"Executing CreateObj method for LArCalibDigitContainer " );
67 ATH_MSG_ERROR(
" ROBDataProviderSvc not loaded. Can't read ByteStream." );
68 return StatusCode::FAILURE;
73 ATH_MSG_ERROR(
"dynamic_cast of OpaqueAdress to ByteStreamAddress failed!" );
74 return StatusCode::FAILURE;
79 ATH_MSG_ERROR(
"Could not get raw event from ByteStreamInputSvc" );
80 return StatusCode::FAILURE;
82 const std::string&
key = *(pAddr->par());
88 else if (
key==
"MEDIUM")
93 ATH_MSG_DEBUG(
"Converting LArCalibDigits (from ByteStream). key=" <<
key <<
" ,gain=" <<
gain );
102 if (
sc!=StatusCode::SUCCESS) {
103 ATH_MSG_WARNING(
"Conversion tool returned an error. LArCalibDigitContainer might be empty." );
107 return StatusCode::SUCCESS;
113 ATH_MSG_VERBOSE(
"Execute CreateRep method of LArCalibDigitContainer " );
119 if (!
SG::fromStorable (pObj, CalibDigitContainer) || !CalibDigitContainer) {
120 ATH_MSG_ERROR(
"Cannot get LArCalibDigitContainer for DataObject. Key=" << pObj->registry()->name() );
121 return StatusCode::FAILURE;
124 std::string
nm = pObj->registry()->name();
129 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
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibLineMappingKey
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
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.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
Container class for LArCalibDigit.
::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()
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdMappingKey