13 return StatusCode::SUCCESS;
21 return StatusCode::FAILURE;
38 return StatusCode::SUCCESS;
45 if (!rdoColl->
empty()) {
57 uint16_t relBcid = newDigit->
bcTag();
63 bcTag = ~(3 - relBcid);
65 bcTag = (relBcid - 3);
72 if (
m_idHelperSvc->stgcIdHelper().get_hash(elementId, coll_hash, &stgcContext)) {
74 <<
"context begin_index = " << stgcContext.
begin_index()
75 <<
" context end_index = " << stgcContext.
end_index() <<
" the identifier is ");
79 if (oldId != elementId) {
81 if (
nullptr == coll) {
84 collection = newCollection;
85 if (stgcContainer->
addCollection(newCollection, coll_hash).isFailure())
86 ATH_MSG_WARNING(
"Couldn't record sTgcDigitCollection with key=" << coll_hash <<
" in StoreGate!");
90 collection = oldCollection;
98 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
char data[hepevt_bytes_allocation_ATLAS]
unsigned bcTag(unsigned bcBitMap)
#define ATLAS_THREAD_SAFE
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
size_type begin_index() const
size_type end_index() const
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,...
size_t size() const
Duplicate of fullSize for backwards compatability.
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,...
This is a "hash" representation of an Identifier.
void show() const
Print out in hex form.
Identifier identify() const
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
virtual StatusCode initialize() override final
StatusCode decodeSTGC(const EventContext &ctx, const Muon::STGC_RawDataCollection *, sTgcDigitContainer *, sTgcDigitCollection *&, Identifier &) const
virtual StatusCode execute(const EventContext &ctx) const override final
ToolHandle< Muon::ISTGC_RDO_Decoder > m_stgcRdoDecoderTool
SG::WriteHandleKey< sTgcDigitContainer > m_stgcDigitKey
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::ReadHandleKey< Muon::STGC_RawDataContainer > m_stgcRdoKey
Use IdentifiableContainer with sTgcDigitCollection.
void set_bcTag(uint16_t newbcTag)