ATLAS Offline Software
Loading...
Searching...
No Matches
MuonGMR4::ToroidDetectorManager Class Reference

Simple detector manager that just holds the tree tops to the components representing the passive muon structure. More...

#include <ToroidDetectorManager.h>

Inheritance diagram for MuonGMR4::ToroidDetectorManager:
Collaboration diagram for MuonGMR4::ToroidDetectorManager:

Public Member Functions

 ToroidDetectorManager (const std::string &name)
 Constructor taking the detector manger name.
virtual ~ToroidDetectorManager ()=default
 Default desctructor.
unsigned int getNumTreeTops () const override final
 Number of tree tops.
PVConstLink getTreeTop (unsigned int i) const override final
 Access to the i-th tree top.
void addTreeTop (PVConstLink pvLink)
 Add a GeoVolume to the toroid.

Private Attributes

std::vector< PVConstLink > m_treeTops {}

Detailed Description

Simple detector manager that just holds the tree tops to the components representing the passive muon structure.

Definition at line 12 of file ToroidDetectorManager.h.

Constructor & Destructor Documentation

◆ ToroidDetectorManager()

MuonGMR4::ToroidDetectorManager::ToroidDetectorManager ( const std::string & name)

Constructor taking the detector manger name.

Definition at line 8 of file ToroidDetectorManager.cxx.

8 {
9 setName(name);
10 }

◆ ~ToroidDetectorManager()

virtual MuonGMR4::ToroidDetectorManager::~ToroidDetectorManager ( )
virtualdefault

Default desctructor.

Member Function Documentation

◆ addTreeTop()

void MuonGMR4::ToroidDetectorManager::addTreeTop ( PVConstLink pvLink)

Add a GeoVolume to the toroid.

Definition at line 18 of file ToroidDetectorManager.cxx.

18 {
19 m_treeTops.push_back(pvLink);
20 }
std::vector< PVConstLink > m_treeTops

◆ getNumTreeTops()

unsigned int MuonGMR4::ToroidDetectorManager::getNumTreeTops ( ) const
finaloverride

Number of tree tops.

Definition at line 11 of file ToroidDetectorManager.cxx.

11 {
12 return m_treeTops.size();
13 }

◆ getTreeTop()

PVConstLink MuonGMR4::ToroidDetectorManager::getTreeTop ( unsigned int i) const
finaloverride

Access to the i-th tree top.

Definition at line 14 of file ToroidDetectorManager.cxx.

14 {
15 assert(i < m_treeTops.size());
16 return m_treeTops.at(i);
17 }

Member Data Documentation

◆ m_treeTops

std::vector<PVConstLink> MuonGMR4::ToroidDetectorManager::m_treeTops {}
private

Definition at line 25 of file ToroidDetectorManager.h.

25{};

The documentation for this class was generated from the following files: