ATLAS Offline Software
Loading...
Searching...
No Matches
LayerBucket.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
5
7#include "Acts/Utilities/Enumerate.hpp"
8namespace MuonML{
11 m_min{bucket.coveredMin()},
12 m_max{bucket.coveredMax()} {
13 reserve(bucket.size());
14 m_layNum.resize(bucket.size());
15 std::vector<uint8_t>::iterator layItr{m_layNum.begin()};
16 const MuonR4::SpacePointPerLayerSplitter splitter {bucket};
17 uint8_t globLayer{0};
18 m_nMdtLay = splitter.mdtHits().size();
19 m_nStripLay = splitter.stripHits().size();
20
21 for (const HitVec& spInLay : splitter.mdtHits()) {
22 for (const MuonR4::SpacePoint* spacePoint: spInLay) {
23 push_back(spacePoint);
24 (*layItr++) = globLayer;
25 }
26 ++globLayer;
27 }
28 for (const HitVec& spInLay : splitter.stripHits()) {
29 for (const MuonR4::SpacePoint* spacePoint: spInLay) {
30 push_back(spacePoint);
31 (*layItr++) = globLayer;
32 }
33 ++globLayer;
34 }
35 }
36}
std::vector< uint8_t > m_layNum
Definition LayerBucket.h:41
LayerSpBucket(const MuonR4::SpacePointBucket &bucket)
Standard constructor taking the space point bucket.
double coveredMax() const
Returns the max covered position of the bucket.
Definition LayerBucket.h:31
double coveredMin() const
Returns the min covered position of the bucket.
Definition LayerBucket.h:35
: The muon space point bucket represents a collection of points that will bre processed together in t...
The SpacePointPerLayerSplitter takes a set of spacepoints already sorted by layer Identifier (see Muo...
const HitLayVec & mdtHits() const
Returns the sorted Mdt hits.
const HitLayVec & stripHits() const
Returns the sorted strip hits.
std::vector< const SpacePoint * > HitVec
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
MuonR4::SpacePointPerLayerSplitter::HitVec HitVec