ATLAS Offline Software
Loading...
Searching...
No Matches
ThresholdMonitor.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
13
14#include <stdexcept>
15#include <iostream>
16
17using namespace std;
18
22
40
41void
42TrigConf::ThresholdMonitor::print(const std::string& indent, unsigned int detail) const {
43 if(detail==3) {
44 cout << indent << "Monitor Counter : " << name() << " (id=" << m_InternalCounter << ")" << endl;
45 }
46 if(detail>=4) {
47 cout << indent << "==================================" << endl;
48 cout << indent << "Monitor Counter : " << name() << " (id=" << m_InternalCounter << ")" << endl;
49 cout << indent << "monitors " << m_CounterType << " threshold " << m_ThresholdName << " (id=" << m_ThresholdId << ") with multiplicity " << m_Multiplicity << endl;
50 cout << indent << "Slot " << m_CtpinSlot << ", connector " << m_CtpinConnector << ", bits " << m_ThresholdStartBit << " - " << m_ThresholdEndBit << ", bunch group " << m_BunchGroupId << endl;
51 }
52
53}
54
55
56void
57TrigConf::ThresholdMonitor::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const {
58 indent(xmlfile, indentLevel, indentWidth) << "<TriggerCounter name=\"" << name() << "\" type=\"CTPIN\">" << endl;
59 indent(xmlfile, indentLevel+1, indentWidth) << "<TriggerCondition name=\"" << name() << "\" triggerthreshold=\"" << m_ThresholdName << "\" multi=\"" << m_Multiplicity << "\"/>" << endl;
60 indent(xmlfile, indentLevel, indentWidth) << "</TriggerCounter>" << endl;
61}
virtual void print(const std::string &indent="", unsigned int detail=1) const override
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
std::ostream & indent(std::ostream &o, int lvl, int size) const
void setName(const std::string &name)
void setVersion(unsigned int version)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
STL namespace.