ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonInferenceInterfaces
src
LayerBucket.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MuonInferenceInterfaces/LayerBucket.h
"
5
6
#include "
MuonSpacePoint/SpacePointPerLayerSplitter.h
"
7
#include "Acts/Utilities/Enumerate.hpp"
8
namespace
MuonML
{
9
using
HitVec
=
MuonR4::SpacePointPerLayerSplitter::HitVec
;
10
LayerSpBucket::LayerSpBucket
(
const
MuonR4::SpacePointBucket
& bucket):
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
}
LayerBucket.h
SpacePointPerLayerSplitter.h
MuonML::LayerSpBucket::m_max
double m_max
Definition
LayerBucket.h:43
MuonML::LayerSpBucket::m_layNum
std::vector< uint8_t > m_layNum
Definition
LayerBucket.h:41
MuonML::LayerSpBucket::m_nStripLay
uint8_t m_nStripLay
Definition
LayerBucket.h:40
MuonML::LayerSpBucket::LayerSpBucket
LayerSpBucket(const MuonR4::SpacePointBucket &bucket)
Standard constructor taking the space point bucket.
Definition
LayerBucket.cxx:10
MuonML::LayerSpBucket::m_min
double m_min
Definition
LayerBucket.h:42
MuonML::LayerSpBucket::m_nMdtLay
uint8_t m_nMdtLay
Definition
LayerBucket.h:39
MuonML::LayerSpBucket::coveredMax
double coveredMax() const
Returns the max covered position of the bucket.
Definition
LayerBucket.h:31
MuonML::LayerSpBucket::coveredMin
double coveredMin() const
Returns the min covered position of the bucket.
Definition
LayerBucket.h:35
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
MuonR4::SpacePointPerLayerSplitter
The SpacePointPerLayerSplitter takes a set of spacepoints already sorted by layer Identifier (see Muo...
Definition
SpacePointPerLayerSplitter.h:18
MuonR4::SpacePointPerLayerSplitter::mdtHits
const HitLayVec & mdtHits() const
Returns the sorted Mdt hits.
Definition
SpacePointPerLayerSplitter.h:27
MuonR4::SpacePointPerLayerSplitter::stripHits
const HitLayVec & stripHits() const
Returns the sorted strip hits.
Definition
SpacePointPerLayerSplitter.h:39
MuonR4::SpacePointPerLayerSplitter::HitVec
std::vector< const SpacePoint * > HitVec
Definition
SpacePointPerLayerSplitter.h:20
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:25
MuonML
Definition
BucketGraphUtils.h:19
MuonML::HitVec
MuonR4::SpacePointPerLayerSplitter::HitVec HitVec
Definition
LayerBucket.cxx:9
Generated on
for ATLAS Offline Software by
1.17.0