ATLAS Offline Software
MioctTopoCellGeometry.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrigConfMuctpi/MioctROIGeometry.h" // defines mioctIndent
7 #include <iostream>
8 #include <iomanip>
9 using namespace std;
10 
11 void
12 MioctTopoCellGeometry::print(const std::string& indent, unsigned int /*detail*/) const {
13  cout << indent << "MioctTopoCellGeometry: " << endl;
14  //cout << indent << "\tlvl1 master table id: " << lvl1MasterTableId() << endl;
15  //printNameIdV(indent);
16  cout << indent << "\tetacode " << m_etacode << endl;
17  cout << indent << "\tphicode " << m_phicode << endl;
18  cout << indent << "\teta " << m_eta << endl;
19  cout << indent << "\tphi " << m_phi << endl;
20  cout << indent << "\tetamin " << m_etamin << endl;
21  cout << indent << "\tetamax " << m_etamax << endl;
22  cout << indent << "\tphimin " << m_phimin << endl;
23  cout << indent << "\tphimax " << m_phimax << endl;
24 }
25 
26 void
27 MioctTopoCellGeometry::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
28  mioctIndent(xmlfile, indentLevel, indentWidth) << "<TopoCell "
29  << "etacode=\"0x" << std::hex << m_etacode
30  << "\" phicode=\"0x" << m_phicode <<std::dec
31  << fixed << setprecision(6)
32  << "\" eta=\"" << m_eta
33  << "\" phi=\"" << m_phi
34  << "\" etamin=\"" << m_etamin
35  << "\" etamax=\"" << m_etamax
36  << "\" phimin=\"" << m_phimin
37  << "\" phimax=\"" << m_phimax
38  << "\"/>" << endl;
39 }
MioctTopoCellGeometry::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: MioctTopoCellGeometry.cxx:27
MioctTopoCellGeometry.h
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:18
MioctTopoCellGeometry::print
virtual void print(const std::string &indent="", unsigned int detail=1) const
Definition: MioctTopoCellGeometry.cxx:12
mioctIndent
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
Definition: MioctROIGeometry.cxx:12
MioctROIGeometry.h