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 15 of file MioctGeometry.h.

Constructor & Destructor Documentation

◆ MioctGeometry()

MioctGeometry::MioctGeometry ( )

Definition at line 13 of file MioctGeometry.cxx.

13  :
14  m_mioctid(0),
15  m_slot(0),
16  m_Sectors()
17 {}

◆ ~MioctGeometry()

virtual MioctGeometry::~MioctGeometry ( )
virtualdefault

Member Function Documentation

◆ addSector()

void MioctGeometry::addSector ( const MioctSectorGeometry sector)
inline

Definition at line 29 of file MioctGeometry.h.

29 {m_Sectors.push_back(sector);};

◆ addTopoCell()

void MioctGeometry::addTopoCell ( const MioctTopoCellGeometry topocell)
inline

Definition at line 30 of file MioctGeometry.h.

30 {m_TopoCells.push_back(topocell); };

◆ mioctId()

unsigned int MioctGeometry::mioctId ( ) const
inline

Definition at line 21 of file MioctGeometry.h.

21 {return m_mioctid; };

◆ print()

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

Definition at line 20 of file MioctGeometry.cxx.

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

◆ sectors()

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

Definition at line 23 of file MioctGeometry.h.

23 {return m_Sectors; };

◆ setMioctId()

void MioctGeometry::setMioctId ( unsigned int  id)
inline

Definition at line 27 of file MioctGeometry.h.

27 {m_mioctid = id; };

◆ setSlot()

void MioctGeometry::setSlot ( int  m)
inline

Definition at line 28 of file MioctGeometry.h.

28 { m_slot = m; };

◆ slot()

unsigned int MioctGeometry::slot ( ) const
inline

Definition at line 22 of file MioctGeometry.h.

22 {return m_slot; };

◆ topoCells()

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

Definition at line 24 of file MioctGeometry.h.

24 {return m_TopoCells; };

◆ writeXML()

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

Definition at line 32 of file MioctGeometry.cxx.

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

Member Data Documentation

◆ m_mioctid

unsigned int MioctGeometry::m_mioctid
private

Definition at line 36 of file MioctGeometry.h.

◆ m_Sectors

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

Definition at line 38 of file MioctGeometry.h.

◆ m_slot

unsigned int MioctGeometry::m_slot
private

Definition at line 37 of file MioctGeometry.h.

◆ m_TopoCells

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

Definition at line 39 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:36
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:18
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:194
MioctGeometry::m_Sectors
std::vector< MioctSectorGeometry > m_Sectors
Definition: MioctGeometry.h:38
MioctGeometry::m_TopoCells
std::vector< MioctTopoCellGeometry > m_TopoCells
Definition: MioctGeometry.h:39
MioctGeometry::m_slot
unsigned int m_slot
Definition: MioctGeometry.h:37