Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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"
8 namespace 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 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonR4::SpacePointPerLayerSplitter
The SpacePointPerLayerSplitter takes a set of spacepoints already sorted by layer Identifier (see Muo...
Definition: SpacePointPerLayerSplitter.h:16
MuonR4::SpacePointBucket
: The muon space point bucket represents a collection of points that will bre processed together in t...
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:21
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
MuonR4::SpacePointBucket::coveredMin
double coveredMin() const
lower interval value covered by the bucket
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:32
MuonR4::SpacePointPerLayerSplitter::HitVec
std::vector< const SpacePoint * > HitVec
Definition: SpacePointPerLayerSplitter.h:18
MuonML
Definition: GraphBucketFilterTool.cxx:9
SpacePointPerLayerSplitter.h
LayerBucket.h
MuonR4::SpacePoint
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePoint.h:18
MuonML::LayerSpBucket::LayerSpBucket
LayerSpBucket(const MuonR4::SpacePointBucket &bucket)
Standard constructor taking the space point bucket.
Definition: LayerBucket.cxx:10
MuonML::HitVec
MuonR4::SpacePointPerLayerSplitter::HitVec HitVec
Definition: LayerBucket.cxx:9