ATLAS Offline Software
TriggerThresholdValue.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TrigConf_TriggerThresholdValue
8 #define TrigConf_TriggerThresholdValue
9 
11 
12 #include <string>
13 
14 namespace TrigConf {
15 
16  namespace JetWindowSize {
17  enum Size { NONE, SMALL, LARGE, UNDEF };
18  }
19 
20  class CaloInfo;
21 
23  public:
24  static const int fgCaloClusterOff;
25  static const int fgCaloJetOff;
26  static const int fgCaloEtSumOff;
27  static const int fgCaloEtMissOff;
28  static const int fgCaloJetEtOff;
29  static const int fgCaloIsolationOff;
30 
31  public:
32  static void setCaloInfo(const CaloInfo& ci);
33  static float caloGlobalScale();
34  static float caloGlobalScaleGeVToCount();
35  static float caloGlobalScaleCountToGeV();
36 
37  public:
39  virtual ~TriggerThresholdValue() override = default;
40 
41  virtual TriggerThresholdValue* createCopy() const = 0;
42 
43  // getters
44  const std::string& type() const { return m_Type; }
45  float ptcut() const { return m_Ptcut; }
46  float priority() const { return m_Priority; }
47  int ptCutCount() const { return thresholdValueCount(); }
48  virtual int thresholdValueCount() const;
49  unsigned int window() const { return m_Window; }
50  virtual JetWindowSize::Size windowSize() const { return m_WindowSize; }
51  int phimin() const { return m_PhiMin; }
52  int phimax() const { return m_PhiMax; }
53  int etamin() const { return m_EtaMin; }
54  int etamax() const { return m_EtaMax; }
55 
56  // setters
57  void setType(const std::string& type) { m_Type = type; }
58  void setPtcut(float pt) { m_Ptcut = pt; }
59  void setPriority(float prio) { m_Priority = prio; }
60  void setWindow( int value ) { m_Window = value; }
61  void setPhiMin( int value ) { m_PhiMin = value; }
62  void setPhiMax( int value ) { m_PhiMax = value; }
63  void setEtaMin( int value ) { m_EtaMin = value; }
64  void setEtaMax( int value ) { m_EtaMax = value; }
65 
66  // geometrical check
67  bool contains(float eta, float phi) const;
68 
69  // access to global Calo configuration
70  const CaloInfo & caloInfo() const;
71 
72  virtual void print(const std::string& indent="", unsigned int detail=1) const override = 0;
73  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
74 
75  protected:
76  std::string m_Type;
77  float m_Ptcut;
78  unsigned int m_Priority;
79  unsigned int m_Window;
80  JetWindowSize::Size m_WindowSize; // mutable as long as we calculate it on the fly
81  int m_PhiMin;
82  int m_PhiMax;
83  int m_EtaMin;
84  int m_EtaMax;
85  };
86 
87 }
88 
89 #endif
90 
TrigConf::TriggerThresholdValue
Definition: TriggerThresholdValue.h:22
TrigConf::TriggerThresholdValue::m_Priority
unsigned int m_Priority
Definition: TriggerThresholdValue.h:78
TrigConf::TriggerThresholdValue::setPtcut
void setPtcut(float pt)
Definition: TriggerThresholdValue.h:58
TrigConf::TriggerThresholdValue::m_EtaMax
int m_EtaMax
Definition: TriggerThresholdValue.h:84
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV
static float caloGlobalScaleCountToGeV()
Definition: TriggerThresholdValue.cxx:57
TrigConf::TriggerThresholdValue::caloGlobalScaleGeVToCount
static float caloGlobalScaleGeVToCount()
Definition: TriggerThresholdValue.cxx:48
TrigConf::JetWindowSize::Size
Size
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::setPhiMax
void setPhiMax(int value)
Definition: TriggerThresholdValue.h:62
TrigConf::TriggerThresholdValue::ptcut
float ptcut() const
Definition: TriggerThresholdValue.h:45
test_pyathena.pt
pt
Definition: test_pyathena.py:11
TrigConf::TriggerThresholdValue::fgCaloIsolationOff
static const int fgCaloIsolationOff
Definition: TriggerThresholdValue.h:29
TrigConf::TriggerThresholdValue::windowSize
virtual JetWindowSize::Size windowSize() const
Definition: TriggerThresholdValue.h:50
athena.value
value
Definition: athena.py:122
TrigConf::TriggerThresholdValue::m_Window
unsigned int m_Window
Definition: TriggerThresholdValue.h:79
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::JetWindowSize::UNDEF
@ UNDEF
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::setWindow
void setWindow(int value)
Definition: TriggerThresholdValue.h:60
TrigConf::TriggerThresholdValue::caloGlobalScale
static float caloGlobalScale()
Definition: TriggerThresholdValue.cxx:41
TrigConf::TriggerThresholdValue::fgCaloEtMissOff
static const int fgCaloEtMissOff
Definition: TriggerThresholdValue.h:27
TrigConf::TriggerThresholdValue::m_WindowSize
JetWindowSize::Size m_WindowSize
Definition: TriggerThresholdValue.h:80
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::TriggerThresholdValue::m_EtaMin
int m_EtaMin
Definition: TriggerThresholdValue.h:83
TrigConf::TriggerThresholdValue::m_Type
std::string m_Type
Definition: TriggerThresholdValue.h:76
TrigConf::JetWindowSize::NONE
@ NONE
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::phimax
int phimax() const
Definition: TriggerThresholdValue.h:52
TrigConf::TriggerThresholdValue::fgCaloClusterOff
static const int fgCaloClusterOff
Definition: TriggerThresholdValue.h:24
TrigConf::CaloInfo
Definition: CaloInfo.h:35
TrigConf::TriggerThresholdValue::etamax
int etamax() const
Definition: TriggerThresholdValue.h:54
TrigConf::TriggerThresholdValue::createCopy
virtual TriggerThresholdValue * createCopy() const =0
TrigConf::TriggerThresholdValue::fgCaloJetOff
static const int fgCaloJetOff
Definition: TriggerThresholdValue.h:25
TrigConf::JetWindowSize::LARGE
@ LARGE
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::fgCaloEtSumOff
static const int fgCaloEtSumOff
Definition: TriggerThresholdValue.h:26
TrigConf::TriggerThresholdValue::m_PhiMin
int m_PhiMin
Definition: TriggerThresholdValue.h:81
TrigConf::TriggerThresholdValue::type
const std::string & type() const
Definition: TriggerThresholdValue.h:44
TrigConf::TriggerThresholdValue::phimin
int phimin() const
Definition: TriggerThresholdValue.h:51
TrigConf::TriggerThresholdValue::ptCutCount
int ptCutCount() const
Definition: TriggerThresholdValue.h:47
TrigConf::TriggerThresholdValue::m_PhiMax
int m_PhiMax
Definition: TriggerThresholdValue.h:82
TrigConf::JetWindowSize::SMALL
@ SMALL
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::etamin
int etamin() const
Definition: TriggerThresholdValue.h:53
TrigConf::TriggerThresholdValue::setEtaMin
void setEtaMin(int value)
Definition: TriggerThresholdValue.h:63
TrigConf::TriggerThresholdValue::setCaloInfo
static void setCaloInfo(const CaloInfo &ci)
Definition: TriggerThresholdValue.cxx:29
TrigConf::TriggerThresholdValue::setPhiMin
void setPhiMin(int value)
Definition: TriggerThresholdValue.h:61
TrigConf::TriggerThresholdValue::contains
bool contains(float eta, float phi) const
Definition: TriggerThresholdValue.cxx:81
TrigConf::TriggerThresholdValue::setPriority
void setPriority(float prio)
Definition: TriggerThresholdValue.h:59
TrigConf::TriggerThresholdValue::fgCaloJetEtOff
static const int fgCaloJetEtOff
Definition: TriggerThresholdValue.h:28
TrigConf::TriggerThresholdValue::caloInfo
const CaloInfo & caloInfo() const
Definition: TriggerThresholdValue.cxx:35
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::TriggerThresholdValue::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override=0
Definition: TriggerThresholdValue.cxx:87
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::TriggerThresholdValue::priority
float priority() const
Definition: TriggerThresholdValue.h:46
TrigConf::TriggerThresholdValue::TriggerThresholdValue
TriggerThresholdValue()
Definition: TriggerThresholdValue.cxx:62
TrigConf::TriggerThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const
Definition: TriggerThresholdValue.cxx:76
TrigConf::TriggerThresholdValue::~TriggerThresholdValue
virtual ~TriggerThresholdValue() override=default
L1DataBaseclass.h
TrigConf::TriggerThresholdValue::setEtaMax
void setEtaMax(int value)
Definition: TriggerThresholdValue.h:64
TrigConf::TriggerThresholdValue::setType
void setType(const std::string &type)
Definition: TriggerThresholdValue.h:57
TrigConf::TriggerThresholdValue::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: TriggerThresholdValue.cxx:99
TrigConf::TriggerThresholdValue::m_Ptcut
float m_Ptcut
Definition: TriggerThresholdValue.h:77
TrigConf::TriggerThresholdValue::window
unsigned int window() const
Definition: TriggerThresholdValue.h:49