|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   17 #include "GaudiKernel/DataObject.h" 
   18 #include "GaudiKernel/IOpaqueAddress.h" 
   19 #include "GaudiKernel/IRegistry.h" 
   20 #include "GaudiKernel/ISvcLocator.h" 
   21 #include "GaudiKernel/StatusCode.h" 
   36     : 
AthConstConverter( storageType(), classID(), svcloc, 
"CpReadByteStreamV1V2Cnv" ),
 
   37       m_tool1(
"LVL1BS::CpByteStreamV1Tool/CpByteStreamV1Tool"),
 
   38       m_tool2(
"LVL1BS::CpByteStreamV2Tool/CpByteStreamV2Tool"),
 
   39       m_robDataProvider(
"ROBDataProviderSvc", 
name())
 
   69   return StatusCode::SUCCESS;
 
   75                                                     DataObject*& pObj )
 const 
   81     return StatusCode::FAILURE;
 
   84   const std::string 
nm = *( pBS_Addr->par() );
 
   89   const std::vector<uint32_t>& vID1(
m_tool1->sourceIDs());
 
   90   const std::vector<uint32_t>& vID2(
m_tool2->sourceIDs());
 
   99   auto towerCollection = std::make_unique<DataVector<LVL1::CPMTower> >();
 
  100   ATH_MSG_DEBUG( 
" Number of ROB fragments is " << robFrags1.size()
 
  101                  << 
", " << robFrags2.size() );
 
  103   if (robFrags1.size() == 0 && robFrags2.size() == 0) {
 
  105     return StatusCode::SUCCESS;
 
  109   if (robFrags1.size() > 0) {
 
  113   if (robFrags2.size() > 0) {
 
  119   return StatusCode::SUCCESS;
 
  
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create CPM Towers from ByteStream.
std::vector< Identifier > ID
convert to and from a SG storable
CpReadByteStreamV1V2Cnv(ISvcLocator *svcloc)
static long storageType()
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
virtual ~CpReadByteStreamV1V2Cnv()
Gaudi converter base class with const interfaces.
static const CLID & classID()
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Default, invalid implementation of ClassID_traits.
std::vector< const ROBF * > VROBFRAG
uint32_t CLID
The Class ID type.
ToolHandle< LVL1BS::CpByteStreamV2Tool > m_tool2
Tool that does the actual work post-LS1.
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
An STL vector of pointers that by default owns its pointed-to elements.
virtual StatusCode initialize() override
ToolHandle< LVL1BS::CpByteStreamV1Tool > m_tool1
Tool that does the actual work pre-LS1.