15#include "GaudiKernel/DataObject.h"
16#include "GaudiKernel/IOpaqueAddress.h"
17#include "GaudiKernel/IRegistry.h"
18#include "GaudiKernel/ISvcLocator.h"
19#include "GaudiKernel/StatusCode.h"
35 AthMessaging(svcloc != 0 ? msgSvc() : 0,
"CmxRoIByteStreamxAODCnv"),
36 m_name(
"CmxRoIByteStreamxAODCnv")
58 CHECK(Converter::initialize());
60 return StatusCode::SUCCESS;
70 CHECK(pBS_Addr !=
nullptr);
72 const std::string nm = *(pBS_Addr->par());
73 const std::string nmAux = nm +
"Aux.";
74 ATH_MSG_DEBUG(
"Creating xAOD::CmxRoI interface objects '" << nm <<
"'");
83 for(
size_t i=0; i < link->size(); ++i){
87 cmxJetContainer->setStore(link);
91 return StatusCode::SUCCESS;
98 return StatusCode::FAILURE;
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
convert to and from a SG storable
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
Object reference supporting deferred reading from StoreGate.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
std::string m_name
Converter name.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
CmxRoIByteStreamxAODCnv(ISvcLocator *svcloc)
virtual StatusCode initialize()
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
static long storageType()
static const CLID & classID()
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
CMXRoI_v1 CMXRoI
Define the latest version of the CMXRoI class.
CMXRoIContainer_v1 CMXRoIContainer
Define the latest version of the CMXRoI container.