ATLAS Offline Software
MuCTPiGeometry.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
10 #include <iostream>
11 
12 using namespace std;
13 
15  m_Octants()
16 {}
17 
18 void
19 MuCTPiGeometry::print(const std::string& indent, unsigned int /*detail*/) const {
20  cout << indent << "MuCTPiGeometry: " << endl;
21  for(std::vector<MioctGeometry>::const_iterator isec = m_Octants.begin(); isec < m_Octants.end(); ++isec)
22  isec->print(indent+indent);
23 
24 }
25 
26 void
27 MuCTPiGeometry::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
28  mioctIndent(xmlfile, indentLevel, indentWidth) << "<MuCTPiGeometry>" << endl;
29  for(std::vector<MioctGeometry>::const_iterator isec = m_Octants.begin(); isec < m_Octants.end(); ++isec)
30  isec->writeXML(xmlfile, indentLevel+1, indentWidth);
31  m_ptEncoding.writeXML(xmlfile, indentLevel+1, indentWidth);
32  mioctIndent(xmlfile, indentLevel, indentWidth) << "</MuCTPiGeometry>" << endl;
33 }
MuCTPiGeometry::m_ptEncoding
L1MuonPtEncoding m_ptEncoding
Definition: MuCTPiGeometry.h:37
MuCTPiGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=4) const
Definition: MuCTPiGeometry.cxx:27
MuCTPiGeometry::m_Octants
std::vector< MioctGeometry > m_Octants
Definition: MuCTPiGeometry.h:36
L1MuonPtEncoding::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: L1MuonPtEncoding.cxx:37
MuCTPiGeometry::MuCTPiGeometry
MuCTPiGeometry()
Definition: MuCTPiGeometry.cxx:14
MioctTopoCellGeometry.h
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
MuCTPiGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MuCTPiGeometry.cxx:19
mioctIndent
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
Definition: MioctROIGeometry.cxx:12
MioctROIGeometry.h
MioctSectorGeometry.h
MuCTPiGeometry.h