Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MuonLayerROTs.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
5 
6 namespace Muon {
7  using namespace MuonStationIndex;
8 
9  void MuonLayerROTs::addMdts(const std::vector<const MdtDriftCircleOnTrack*>& mdts) {
10  m_mdts.insert(m_mdts.end(), mdts.begin(), mdts.end());
11  std::for_each(mdts.begin(), mdts.end(),
12  [this](const MdtDriftCircleOnTrack* rot){
13  m_garbage.emplace_back(rot);
14  });
15  }
16 
17  void MuonLayerROTs::addClusters(const std::vector<const MuonClusterOnTrack*>& clusters,
19 
20  std::vector<const MuonClusterOnTrack*>& insertMe{m_clustersPerTechnology[toInt(tech)]};
21  insertMe.insert(insertMe.end(), clusters.begin(), clusters.end());
22  std::for_each(clusters.begin(), clusters.end(),
23  [this](const MuonClusterOnTrack* rot){
24  m_garbage.emplace_back(rot);
25  });
26  }
27 
28  void MuonLayerROTs::replaceMdts(const std::vector<const MdtDriftCircleOnTrack*>& mdts) {
29  m_mdts.clear();
30  addMdts(mdts);
31  }
32 
33  void MuonLayerROTs::replaceClusters(const std::vector<const MuonClusterOnTrack*>& clusters,
35  m_clustersPerTechnology[toInt(tech)].clear();
36  addClusters(clusters, tech);
37  }
38 
39 } // namespace Muon
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MuonLayerROTs::addMdts
void addMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will merge them with existing MDT's.
Definition: MuonLayerROTs.cxx:9
Muon::MuonLayerROTs::addClusters
void addClusters(const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
add MuonClusters of a given technology, will merge them with existing clusters.
Definition: MuonLayerROTs.cxx:17
Muon::MuonLayerROTs::replaceClusters
void replaceClusters(const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
add MuonClusters of a given technology, will remove any existing clusters.
Definition: MuonLayerROTs.cxx:33
Muon::MuonLayerROTs::replaceMdts
void replaceMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will remove any existing MDT's.
Definition: MuonLayerROTs.cxx:28
Muon::MdtDriftCircleOnTrack
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
Definition: MdtDriftCircleOnTrack.h:37
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
MuonLayerROTs.h
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition: MuonClusterOnTrack.h:34
Muon::MuonStationIndex::toInt
constexpr int toInt(const EnumType enumVal)
Definition: MuonStationIndex.h:61