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

#include <MioctGeometry.h>

Collaboration diagram for MioctGeometry:

Public Member Functions

 MioctGeometry ()
 
virtual ~MioctGeometry ()=default
 
unsigned int mioctId () const
 
unsigned int slot () const
 
const std::vector< MioctSectorGeometry > & sectors ()
 
const std::vector< MioctTopoCellGeometry > & topoCells ()
 
void setMioctId (unsigned int id)
 
void setSlot (int m)
 
void addSector (const MioctSectorGeometry &sector)
 
void addTopoCell (const MioctTopoCellGeometry &topocell)
 
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_mioctid {}
 
unsigned int m_slot {}
 
std::vector< MioctSectorGeometrym_Sectors
 
std::vector< MioctTopoCellGeometrym_TopoCells
 

Detailed Description

Definition at line 14 of file MioctGeometry.h.

Constructor & Destructor Documentation

◆ MioctGeometry()

MioctGeometry::MioctGeometry ( )

Definition at line 11 of file MioctGeometry.cxx.

11  :
12  m_mioctid(0),
13  m_slot(0),
14  m_Sectors()
15 {}

◆ ~MioctGeometry()

virtual MioctGeometry::~MioctGeometry ( )
virtualdefault

Member Function Documentation

◆ addSector()

void MioctGeometry::addSector ( const MioctSectorGeometry sector)
inline

Definition at line 28 of file MioctGeometry.h.

28 {m_Sectors.push_back(sector);};

◆ addTopoCell()

void MioctGeometry::addTopoCell ( const MioctTopoCellGeometry topocell)
inline

Definition at line 29 of file MioctGeometry.h.

29 {m_TopoCells.push_back(topocell); };

◆ mioctId()

unsigned int MioctGeometry::mioctId ( ) const
inline

Definition at line 20 of file MioctGeometry.h.

20 {return m_mioctid; };

◆ print()

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

Definition at line 18 of file MioctGeometry.cxx.

18  {
19  cout << indent << "MioctGeometry: " << endl;
20  cout << indent << "\tid: " << m_mioctid << endl;
21  cout << indent << "\tslot: " << m_slot << endl;
22  for(std::vector<MioctSectorGeometry>::const_iterator isec = m_Sectors.begin(); isec < m_Sectors.end(); ++isec)
23  isec->print(indent+indent);
24  for(std::vector<MioctSectorGeometry>::const_iterator isec = m_Sectors.begin(); isec < m_Sectors.end(); ++isec)
25  isec->print(indent+indent);
26 
27 }

◆ sectors()

const std::vector<MioctSectorGeometry>& MioctGeometry::sectors ( )
inline

Definition at line 22 of file MioctGeometry.h.

22 {return m_Sectors; };

◆ setMioctId()

void MioctGeometry::setMioctId ( unsigned int  id)
inline

Definition at line 26 of file MioctGeometry.h.

26 {m_mioctid = id; };

◆ setSlot()

void MioctGeometry::setSlot ( int  m)
inline

Definition at line 27 of file MioctGeometry.h.

27 { m_slot = m; };

◆ slot()

unsigned int MioctGeometry::slot ( ) const
inline

Definition at line 21 of file MioctGeometry.h.

21 {return m_slot; };

◆ topoCells()

const std::vector<MioctTopoCellGeometry>& MioctGeometry::topoCells ( )
inline

Definition at line 23 of file MioctGeometry.h.

23 {return m_TopoCells; };

◆ writeXML()

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

Definition at line 30 of file MioctGeometry.cxx.

30  {
31  mioctIndent(xmlfile, indentLevel, indentWidth) << "<MIOCT "
32  << "id=\"" << m_mioctid
33  << "\" slot=\"" << m_slot
34  << "\">" << endl;
35  std::string xtmp = "<!-- contains sectors ";
36  for(std::vector<MioctSectorGeometry>::const_iterator isec = m_Sectors.begin(); isec < m_Sectors.end(); ++isec)
37  {
38  xtmp.append(isec->name());
39  if (isec+1 != m_Sectors.end())
40  xtmp.append(", ");
41  }
42 
43  mioctIndent(xmlfile, indentLevel+1, indentWidth) <<xtmp << " -->"<<endl;
44  for(std::vector<MioctSectorGeometry>::const_iterator isec = m_Sectors.begin(); isec < m_Sectors.end(); ++isec)
45  isec->writeXML(xmlfile, indentLevel+1, indentWidth);
46 
47  mioctIndent(xmlfile, indentLevel+1, indentWidth) << "<Decode>\n";
48  for(std::vector<MioctTopoCellGeometry>::const_iterator itopo = m_TopoCells.begin(); itopo < m_TopoCells.end(); ++itopo)
49  itopo->writeXML(xmlfile, indentLevel+2, indentWidth);
50  mioctIndent(xmlfile, indentLevel+1, indentWidth) << "</Decode>\n";
51 
52  mioctIndent(xmlfile, indentLevel, indentWidth) << "</MIOCT>" << endl;
53 
54 }

Member Data Documentation

◆ m_mioctid

unsigned int MioctGeometry::m_mioctid {}
private

Definition at line 35 of file MioctGeometry.h.

◆ m_Sectors

std::vector<MioctSectorGeometry> MioctGeometry::m_Sectors
private

Definition at line 37 of file MioctGeometry.h.

◆ m_slot

unsigned int MioctGeometry::m_slot {}
private

Definition at line 36 of file MioctGeometry.h.

◆ m_TopoCells

std::vector<MioctTopoCellGeometry> MioctGeometry::m_TopoCells
private

Definition at line 38 of file MioctGeometry.h.


The documentation for this class was generated from the following files:
MioctGeometry::m_mioctid
unsigned int m_mioctid
Definition: MioctGeometry.h:35
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
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
MioctGeometry::m_Sectors
std::vector< MioctSectorGeometry > m_Sectors
Definition: MioctGeometry.h:37
MioctGeometry::m_TopoCells
std::vector< MioctTopoCellGeometry > m_TopoCells
Definition: MioctGeometry.h:38
MioctGeometry::m_slot
unsigned int m_slot
Definition: MioctGeometry.h:36