Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
LayerBucket.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONINFERENCEINTERACES_LAYERBUCKET_H
5 #define MUONINFERENCEINTERACES_LAYERBUCKET_H
6 
8 #include "GaudiKernel/SystemOfUnits.h"
9 namespace MuonML{
14  class LayerSpBucket : public std::vector<const MuonR4::SpacePoint*> {
15  public:
19  uint8_t nMdtLayers() const {
20  return m_nMdtLay;
21  }
24  return m_nStripLay;
25  }
27  uint8_t layerNum(const size_t i) const {
28  return m_layNum[i];
29  }
31  double coveredMax() const {
32  return m_max;
33  }
35  double coveredMin() const {
36  return m_min;
37  }
38  private:
41  std::vector<uint8_t> m_layNum{};
42  double m_min{-20. *Gaudi::Units::m};
43  double m_max{20. * Gaudi::Units::m};
44  };
45 }
46 #endif
MuonML::LayerSpBucket::m_min
double m_min
Definition: LayerBucket.h:42
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
MuonML::LayerSpBucket::m_max
double m_max
Definition: LayerBucket.h:43
MuonML::LayerSpBucket::coveredMax
double coveredMax() const
Returns the max covered position of the bucket.
Definition: LayerBucket.h:31
MuonML
Definition: GraphBucketFilterTool.cxx:9
MuonML::LayerSpBucket::nStripLayers
uint8_t nStripLayers() const
Returns how many Strip layers are inside the bucket.
Definition: LayerBucket.h:23
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonML::LayerSpBucket
The LayerSpBucket is a space pointbucket where the points are internally sorted by their layer number...
Definition: LayerBucket.h:14
MuonML::LayerSpBucket::layerNum
uint8_t layerNum(const size_t i) const
Returns the associated layer number of the i-the space point inside the bucket.
Definition: LayerBucket.h:27
MuonML::LayerSpBucket::LayerSpBucket
LayerSpBucket(const MuonR4::SpacePointBucket &bucket)
Standard constructor taking the space point bucket.
Definition: LayerBucket.cxx:10
MuonML::LayerSpBucket::m_layNum
std::vector< uint8_t > m_layNum
Definition: LayerBucket.h:41
SpacePointContainer.h
MuonML::LayerSpBucket::coveredMin
double coveredMin() const
Returns the min covered position of the bucket.
Definition: LayerBucket.h:35
MuonML::LayerSpBucket::nMdtLayers
uint8_t nMdtLayers() const
Returns how many Mdt layers are inside the bucket.
Definition: LayerBucket.h:19
MuonML::LayerSpBucket::m_nStripLay
uint8_t m_nStripLay
Definition: LayerBucket.h:40
MuonML::LayerSpBucket::m_nMdtLay
uint8_t m_nMdtLay
Definition: LayerBucket.h:39
python.SystemOfUnits.m
float m
Definition: SystemOfUnits.py:105