17 : base_class(t, n, p) {}
24 for (
int ibc = 0; ibc <
BC_ALL; ibc++) {
25 std::ostringstream location;
26 location <<
"TGC_Measurements" << (ibc ==
BC_PREVIOUS ?
"PriorBC" :
"")
27 << (ibc ==
BC_NEXT ?
"NextBC" :
"");
33 return StatusCode::SUCCESS;
37 const EventContext& ctx)
const {
42 const EventContext& ctx)
const {
47 tgcPrepDataContainerAll.
record(std::make_unique<TgcPrepDataContainer>(
50 auto tgc3BCs =
m_3BCKeys.makeHandles(ctx);
56 uint16_t bcBitMap = 0;
66 if (!handle.isValid()) {
68 return StatusCode::FAILURE;
73 const Identifier channelId = to_copy->identify();
80 elementId, tgcPrepDataContainerAll.
ptr(),
84 std::find_if(collection->
begin(), collection->
end(),
86 return channelId == duplicate->identify();
88 if (duplicateInAllBCs != collection->
end()) {
103 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
value_type push_back(value_type pElem)
DataModel_detail::iterator< DataVector > iterator
const_iterator end() const noexcept
const_iterator begin() const noexcept
size_type size() const noexcept
virtual IdentifierHash identifyHash() const override final
Class to represent TGC measurements.
void setBcBitMap(const uint16_t)
set the bcBitMap for this PRD
uint16_t getBcBitMap() const
Returns the bcBitMap of this PRD bit2 for Previous BC, bit1 for Current BC, bit0 for Next BC.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
MuonPrepDataCollection< TgcPrepData > TgcPrepDataCollection
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer