|
ATLAS Offline Software
|
Go to the documentation of this file.
33 return StatusCode::SUCCESS;
44 if ( not caloLumiBCIDHandle.
isValid() ) {
45 ATH_MSG_DEBUG(
"Found invalid read handle for CaloBCIDAverage");
46 return StatusCode::FAILURE;
51 if ( not cellsHandle.isValid() ) {
53 return StatusCode::FAILURE;
58 ATH_MSG_DEBUG(
"Got a CaloCellContainer input with size : "<<scells_from_sg->
size());
61 auto new_scell_cont = std::make_unique<CaloCellContainer> ();
63 new_scell_cont->reserve(scells_from_sg->
size());
65 for(
const auto *
sc : *scells_from_sg){
67 std::unique_ptr<CaloCell>
cell =
sc->clone();
75 new_scell_cont->push_back( std::move(
cell) );
79 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
IdentifierHash channel_Hash(HWIdentifier channelId) const
Create channel_hash from channel_Id.
const_pointer_type cptr()
Dereference the pointer.
SG::ReadHandleKey< CaloBCIDAverage > m_bcidAvgKey
Property SG Key for the CaloLumiBCID.
const LArOnline_SuperCellID * m_laronline_id
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
LArSuperCellBCIDAlg(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Property SG Key for the OnOffMapping.
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?
StatusCode initialize(bool used=true)
Container class for CaloCell.
StatusCode execute(const EventContext &context) const
float average(const Identifier &id) const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::WriteHandleKey< CaloCellContainer > m_sCellContainerOutKey
Property: SG key for the output supercell LAr channel container.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
size_type size() const noexcept
Returns the number of elements in the collection.
SG::ReadHandleKey< CaloCellContainer > m_sCellContainerInKey
Property: SG key for the input calorimeter cell container.