ATLAS Offline Software
MuonLayerROTs.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9 
10 namespace Muon {
11 
13 
15  // clean-up memory
16  for (const auto *mdt : m_mdts) delete mdt;
17  for (auto& clvec : m_clustersPerTechnology) {
18  for (const auto *cl : clvec) delete cl;
19  }
20  }
21 
22  void MuonLayerROTs::addMdts(const std::vector<const MdtDriftCircleOnTrack*>& mdts) {
23  m_mdts.insert(m_mdts.end(), mdts.begin(), mdts.end());
24  }
25 
26  void MuonLayerROTs::addClusters(const std::vector<const MuonClusterOnTrack*>& clusters, MuonStationIndex::TechnologyIndex tech) {
27  m_clustersPerTechnology[tech].insert(m_clustersPerTechnology[tech].end(), clusters.begin(), clusters.end());
28  }
29 
30  void MuonLayerROTs::replaceMdts(const std::vector<const MdtDriftCircleOnTrack*>& mdts) {
31  // clean-up memory and add
32  for (const auto *mdt : m_mdts) delete mdt;
33  m_mdts.clear();
34  addMdts(mdts);
35  }
36 
37  void MuonLayerROTs::replaceClusters(const std::vector<const MuonClusterOnTrack*>& clusters, MuonStationIndex::TechnologyIndex tech) {
38  for (const auto *cl : m_clustersPerTechnology[tech]) delete cl;
39  m_clustersPerTechnology[tech].clear();
40  addClusters(clusters, tech);
41  }
42 
43 } // namespace Muon
MdtDriftCircleOnTrack.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MuonLayerROTs::MuonLayerROTs
MuonLayerROTs()
constructor
Definition: MuonLayerROTs.cxx:12
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
Muon::MuonLayerROTs::addMdts
void addMdts(const std::vector< const MdtDriftCircleOnTrack * > &mdts)
add MDTs, will merge them with existing MDT's.
Definition: MuonLayerROTs.cxx:22
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:26
Muon::MuonLayerROTs::m_mdts
std::vector< const MdtDriftCircleOnTrack * > m_mdts
payload
Definition: MuonLayerROTs.h:50
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:37
Muon::MuonLayerROTs::m_clustersPerTechnology
std::vector< std::vector< const MuonClusterOnTrack * > > 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:30
Muon::MuonLayerROTs::~MuonLayerROTs
~MuonLayerROTs()
destructor
Definition: MuonLayerROTs.cxx:14
Muon::MuonStationIndex::TechnologyIndexMax
@ TechnologyIndexMax
Definition: MuonStationIndex.h:57
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
MuonLayerROTs.h
MuonClusterOnTrack.h
Muon::MuonStationIndex::TechnologyIndex
TechnologyIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:54
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26