ATLAS Offline Software
DeadTime.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_simple(0),
13  m_complex1Level(0),
14  m_complex1Rate(0),
15  m_complex2Level(0),
16  m_complex2Rate(0)
17 {}
18 
19 void
20 TrigConf::DeadTime::print(const std::string& indent, unsigned int detail) const {
21  if(detail>=1) {
22  cout << indent << "DeadTime "; printNameIdV("");
23  if(detail>=2) {
24  cout << indent << " simple DT: " << m_simple << endl;
25  cout << indent << " complex1 DT size: " << m_complex1Level << " rate: " << m_complex1Rate << endl;
26  cout << indent << " complex2 DT size: " << m_complex2Level << " rate: " << m_complex2Rate << endl;
27  }
28  }
29 }
30 
31 void
32 TrigConf::DeadTime::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
33  indent(xmlfile,indentLevel, indentWidth)
34  << "<Deadtime complex1_level=\"" << m_complex1Level
35  << "\" complex1_rate=\"" << m_complex1Rate
36  << "\" complex2_level=\"" << m_complex2Level
37  << "\" complex2_rate=\"" << m_complex2Rate
38  << "\" name=\"" << name()
39  << "\" simple=\"" << m_simple << "\"/>"
40  << endl;
41 }
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::DeadTime::DeadTime
DeadTime()
Definition: DeadTime.cxx:10
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DeadTime.h
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::DeadTime::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: DeadTime.cxx:20
TrigConf::DeadTime::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: DeadTime.cxx:32