ATLAS Offline Software
CaloInfo.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_CaloInfo
8 #define TrigConf_CaloInfo
9 
10 #include <string>
11 #include <vector>
16 
17 namespace TrigConf {
18 
19  struct MinTOBPt {
20  MinTOBPt() {}
21  MinTOBPt( unsigned int ptmin,
22  int32_t etamin,
23  int32_t etamax,
24  unsigned int priority) :
26  {}
27 
28  unsigned int ptmin {0};
29  int32_t etamin {-49};
30  int32_t etamax {49};
31  unsigned int priority {0};
32  };
33 
34 
35  class CaloInfo : public L1DataBaseclass {
36 
37  public:
38  CaloInfo();
39  virtual ~CaloInfo() override = default;
40 
41  // getters
42  double globalScale() const { return m_GlobalScale; }
43  float globalEmScale() const { return m_GlobalEmScale; }
44  float globalJetScale() const { return m_GlobalJetScale; }
45 
46  const std::vector<int>& jetWeights() const { return m_JetWeights; }
47 
48  const std::vector<CaloSinCos>& caloSinCos() const { return m_CaloSinCos; }
49 
51  const METSigParam& metSigParam() const { return m_METSigParam; }
52 
53  const std::vector<IsolationParam>& isolationHAIsoForEMthr() const { return m_IsolationHAIsoForEMthr; }
54  const std::vector<IsolationParam>& isolationEMIsoForEMthr() const { return m_IsolationEMIsoForEMthr; }
55  const std::vector<IsolationParam>& isolationEMIsoForTAUthr() const { return m_IsolationEMIsoForTAUthr; }
56 
57  unsigned int jetWindowSizeSmall() const { return m_JetWindowSizeSmall; }
58  unsigned int jetWindowSizeLarge() const { return m_JetWindowSizeLarge; }
59 
60  const MinTOBPt & minTobEM() const { return m_tobEM; }
61  const MinTOBPt & minTobTau() const { return m_tobTau; }
62  const MinTOBPt & minTobJetSmall() const { return m_tobJetSmall; }
63  const MinTOBPt & minTobJetLarge() const { return m_tobJetLarge; }
64 
65  // setters
66  void setGlobalScale(double val) { m_GlobalScale = val; }
69  void addJetWeight(int);
70  void addCaloSinCos(const CaloSinCos&);
71 
72  void setIsolation(const std::string & isothrtype, unsigned int bit, const IsolationParam & isopar);
73 
74  void setMinTobEM(const MinTOBPt & m) { m_tobEM = m; }
75  void setMinTobTau(const MinTOBPt & m) { m_tobTau = m; }
78 
79  void setJetWindowSizeSmall(unsigned int window) { m_JetWindowSizeSmall = window; }
80  void setJetWindowSizeLarge(unsigned int window) { m_JetWindowSizeLarge = window; }
81 
82 
83  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
84  void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
85 
86  void clear();
87 
88  protected:
89  float m_GlobalScale {1};
90  float m_GlobalEmScale {1};
91  float m_GlobalJetScale {1};
92  std::vector<int> m_JetWeights;
93  std::vector<CaloSinCos> m_CaloSinCos;
95 
96  std::vector<IsolationParam> m_IsolationHAIsoForEMthr;
97  std::vector<IsolationParam> m_IsolationEMIsoForEMthr;
98  std::vector<IsolationParam> m_IsolationEMIsoForTAUthr;
99 
104 
105  unsigned int m_JetWindowSizeSmall {4};
106  unsigned int m_JetWindowSizeLarge {8};
107 
108  };
109 
110 }
111 
112 #endif
113 
TrigConf::CaloInfo::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: CaloInfo.cxx:98
TrigConf::CaloInfo::m_JetWindowSizeLarge
unsigned int m_JetWindowSizeLarge
Definition: CaloInfo.h:106
TrigConf::CaloSinCos
Definition: CaloSinCos.h:13
TrigConf::CaloInfo::addCaloSinCos
void addCaloSinCos(const CaloSinCos &)
Definition: CaloInfo.cxx:35
TrigConf::CaloInfo::m_GlobalJetScale
float m_GlobalJetScale
Definition: CaloInfo.h:91
TrigConf::CaloInfo::m_IsolationHAIsoForEMthr
std::vector< IsolationParam > m_IsolationHAIsoForEMthr
Definition: CaloInfo.h:96
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigConf::METSigParam
Definition: METSigParam.h:12
TrigConf::CaloInfo::jetWindowSizeSmall
unsigned int jetWindowSizeSmall() const
Definition: CaloInfo.h:57
TrigConf::CaloInfo::minTobJetLarge
const MinTOBPt & minTobJetLarge() const
Definition: CaloInfo.h:63
TrigConf::CaloInfo::m_GlobalScale
float m_GlobalScale
Definition: CaloInfo.h:89
TrigConf::MinTOBPt::ptmin
unsigned int ptmin
Definition: CaloInfo.h:28
TrigConf::CaloInfo::~CaloInfo
virtual ~CaloInfo() override=default
TrigConf::CaloInfo::minTobJetSmall
const MinTOBPt & minTobJetSmall() const
Definition: CaloInfo.h:62
TrigConf::CaloInfo::m_tobTau
MinTOBPt m_tobTau
Definition: CaloInfo.h:101
TrigConf::CaloInfo::clear
void clear()
Definition: CaloInfo.cxx:40
TrigConf::CaloInfo::m_GlobalEmScale
float m_GlobalEmScale
Definition: CaloInfo.h:90
TrigConf::CaloInfo::m_tobJetLarge
MinTOBPt m_tobJetLarge
Definition: CaloInfo.h:103
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::CaloInfo::metSigParam
METSigParam & metSigParam()
Definition: CaloInfo.h:50
TrigConf::CaloInfo::isolationEMIsoForEMthr
const std::vector< IsolationParam > & isolationEMIsoForEMthr() const
Definition: CaloInfo.h:54
TrigConf::CaloInfo::m_JetWindowSizeSmall
unsigned int m_JetWindowSizeSmall
Definition: CaloInfo.h:105
TrigConf::CaloInfo::globalScale
double globalScale() const
Definition: CaloInfo.h:42
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
CaloSinCos.h
TrigConf::CaloInfo::m_IsolationEMIsoForTAUthr
std::vector< IsolationParam > m_IsolationEMIsoForTAUthr
Definition: CaloInfo.h:98
TrigConf::CaloInfo::m_IsolationEMIsoForEMthr
std::vector< IsolationParam > m_IsolationEMIsoForEMthr
Definition: CaloInfo.h:97
TrigConf::CaloInfo::setMinTobEM
void setMinTobEM(const MinTOBPt &m)
Definition: CaloInfo.h:74
IsolationParam.h
TrigConf::CaloInfo::setGlobalJetScale
void setGlobalJetScale(float val)
Definition: CaloInfo.h:68
TrigConf::CaloInfo
Definition: CaloInfo.h:35
TrigConf::IsolationParam
Definition: IsolationParam.h:16
TrigConf::CaloInfo::caloSinCos
const std::vector< CaloSinCos > & caloSinCos() const
Definition: CaloInfo.h:48
TrigConf::CaloInfo::setJetWindowSizeSmall
void setJetWindowSizeSmall(unsigned int window)
Definition: CaloInfo.h:79
TrigConf::CaloInfo::m_CaloSinCos
std::vector< CaloSinCos > m_CaloSinCos
Definition: CaloInfo.h:93
TrigConf::CaloInfo::metSigParam
const METSigParam & metSigParam() const
Definition: CaloInfo.h:51
TrigConf::MinTOBPt::etamin
int32_t etamin
Definition: CaloInfo.h:29
TrigConf::CaloInfo::globalJetScale
float globalJetScale() const
Definition: CaloInfo.h:44
TrigConf::CaloInfo::jetWindowSizeLarge
unsigned int jetWindowSizeLarge() const
Definition: CaloInfo.h:58
TrigConf::CaloInfo::isolationEMIsoForTAUthr
const std::vector< IsolationParam > & isolationEMIsoForTAUthr() const
Definition: CaloInfo.h:55
TrigConf::CaloInfo::setJetWindowSizeLarge
void setJetWindowSizeLarge(unsigned int window)
Definition: CaloInfo.h:80
TrigConf::CaloInfo::setGlobalEmScale
void setGlobalEmScale(float val)
Definition: CaloInfo.h:67
TrigConf::CaloInfo::setMinTobJetSmall
void setMinTobJetSmall(const MinTOBPt &m)
Definition: CaloInfo.h:76
TrigConf::CaloInfo::m_tobEM
MinTOBPt m_tobEM
Definition: CaloInfo.h:100
TrigConf::MinTOBPt::MinTOBPt
MinTOBPt(unsigned int ptmin, int32_t etamin, int32_t etamax, unsigned int priority)
Definition: CaloInfo.h:21
TrigConf::CaloInfo::m_JetWeights
std::vector< int > m_JetWeights
Definition: CaloInfo.h:92
TrigConf::CaloInfo::isolationHAIsoForEMthr
const std::vector< IsolationParam > & isolationHAIsoForEMthr() const
Definition: CaloInfo.h:53
TrigConf::CaloInfo::setIsolation
void setIsolation(const std::string &isothrtype, unsigned int bit, const IsolationParam &isopar)
Definition: CaloInfo.cxx:57
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
TrigConf::MinTOBPt::MinTOBPt
MinTOBPt()
Definition: CaloInfo.h:20
TrigConf::MinTOBPt::etamax
int32_t etamax
Definition: CaloInfo.h:30
TrigConf::CaloInfo::m_tobJetSmall
MinTOBPt m_tobJetSmall
Definition: CaloInfo.h:102
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::CaloInfo::addJetWeight
void addJetWeight(int)
Definition: CaloInfo.cxx:29
TrigConf::CaloInfo::setMinTobTau
void setMinTobTau(const MinTOBPt &m)
Definition: CaloInfo.h:75
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
METSigParam.h
L1DataBaseclass.h
TrigConf::CaloInfo::setMinTobJetLarge
void setMinTobJetLarge(const MinTOBPt &m)
Definition: CaloInfo.h:77
TrigConf::CaloInfo::jetWeights
const std::vector< int > & jetWeights() const
Definition: CaloInfo.h:46
TrigConf::CaloInfo::globalEmScale
float globalEmScale() const
Definition: CaloInfo.h:43
TrigConf::CaloInfo::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: CaloInfo.cxx:75
TrigConf::CaloInfo::m_METSigParam
METSigParam m_METSigParam
Definition: CaloInfo.h:94
TrigConf::CaloInfo::minTobTau
const MinTOBPt & minTobTau() const
Definition: CaloInfo.h:61
TrigConf::CaloInfo::CaloInfo
CaloInfo()
Definition: CaloInfo.cxx:11
TrigConf::MinTOBPt::priority
unsigned int priority
Definition: CaloInfo.h:31
TrigConf::MinTOBPt
Definition: CaloInfo.h:19
TrigConf::CaloInfo::setGlobalScale
void setGlobalScale(double val)
Definition: CaloInfo.h:66
TrigConf::CaloInfo::minTobEM
const MinTOBPt & minTobEM() const
Definition: CaloInfo.h:60