ATLAS Offline Software
Loading...
Searching...
No Matches
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>
9using namespace std;
10
11void
12MioctTopoCellGeometry::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
26void
27MioctTopoCellGeometry::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}
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
virtual void print(const std::string &indent="", unsigned int detail=1) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
STL namespace.