ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonLayerEvent
src
MuonLayerROTs.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 "
MuonLayerEvent/MuonLayerROTs.h
"
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,
18
MuonStationIndex::TechnologyIndex
tech) {
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,
34
MuonStationIndex::TechnologyIndex
tech) {
35
m_clustersPerTechnology
[
toInt
(tech)].clear();
36
addClusters
(clusters, tech);
37
}
38
39
}
// namespace Muon
MuonLayerROTs.h
Muon::MdtDriftCircleOnTrack
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
Definition
MdtDriftCircleOnTrack.h:37
Muon::MuonClusterOnTrack
Base class for Muon cluster RIO_OnTracks.
Definition
MuonClusterOnTrack.h:34
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::m_mdts
std::vector< const MdtDriftCircleOnTrack * > m_mdts
payload
Definition
MuonLayerROTs.h:49
Muon::MuonLayerROTs::m_clustersPerTechnology
std::array< std::vector< const MuonClusterOnTrack * >, s_techMax > m_clustersPerTechnology
Definition
MuonLayerROTs.h:51
Muon::MuonLayerROTs::replaceMdts
void replaceMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will remove any existing MDT's.
Definition
MuonLayerROTs.cxx:28
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::MuonStationIndex
Definition
MuonStationIndex.h:14
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition
MuonStationIndex.h:55
Muon::MuonStationIndex::toInt
constexpr int toInt(const EnumType enumVal)
Definition
MuonStationIndex.h:62
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0