ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MioctSectorGeometry Class Reference

#include <MioctSectorGeometry.h>

Collaboration diagram for MioctSectorGeometry:

Public Member Functions

 MioctSectorGeometry ()
 
virtual ~MioctSectorGeometry ()=default
 
unsigned int connector () const
 
const std::string & name () const
 
const std::vector< MioctROIGeometry > & ROIs () const
 
void addROI (const MioctROIGeometry &roi)
 
void setName (const std::string &name)
 
void setConnector (unsigned int id)
 
virtual void print (const std::string &indent="", unsigned int detail=1) const
 
virtual void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
 

Private Attributes

unsigned int m_connector {}
 
std::string m_name
 
std::vector< MioctROIGeometrym_ROIs
 

Detailed Description

Definition at line 20 of file MioctSectorGeometry.h.

Constructor & Destructor Documentation

◆ MioctSectorGeometry()

MioctSectorGeometry::MioctSectorGeometry ( )

Definition at line 11 of file MioctSectorGeometry.cxx.

11  :
12  m_connector(0),
13  m_name(""),
14  m_ROIs()
15 {}

◆ ~MioctSectorGeometry()

virtual MioctSectorGeometry::~MioctSectorGeometry ( )
virtualdefault

Member Function Documentation

◆ addROI()

void MioctSectorGeometry::addROI ( const MioctROIGeometry roi)
inline

Definition at line 32 of file MioctSectorGeometry.h.

32 {m_ROIs.push_back(roi);};

◆ connector()

unsigned int MioctSectorGeometry::connector ( ) const
inline

Definition at line 26 of file MioctSectorGeometry.h.

26 {return m_connector; };

◆ name()

const std::string& MioctSectorGeometry::name ( ) const
inline

Definition at line 27 of file MioctSectorGeometry.h.

27 {return m_name; };

◆ print()

void MioctSectorGeometry::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
virtual

Definition at line 18 of file MioctSectorGeometry.cxx.

18  {
19  cout << indent << "MioctSectorGeometry: " << endl;
20  cout << indent << "\tconnector: " << m_connector << endl;
21  cout << indent << "\tname: " << m_name << endl;
22  for(std::vector<MioctROIGeometry>::const_iterator iROI = m_ROIs.begin(); iROI < m_ROIs.end(); ++iROI)
23  iROI->print(indent+indent);
24 
25 }

◆ ROIs()

const std::vector<MioctROIGeometry>& MioctSectorGeometry::ROIs ( ) const
inline

Definition at line 28 of file MioctSectorGeometry.h.

28 {return m_ROIs; };

◆ setConnector()

void MioctSectorGeometry::setConnector ( unsigned int  id)
inline

Definition at line 34 of file MioctSectorGeometry.h.

34 { m_connector = id; };

◆ setName()

void MioctSectorGeometry::setName ( const std::string &  name)
inline

Definition at line 33 of file MioctSectorGeometry.h.

33 { m_name = name; };

◆ writeXML()

void MioctSectorGeometry::writeXML ( std::ostream &  xmlfile,
int  indentLevel = 0,
int  indentWidth = 2 
) const
virtual

Definition at line 28 of file MioctSectorGeometry.cxx.

28  {
29  mioctIndent(xmlfile, indentLevel, indentWidth) << "<Sector "
30  << "connector=\"" << m_connector
31  << "\" name=\"" << m_name << "\">" << endl;
32  mioctIndent(xmlfile, indentLevel+1, indentWidth) << "<!-- contains "<< m_ROIs.size() << " ROIs -->\n";
33  mioctIndent(xmlfile, indentLevel+1, indentWidth) << "<!-- mapping from ROI to coding scheme -->\n";
34  for(std::vector<MioctROIGeometry>::const_iterator iROI = m_ROIs.begin(); iROI < m_ROIs.end(); ++iROI)
35  iROI->writeXML(xmlfile, indentLevel+1, indentWidth);
36  mioctIndent(xmlfile, indentLevel, indentWidth) << "</Sector>" << endl;
37 
38 }

Member Data Documentation

◆ m_connector

unsigned int MioctSectorGeometry::m_connector {}
private

Definition at line 40 of file MioctSectorGeometry.h.

◆ m_name

std::string MioctSectorGeometry::m_name
private

Definition at line 41 of file MioctSectorGeometry.h.

◆ m_ROIs

std::vector<MioctROIGeometry> MioctSectorGeometry::m_ROIs
private

Definition at line 42 of file MioctSectorGeometry.h.


The documentation for this class was generated from the following files:
MioctSectorGeometry::m_connector
unsigned int m_connector
Definition: MioctSectorGeometry.h:40
MioctSectorGeometry::m_name
std::string m_name
Definition: MioctSectorGeometry.h:41
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
MioctSectorGeometry::m_ROIs
std::vector< MioctROIGeometry > m_ROIs
Definition: MioctSectorGeometry.h:42
mioctIndent
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
Definition: MioctROIGeometry.cxx:12
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
MioctSectorGeometry::name
const std::string & name() const
Definition: MioctSectorGeometry.h:27