|
ATLAS Offline Software
|
Go to the documentation of this file.
14 return StatusCode::SUCCESS;
22 return StatusCode::FAILURE;
39 return StatusCode::SUCCESS;
46 if (!rdoColl->
empty()) {
64 bcTag = ~(3 - relBcid);
66 bcTag = (relBcid - 3);
73 if (
m_idHelperSvc->stgcIdHelper().get_hash(elementId, coll_hash, &stgcContext)) {
75 <<
"context begin_index = " << stgcContext.
begin_index()
76 <<
" context end_index = " << stgcContext.
end_index() <<
" the identifier is ");
80 if (oldId != elementId) {
82 if (
nullptr == coll) {
85 collection = newCollection;
86 if (stgcContainer->
addCollection(newCollection, coll_hash).isFailure())
87 ATH_MSG_WARNING(
"Couldn't record sTgcDigitCollection with key=" << coll_hash <<
" in StoreGate!");
91 collection = oldCollection;
99 return StatusCode::SUCCESS;
Use IdentifiableContainer with sTgcDigitCollection.
char data[hepevt_bytes_allocation_ATLAS]
STGC_RdoToDigit(const std::string &name, ISvcLocator *pSvcLocator)
void set_bcTag(uint16_t newbcTag)
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode addCollection(const T *coll, IdentifierHash hashId) override final
insert collection into container with id hash if IDC should not take ownership of collection,...
virtual StatusCode initialize() override final
size_type end_index() const
size_t size() const
Duplicate of fullSize for backwards compatability.
An algorithm that can be simultaneously executed in multiple threads.
size_type begin_index() const
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
void show() const
Print out in hex form.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::WriteHandleKey< sTgcDigitContainer > m_stgcDigitKey
SG::ReadHandleKey< Muon::STGC_RawDataContainer > m_stgcRdoKey
ToolHandle< Muon::ISTGC_RDO_Decoder > m_stgcRdoDecoderTool
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual const T * indexFindPtr(IdentifierHash hashId) const override final
return pointer on the found entry or null if out of range using hashed index - fast version,...
Identifier identify() const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
unsigned bcTag(unsigned bcBitMap)
#define ATLAS_THREAD_SAFE
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual StatusCode execute(const EventContext &ctx) const override final
StatusCode decodeSTGC(const Muon::STGC_RawDataCollection *, sTgcDigitContainer *, sTgcDigitCollection *&, Identifier &) const
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.