ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationParam.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8#include <iomanip>
9#include <sstream>
10#include <stdexcept>
11
12
13using namespace std;
14using namespace TrigConf;
15
16
18 const int isobit,
19 int offset,
20 int slope, int mincut,
21 int upperlimit,
22 int etamin, int etamax,
23 int priority ) :
25 m_isDefined(true),
34{}
35
36
37
38void
39IsolationParam::print(const std::string& indent, unsigned int /*detail*/) const
40{
41 cout << indent << " IsolationParam:" << endl
42 << indent << " thrtype : " << m_thrtype << endl
43 << indent << " isobit : " << m_isobit << endl
44 << indent << " offset : " << m_offset << endl
45 << indent << " slope : " << m_slope << endl
46 << indent << " mincut : " << m_mincut << endl
47 << indent << " upperlimit : " << m_upperlimit << endl
48 << indent << " etamin : " << m_etamin << endl
49 << indent << " etamax : " << m_etamax << endl
50 << indent << " priority : " << m_priority << endl;
51}
52
53void
54IsolationParam::writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const
55{
56 if(isDefined())
57 indent(xmlfile, indentLevel, indentWidth)
58 << "<Parametrization"
59 << " isobit=\"" << m_isobit << "\""
60 << " offset=\"" << m_offset << "\""
61 << " slope=\"" << m_slope << "\""
62 << " mincut=\"" << m_mincut << "\""
63 << " upperlimit=\"" << m_upperlimit << "\""
64 << " etamin=\"" << m_etamin << "\""
65 << " etamax=\"" << m_etamax << "\""
66 << " priority=\"" << m_priority << "\""
67 << "/>" << endl;
68}
virtual void writeXML(std::ostream &xmlfile, int indentLevel, int indentWidth) const
const std::string & thrtype() const
virtual void print(const std::string &indent="", unsigned int detail=1) const override
std::ostream & indent(std::ostream &o, int lvl, int size) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
STL namespace.