ATLAS Offline Software
Loading...
Searching...
No Matches
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{}
unsigned int m_mioctid
std::vector< MioctSectorGeometry > m_Sectors
unsigned int m_slot

◆ ~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); };
std::vector< MioctTopoCellGeometry > m_TopoCells

◆ 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

◆ setSlot()

void MioctGeometry::setSlot ( int m)
inline

Definition at line 27 of file MioctGeometry.h.

◆ 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}
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

Member Data Documentation

◆ m_mioctid

unsigned int MioctGeometry::m_mioctid {}
private

Definition at line 35 of file MioctGeometry.h.

35{};

◆ 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.

36{};

◆ 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: