ATLAS Offline Software
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 
14 namespace 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 
TrigConf::IsolationParam::setUpperlimit
void setUpperlimit(int p)
Definition: IsolationParam.h:48
TrigConf::IsolationParam::m_isobit
int m_isobit
Definition: IsolationParam.h:62
TrigConf::IsolationParam::offset
int offset() const
Definition: IsolationParam.h:33
TrigConf::IsolationParam::m_etamax
int m_etamax
Definition: IsolationParam.h:68
TrigConf::IsolationParam::m_etamin
int m_etamin
Definition: IsolationParam.h:67
TrigConf::IsolationParam::mincut
int mincut() const
Definition: IsolationParam.h:35
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::IsolationParam::~IsolationParam
virtual ~IsolationParam() override=default
TrigConf::IsolationParam::setIsobit
void setIsobit(int p)
Definition: IsolationParam.h:44
TrigConf::IsolationParam::setIsDefined
void setIsDefined(bool def=true)
Definition: IsolationParam.h:43
TrigConf::IsolationParam::m_upperlimit
int m_upperlimit
Definition: IsolationParam.h:66
TrigConf::IsolationParam::setOffset
void setOffset(int p)
Definition: IsolationParam.h:45
TrigConf::IsolationParam::priority
int priority() const
Definition: IsolationParam.h:39
TrigConf::IsolationParam::m_isDefined
bool m_isDefined
Definition: IsolationParam.h:61
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::IsolationParam::setPriority
void setPriority(int p)
Definition: IsolationParam.h:51
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
TrigConf::IsolationParam::upperlimit
int upperlimit() const
Definition: IsolationParam.h:36
TrigConf::IsolationParam::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel, int indentWidth) const
Definition: IsolationParam.cxx:54
TrigConf::IsolationParam::setMincut
void setMincut(int p)
Definition: IsolationParam.h:47
TrigConf::IsolationParam::thrtype
const std::string & thrtype() const
Definition: IsolationParam.h:31
TrigConf::IsolationParam::setSlope
void setSlope(int p)
Definition: IsolationParam.h:46
TrigConf::IsolationParam::setEtamax
void setEtamax(int p)
Definition: IsolationParam.h:50
TrigConf::IsolationParam::setEtamin
void setEtamin(int p)
Definition: IsolationParam.h:49
TrigConf::IsolationParam::etamax
int etamax() const
Definition: IsolationParam.h:38
TrigConf::IsolationParam
Definition: IsolationParam.h:16
TrigConf::IsolationParam::IsolationParam
IsolationParam()
Definition: IsolationParam.h:24
TrigConf::IsolationParam::m_priority
int m_priority
Definition: IsolationParam.h:69
TrigConf::IsolationParam::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: IsolationParam.cxx:39
TrigConf::IsolationParam::m_thrtype
std::string m_thrtype
Definition: IsolationParam.h:60
TrigConf::IsolationParam::slope
int slope() const
Definition: IsolationParam.h:34
TrigConf::IsolationParam::m_mincut
int m_mincut
Definition: IsolationParam.h:65
TrigConf::IsolationParam::isDefined
bool isDefined() const
Definition: IsolationParam.h:29
TrigConf::IsolationParam::etamin
int etamin() const
Definition: IsolationParam.h:37
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
L1DataBaseclass.h
TrigConf::IsolationParam::setThrType
void setThrType(const std::string &p)
Definition: IsolationParam.h:42
TrigConf::IsolationParam::m_slope
int m_slope
Definition: IsolationParam.h:64
TrigConf::IsolationParam::isobit
int isobit() const
Definition: IsolationParam.h:32
TrigConf::IsolationParam::m_offset
int m_offset
Definition: IsolationParam.h:63