|
ATLAS Offline Software
|
Go to the documentation of this file.
31 return StatusCode::SUCCESS;
40 if ( not caloLumiBCIDHandle.
isValid() ) {
41 ATH_MSG_DEBUG(
"Found invalid read handle for CaloBCIDAverage");
42 return StatusCode::FAILURE;
47 if ( not cellsHandle.isValid() ) {
49 return StatusCode::FAILURE;
53 ATH_MSG_DEBUG(
"Got a CaloCellContainer input with size : "<<scells_from_sg->
size());
56 auto new_scell_cont = std::make_unique<CaloCellContainer> ();
58 new_scell_cont->reserve(scells_from_sg->
size());
60 for(
const auto *
sc : *scells_from_sg){
62 std::unique_ptr<CaloCell>
cell =
sc->clone();
66 std::vector<Identifier>
ids =
m_scidtool->superCellToOfflineID(
sc->ID() );
69 new_scell_cont->push_back( std::move(
cell) );
73 return StatusCode::SUCCESS;
const_pointer_type cptr()
Dereference the pointer.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< CaloCellContainer > m_sCellContainerOutKey
Property: SG key for the output supercell LAr channel container.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< CaloCellContainer > m_sCellContainerInKey
Property: SG key for the input calorimeter cell container.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ToolHandle< ICaloSuperCellIDTool > m_scidtool
Property: Offline / supercell mapping tool.
Container class for CaloCell.
float average(const Identifier &id) const
LArSuperCellBCIDEmAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute(const EventContext &context) const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadHandleKey< CaloBCIDAverage > m_bcidAvgKey
Property SG Key for the CaloLumiBCID.
size_type size() const noexcept
Returns the number of elements in the collection.