ATLAS Offline Software
Loading...
Searching...
No Matches
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
6namespace 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
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
Base class for Muon cluster RIO_OnTracks.
void addMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will merge them with existing MDT's.
void addClusters(const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
add MuonClusters of a given technology, will merge them with existing clusters.
std::vector< const MdtDriftCircleOnTrack * > m_mdts
payload
std::array< std::vector< const MuonClusterOnTrack * >, s_techMax > m_clustersPerTechnology
void replaceMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will remove any existing MDT's.
void replaceClusters(const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
add MuonClusters of a given technology, will remove any existing clusters.
TechnologyIndex
enum to classify the different layers in the muon spectrometer
constexpr int toInt(const EnumType enumVal)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.