ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Muon::MuonLayerROTs Class Reference

struct holding RIO_OnTracks for a given layer More...

#include <MuonLayerROTs.h>

Collaboration diagram for Muon::MuonLayerROTs:

Public Member Functions

 MuonLayerROTs ()
 constructor More...
 
 ~MuonLayerROTs ()
 destructor More...
 
void addMdts (const std::vector< const MdtDriftCircleOnTrack * > &mdts)
 add MDTs, will merge them with existing MDT's. More...
 
void replaceMdts (const std::vector< const MdtDriftCircleOnTrack * > &mdts)
 add MDTs, will remove any existing MDT's. More...
 
void addClusters (const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
 add MuonClusters of a given technology, will merge them with existing clusters. More...
 
void replaceClusters (const std::vector< const MuonClusterOnTrack * > &clusters, MuonStationIndex::TechnologyIndex tech)
 add MuonClusters of a given technology, will remove any existing clusters. More...
 
const std::vector< const MdtDriftCircleOnTrack * > & getMdts () const
 access calibrated MDT's More...
 
const std::vector< const MuonClusterOnTrack * > & getClusters (MuonStationIndex::TechnologyIndex tech) const
 access calibrated MuonClusters for a given technolgy More...
 

Private Member Functions

MuonLayerROTsoperator= (const MuonLayerROTs &)=delete
 no copying nor assignment allow, use shared pointers instead More...
 
 MuonLayerROTs (const MuonLayerROTs &)=delete
 

Private Attributes

std::vector< const MdtDriftCircleOnTrack * > m_mdts
 payload More...
 
std::vector< std::vector< const MuonClusterOnTrack * > > m_clustersPerTechnology
 

Detailed Description

struct holding RIO_OnTracks for a given layer

Definition at line 18 of file MuonLayerROTs.h.

Constructor & Destructor Documentation

◆ MuonLayerROTs() [1/2]

Muon::MuonLayerROTs::MuonLayerROTs ( )

constructor

Definition at line 12 of file MuonLayerROTs.cxx.

◆ ~MuonLayerROTs()

Muon::MuonLayerROTs::~MuonLayerROTs ( )

destructor

Definition at line 14 of file MuonLayerROTs.cxx.

14  {
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  }

◆ MuonLayerROTs() [2/2]

Muon::MuonLayerROTs::MuonLayerROTs ( const MuonLayerROTs )
privatedelete

Member Function Documentation

◆ addClusters()

void Muon::MuonLayerROTs::addClusters ( const std::vector< const MuonClusterOnTrack * > &  clusters,
MuonStationIndex::TechnologyIndex  tech 
)

add MuonClusters of a given technology, will merge them with existing clusters.

Takes ownership of all pointers

Definition at line 26 of file MuonLayerROTs.cxx.

26  {
27  m_clustersPerTechnology[tech].insert(m_clustersPerTechnology[tech].end(), clusters.begin(), clusters.end());
28  }

◆ addMdts()

void Muon::MuonLayerROTs::addMdts ( const std::vector< const MdtDriftCircleOnTrack * > &  mdts)

add MDTs, will merge them with existing MDT's.

Takes ownership of all pointers

Definition at line 22 of file MuonLayerROTs.cxx.

22  {
23  m_mdts.insert(m_mdts.end(), mdts.begin(), mdts.end());
24  }

◆ getClusters()

const std::vector< const MuonClusterOnTrack * > & Muon::MuonLayerROTs::getClusters ( MuonStationIndex::TechnologyIndex  tech) const
inline

access calibrated MuonClusters for a given technolgy

Definition at line 56 of file MuonLayerROTs.h.

56  {
57  return m_clustersPerTechnology[tech];
58  }

◆ getMdts()

const std::vector< const MdtDriftCircleOnTrack * > & Muon::MuonLayerROTs::getMdts ( ) const
inline

access calibrated MDT's

Definition at line 54 of file MuonLayerROTs.h.

54 { return m_mdts; }

◆ operator=()

MuonLayerROTs& Muon::MuonLayerROTs::operator= ( const MuonLayerROTs )
privatedelete

no copying nor assignment allow, use shared pointers instead

◆ replaceClusters()

void Muon::MuonLayerROTs::replaceClusters ( const std::vector< const MuonClusterOnTrack * > &  clusters,
MuonStationIndex::TechnologyIndex  tech 
)

add MuonClusters of a given technology, will remove any existing clusters.

Takes ownership of all pointers

Definition at line 37 of file MuonLayerROTs.cxx.

37  {
38  for (const auto *cl : m_clustersPerTechnology[tech]) delete cl;
39  m_clustersPerTechnology[tech].clear();
40  addClusters(clusters, tech);
41  }

◆ replaceMdts()

void Muon::MuonLayerROTs::replaceMdts ( const std::vector< const MdtDriftCircleOnTrack * > &  mdts)

add MDTs, will remove any existing MDT's.

Takes ownership of all pointers

Definition at line 30 of file MuonLayerROTs.cxx.

30  {
31  // clean-up memory and add
32  for (const auto *mdt : m_mdts) delete mdt;
33  m_mdts.clear();
34  addMdts(mdts);
35  }

Member Data Documentation

◆ m_clustersPerTechnology

std::vector<std::vector<const MuonClusterOnTrack*> > Muon::MuonLayerROTs::m_clustersPerTechnology
private

Definition at line 51 of file MuonLayerROTs.h.

◆ m_mdts

std::vector<const MdtDriftCircleOnTrack*> Muon::MuonLayerROTs::m_mdts
private

payload

Definition at line 50 of file MuonLayerROTs.h.


The documentation for this class was generated from the following files:
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::m_clustersPerTechnology
std::vector< std::vector< const MuonClusterOnTrack * > > m_clustersPerTechnology
Definition: MuonLayerROTs.h:51
Muon::MuonStationIndex::TechnologyIndexMax
@ TechnologyIndexMax
Definition: MuonStationIndex.h:57
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26