ATLAS Offline Software
ClusterThresholdValue.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_ClusterThresholdValue
6 #define TrigConf_ClusterThresholdValue
7 
9 #include <cstdint>
10 
11 namespace TrigConf {
12 
14  public:
16  virtual ~ClusterThresholdValue() override = default;
17 
18  virtual TriggerThresholdValue* createCopy() const override;
19 
20  // getters
21  float emIsolation() const { return m_EmIsolation; } // deprecated
22  float hadIsolation() const { return m_HadIsolation; } // deprecated
23  float hadVeto() const { return m_HadVeto; } // deprecated
24 
25  int emIsolationCount() const;
26  int hadIsolationCount() const;
27  int hadVetoCount() const;
28 
29  // run 2 isolation
30  bool useIsolationMask() const { return m_useIsolationMask; }
31  uint16_t emIsolationMask() const { return m_IsolationMask; } // deprecated
32  uint16_t hadIsolationMask() const { return m_HadIsolationMask; } // deprecated
34 
35  virtual int thresholdValueCount() const override;
36 
37  // setters
38  void setEmIsolation(float v) { m_EmIsolation = v; } // deprecated
39  void setHadIsolation(float v) { m_HadIsolation = v; } // deprecated
40  void setHadVeto(float v) { m_HadVeto = v; } // deprecated
41 
42  // run 2 isolation
43  void setUseIsolationMask(bool use=true) { m_useIsolationMask = use; }
47 
48  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
49  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const override;
50 
51  private:
54  float m_HadVeto;
55 
64 
66  };
67 
68 }
69 
70 #endif
TrigConf::TriggerThresholdValue
Definition: TriggerThresholdValue.h:22
TrigConf::ClusterThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const override
Definition: ClusterThresholdValue.cxx:58
TrigConf::ClusterThresholdValue::m_HadVeto
float m_HadVeto
Definition: ClusterThresholdValue.h:54
TrigConf::ClusterThresholdValue::emIsolationMask
uint16_t emIsolationMask() const
Definition: ClusterThresholdValue.h:31
TrigConf::ClusterThresholdValue::setUseIsolationMask
void setUseIsolationMask(bool use=true)
Definition: ClusterThresholdValue.h:43
TrigConf::ClusterThresholdValue::m_HadIsolationMask
uint16_t m_HadIsolationMask
Definition: ClusterThresholdValue.h:63
TrigConf::ClusterThresholdValue::setHadVeto
void setHadVeto(float v)
Definition: ClusterThresholdValue.h:40
TrigConf::ClusterThresholdValue::setEmIsolationMask
void setEmIsolationMask(uint16_t mask)
Definition: ClusterThresholdValue.h:44
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::ClusterThresholdValue::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: ClusterThresholdValue.cxx:70
TrigConf::ClusterThresholdValue
Definition: ClusterThresholdValue.h:13
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
TrigConf::ClusterThresholdValue::hadIsolationMask
uint16_t hadIsolationMask() const
Definition: ClusterThresholdValue.h:32
TrigConf::ClusterThresholdValue::isolationMask
uint16_t isolationMask() const
Definition: ClusterThresholdValue.h:33
TrigConf::ClusterThresholdValue::~ClusterThresholdValue
virtual ~ClusterThresholdValue() override=default
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::ClusterThresholdValue::ClusterThresholdValue
ClusterThresholdValue()
Definition: ClusterThresholdValue.cxx:12
TrigConf::ClusterThresholdValue::createCopy
virtual TriggerThresholdValue * createCopy() const override
Definition: ClusterThresholdValue.cxx:23
TrigConf::ClusterThresholdValue::emIsolationCount
int emIsolationCount() const
Definition: ClusterThresholdValue.cxx:28
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TrigConf::ClusterThresholdValue::setHadIsolation
void setHadIsolation(float v)
Definition: ClusterThresholdValue.h:39
TrigConf::ClusterThresholdValue::hadIsolation
float hadIsolation() const
Definition: ClusterThresholdValue.h:22
TrigConf::ClusterThresholdValue::hadVeto
float hadVeto() const
Definition: ClusterThresholdValue.h:23
TrigConf::ClusterThresholdValue::useIsolationMask
bool useIsolationMask() const
Definition: ClusterThresholdValue.h:30
TrigConf::ClusterThresholdValue::m_HadIsolation
float m_HadIsolation
Definition: ClusterThresholdValue.h:53
TrigConf::ClusterThresholdValue::m_IsolationMask
uint16_t m_IsolationMask
new isolation for run 2: bit mask to select the isolation parameterizations to be applied
Definition: ClusterThresholdValue.h:62
TriggerThresholdValue.h
TrigConf::ClusterThresholdValue::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
Definition: ClusterThresholdValue.cxx:92
TrigConf::ClusterThresholdValue::m_useIsolationMask
bool m_useIsolationMask
Definition: ClusterThresholdValue.h:65
TrigConf::ClusterThresholdValue::hadIsolationCount
int hadIsolationCount() const
Definition: ClusterThresholdValue.cxx:40
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigConf::ClusterThresholdValue::setEmIsolation
void setEmIsolation(float v)
Definition: ClusterThresholdValue.h:38
TrigConf::ClusterThresholdValue::setHadIsolationMask
void setHadIsolationMask(uint16_t mask)
Definition: ClusterThresholdValue.h:45
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::ClusterThresholdValue::hadVetoCount
int hadVetoCount() const
Definition: ClusterThresholdValue.cxx:49
TrigConf::ClusterThresholdValue::setIsolationMask
void setIsolationMask(uint16_t mask)
Definition: ClusterThresholdValue.h:46
TrigConf::ClusterThresholdValue::m_EmIsolation
float m_EmIsolation
Definition: ClusterThresholdValue.h:52
TrigConf::ClusterThresholdValue::emIsolation
float emIsolation() const
Definition: ClusterThresholdValue.h:21