ATLAS Offline Software
Loading...
Searching...
No Matches
IsolationParam.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TrigConf_IsolationParam
8#define TrigConf_IsolationParam
9
11#include <string>
12
13
14namespace TrigConf {
15
17 public:
18 IsolationParam ( const std::string& thrtype,
19 const int isobit, int offset,
20 int slope, int mincut,
21 int upperlimit,
22 int etamin, int etamax, int priority );
23
25 virtual ~IsolationParam() override = default;
26
27
28 // getters
29 bool isDefined() const { return m_isDefined; }
30
31 const std::string & thrtype() const { return m_thrtype ; }
32 int isobit() const { return m_isobit ;}
33 int offset() const { return m_offset ;}
34 int slope() const { return m_slope ;}
35 int mincut() const { return m_mincut ;}
36 int upperlimit() const { return m_upperlimit ;}
37 int etamin() const { return m_etamin ;}
38 int etamax() const { return m_etamax ;}
39 int priority() const { return m_priority ;}
40
41 // setters
42 void setThrType(const std::string & p) { m_thrtype = p; }
43 void setIsDefined(bool def = true) { m_isDefined = def;}
44 void setIsobit(int p) { m_isobit = p;}
45 void setOffset(int p) { m_offset = p;}
46 void setSlope(int p) { m_slope = p;}
47 void setMincut(int p) { m_mincut = p;}
48 void setUpperlimit(int p) { m_upperlimit = p;}
49 void setEtamin(int p) { m_etamin = p;}
50 void setEtamax(int p) { m_etamax = p;}
51 void setPriority(int p) { m_priority = p;}
52
53
54 virtual void print(const std::string& indent="", unsigned int detail=1) const override;
55
56 virtual void writeXML(std::ostream & xmlfile, int indentLevel, int indentWidth) const;
57
58 private:
59
60 std::string m_thrtype { "" };
61 bool m_isDefined { false };
62 int m_isobit { 0 };
63 int m_offset { 0 };
64 int m_slope { 0 };
65 int m_mincut { 0 };
66 int m_upperlimit { 0 };
67 int m_etamin { 0 };
68 int m_etamax { 0 };
69 int m_priority { 0 };
70
71 };
72
73}
74
75
76
77
78#endif
79
virtual void writeXML(std::ostream &xmlfile, int indentLevel, int indentWidth) const
const std::string & thrtype() const
IsolationParam(const std::string &thrtype, const int isobit, int offset, int slope, int mincut, int upperlimit, int etamin, int etamax, int priority)
void setThrType(const std::string &p)
virtual void print(const std::string &indent="", unsigned int detail=1) const override
void setIsDefined(bool def=true)
virtual ~IsolationParam() override=default
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