|
ATLAS Offline Software
|
Go to the documentation of this file.
34 m_tool(
"LArRawDataContByteStreamTool"),
35 m_scTool(
"LArLATOMEDecoder"),
36 m_rdpSvc(
"ROBDataProviderSvc",
name()),
37 m_byteStreamCnvSvc(
"ByteStreamCnvSvc",
name())
53 if (
m_rdpSvc.retrieve().isFailure()) {
54 ATH_MSG_WARNING(
" Can't get ByteStreamInputSvc interface Reading of ByteStream Data not possible. " );
62 return StatusCode::SUCCESS;
71 ATH_MSG_ERROR(
" ROBDataProviderSvc not loaded. Can't read ByteStream." );
72 return StatusCode::FAILURE;
77 ATH_MSG_ERROR(
"dynamic_cast of OpaqueAdress to ByteStreamAddress failed!" );
78 return StatusCode::FAILURE;
81 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> robFrags;
82 m_rdpSvc->getROBData(Gaudi::Hive::currentContext(), LArByteStream::s_allROBIDs_LATOME, robFrags );
84 const std::string&
key = *(pAddr->par());
96 else if (
key==
"MEDIUM")
104 else if(
key==
"SC_ADC_BAS"){
115 if (
sc!=StatusCode::SUCCESS)
116 ATH_MSG_WARNING(
"Conversion tool returned an error. LArDigitContainer might be empty." );
118 return StatusCode::SUCCESS;
122 sc=
m_scTool->convert(robFrags,
nullptr,adc_coll, adc_bas_coll, et_coll, et_id_coll, header_coll);
123 if (
sc!=StatusCode::SUCCESS)
124 ATH_MSG_WARNING(
"Conversion tool returned an error. LAr SC containers might be empty." );
129 else if(
key==
"SC_ADC_BAS"){
133 return StatusCode::SUCCESS;
148 ATH_MSG_ERROR(
"Cannot get LArDigitContainer for DataObject. Key=" << pObj->registry()->name() );
149 return StatusCode::FAILURE;
152 std::string
nm = pObj->registry()->name();
156 return StatusCode::SUCCESS;
static const CLID & classID()
virtual ~LArDigitContByteStreamCnv()
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
Tool to get LATOME SC and SCID mapping file and fill std::map variable with it.
ToolHandle< BYTESTREAMTOOL > m_tool
Template class for assembling a full atlas raw event from subfragments.
LArDigitContByteStreamCnv(ISvcLocator *svcloc)
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
convert to and from a SG storable
Container class for LArRawSC.
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
virtual StatusCode initialize() override
#define ATH_MSG_VERBOSE(x)
Gaudi converter base class with const interfaces.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
Tool to store LATOME mon header and footer data.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
uint32_t CLID
The Class ID type.
ToolHandle< LArLATOMEDecoder > m_scTool
ServiceHandle< IROBDataProviderSvc > m_rdpSvc
#define ATH_MSG_WARNING(x)
const boost::regex re(r_e)
Container class for LArDigit.
Byte stream converter of LATOME.
macros to associate a CLID to a type