![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
10 unsigned int curr_size = container->
size();
11 unsigned int test_stored =
linkIndex(assoc_seg);
12 if (test_stored < curr_size)
return test_stored;
13 std::unique_ptr<Muon::MuonSegment>
copy = std::make_unique<Muon::MuonSegment>(*assoc_seg);
14 m_map.emplace_back(assoc_seg,
copy.get(), curr_size);
20 LinkMap::const_iterator itr =
21 std::find_if(
m_map.begin(),
m_map.end(), [storegate](
const SegmentLink& link) { return link.storegate == storegate; });
22 if (itr !=
m_map.end())
return itr->index;
28 std::set<const Trk::Segment*>
ret;
unsigned int linkIndex(const Trk::Segment *storegate) const
Returns the index of the persistent in the output container In case, that the segment has not been pe...
Helper struct to cache the mapping between the segment in the store gate, that's associated with the ...
std::set< const Trk::Segment * > getPersistifiedSegments() const
Returns the set of all store gate segments that were persitified.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
unsigned int persistify(const Muon::MuonSegment *assoc_seg, Trk::SegmentCollection *container)
Pushes back the segment cached in the store gate back to the new segment container meant for write-ou...
The MuonTagToSegMap is an auxillary construct that links the MuonSegments associated with a combined ...
size_type size() const noexcept
Returns the number of elements in the collection.