12#include "eformat/Version.h"
13#include "eformat/index.h"
46 ATH_MSG_FATAL(
"Needs ether Digits or CalibDigits or AccDigits or AccCalibDigit Key");
47 return StatusCode::FAILURE;
51 ATH_MSG_FATAL(
"Could not have both CalibDigits, AccCalibDigits Key");
52 return StatusCode::FAILURE;
65 return StatusCode::SUCCESS;
76 ATH_CHECK(accdigitsHdl.
record(std::make_unique<LArAccumulatedDigitContainer>()));
77 accdigits=accdigitsHdl.
ptr();
83 ATH_CHECK(caccdigitsHdl.
record(std::make_unique<LArAccumulatedCalibDigitContainer>()));
84 caccdigits=caccdigitsHdl.
ptr();
90 ATH_CHECK(latomeHeaderHdl.
record(std::make_unique<LArLATOMEHeaderContainer>()));
91 latome_header_coll = latomeHeaderHdl.
ptr();
92 latome_header_coll->
reserve(120);
100 return StatusCode::FAILURE;
107 return StatusCode::FAILURE;
114 return StatusCode::FAILURE;
121 accdigits, caccdigits,
123 if (
sc != StatusCode::SUCCESS)
124 ATH_MSG_WARNING(
"ERROR LATOMEDecoder tool returned an error. LAr SC containers might be garbage");
127 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
const ServiceHandle< StoreGateSvc > & detStore() const
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Container class for LArAccumulatedCalibDigit.
Container class for LArAccumulatedDigit.
class to provide SC mapping
SG::WriteHandleKey< LArAccumulatedDigitContainer > m_accDigitKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
ToolHandle< LArLATOMEDecoder > m_latomeDecoder
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
StatusCode initialize() override
SG::ReadCondHandleKey< LArCalibLineMapping > m_calibMapKey
SG::WriteHandleKey< LArLATOMEHeaderContainer > m_latomeHeaderCollKey
SG::ReadCondHandleKey< LArLATOMEMapping > m_mapKey
StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< LArAccumulatedCalibDigitContainer > m_accCalibDigitKey
const LArOnlineID * m_onlineId
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.