ATLAS Offline Software
Loading...
Searching...
No Matches
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
12using namespace std;
13
17
18void
19MuCTPiGeometry::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
26void
27MuCTPiGeometry::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}
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=4) const
std::vector< MioctGeometry > m_Octants
L1MuonPtEncoding m_ptEncoding
virtual void print(const std::string &indent="", unsigned int detail=1) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
STL namespace.