|
ATLAS Offline Software
|
Go to the documentation of this file.
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"
34 Converter(storageType(), classID(), svcloc),
36 m_name(
"CmxCpHitsByteStreamxAODCnv")
59 return StatusCode::SUCCESS;
69 CHECK(pBS_Addr !=
nullptr);
71 const std::string
nm = *(pBS_Addr->par());
72 const std::string nmAux =
nm +
"Aux.";
73 ATH_MSG_DEBUG(
"Creating xAOD::CMXCPHits interface objects '" <<
nm <<
"'");
82 for(
size_t i=0;
i < link->
size(); ++
i){
86 cphitsCollection->setStore(link);
90 return StatusCode::SUCCESS;
97 return StatusCode::FAILURE;
static const CLID & classID()
convert to and from a SG storable
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
CmxCpHitsByteStreamxAODCnv(ISvcLocator *svcloc)
DataObject * asStorable(T *pObject)
virtual StatusCode initialize()
virtual size_t size() const override
Get the size of the container.
static const CLID & ID()
the CLID of T
msgSvc
Provide convenience handles for various services.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Object reference supporting deferred reading from StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_name
Converter name.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Class to provide easy MsgStream access and capabilities.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
static constexpr long storageType()
CMXCPHitsContainer_v1 CMXCPHitsContainer
Define the latest version of the CMXCPHits class.
Helpers for checking error return status codes and reporting errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
Description of CMXCPHits_v1.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
static long storageType()