ATLAS Offline Software
PrescaledClock.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 
8 using namespace std;
9 
12  m_clock1(0),
13  m_clock2(0)
14 {}
15 
16 void TrigConf::PrescaledClock::print(const std::string& indent, unsigned int detail) const {
17  if(detail>=1) {
18  cout << indent << "PrescaledClock: "; printNameIdV();
19  if(detail>=2) {
20  cout << indent << " clock1: " << m_clock1 << endl;
21  cout << indent << " clock2: " << m_clock2 << endl;
22  }
23  }
24 }
25 
26 void TrigConf::PrescaledClock::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
27  indent(xmlfile,indentLevel, indentWidth)
28  << "<PrescaledClock clock1=\""<<m_clock1<<"\" clock2=\""<<m_clock2<<"\" name=\""<< name() <<"\"/>"
29  << endl;
30 }
TrigConf::PrescaledClock::PrescaledClock
PrescaledClock()
Definition: PrescaledClock.cxx:10
detail
Definition: extract_histogram_tag.cxx:14
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
PrescaledClock.h
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::PrescaledClock::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: PrescaledClock.cxx:26
TrigConf::PrescaledClock::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: PrescaledClock.cxx:16