Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 //***************************************************************************
5 
6  #ifndef CMXJetTob_H
7  #define CMXJetTob_H
8 
9  #include "AthenaKernel/CLASS_DEF.h"
10 
11 
12  #ifndef TRIGGERSPACE
14  #else
15  #include "Coordinate.h"
16  #endif
17  namespace LVL1 {
18 
23  class CMXJetTob {
24  public:
25 
27  CMXJetTob() = default;
28  CMXJetTob(int crate, int jem, int frame, int loc);
29  CMXJetTob(int crate, int jem, int frame, int loc,
30  const std::vector<int>& energyLarge,
31  const std::vector<int>& energySmall,
32  const std::vector<int>& error,
33  const std::vector<unsigned int>& presenceMap,
34  int peak);
35 
36 
37 
39  void setPeak(int peak);
41  void addTob(const std::vector<int>& energyLarge,
42  const std::vector<int>& energySmall,
43  const std::vector<int>& error,
44  const std::vector<unsigned int>& presenceMap);
45 
47  int crate() const;
48  int jem() const;
49  int frame() const;
50  int location() const;
52  int energyLarge() const;
53  int energySmall() const;
54  int error() const;
55  unsigned int presenceMap() const; // filled for neutral format data only
57  const std::vector<int>& energyLgVec() const;
58  const std::vector<int>& energySmVec() const;
59  const std::vector<int>& errorVec() const;
60  const std::vector<unsigned int>& presenceMapVec() const;
61  int peak() const;
62 
64  private:
65  int m_crate{};
66  int m_jem{};
67  int m_frame{};
68  int m_location{};
69  int m_peak{};
70  std::vector<int> m_energyLarge{0};
71  std::vector<int> m_energySmall{0};
72  std::vector<int> m_error{0};
73  std::vector<unsigned int> m_presenceMap{0};
74 
75  };
76 
78  inline int CMXJetTob::crate() const{
79  return m_crate;
80  }
81 
83  inline int CMXJetTob::jem() const{
84  return m_jem;
85  }
86 
88  inline int CMXJetTob::frame() const{
89  return m_frame;
90  }
91 
93  inline int CMXJetTob::location() const{
94  return m_location;
95  }
96 
98  inline int CMXJetTob::energyLarge() const{
99  return m_energyLarge[m_peak];
100  }
101 
103  inline int CMXJetTob::energySmall() const{
104  return m_energySmall[m_peak];
105  }
106 
108  inline int CMXJetTob::error() const{
109  return m_error[m_peak];
110  }
111 
113  inline unsigned int CMXJetTob::presenceMap() const{
114  return m_presenceMap[m_peak];
115  }
116 
118  inline const std::vector<int>& CMXJetTob::energyLgVec() const{
119  return m_energyLarge;
120  }
121 
123  inline const std::vector<int>& CMXJetTob::energySmVec() const{
124  return m_energySmall;
125  }
126 
128  inline const std::vector<int>& CMXJetTob::errorVec() const{
129  return m_error;
130  }
131 
133  inline const std::vector<unsigned int>& CMXJetTob::presenceMapVec() const{
134  return m_presenceMap;
135  }
136 
138  inline void CMXJetTob::addTob(const std::vector<int>& energyLarge,
139  const std::vector<int>& energySmall,
140  const std::vector<int>& error,
141  const std::vector<unsigned int>& presenceMap) {
144  m_error = error;
146  }
147 
149  inline void CMXJetTob::setPeak(int peak) {
150  m_peak = peak;
151  }
152 
154  inline int CMXJetTob::peak() const{
155  return m_peak;
156  }
157 
158 } // end of namespace
159 
160 #ifndef CMXJetTob_ClassDEF_H
162 #endif
163 
164 #endif
LVL1::CMXJetTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:154
LVL1::CMXJetTob::m_energyLarge
std::vector< int > m_energyLarge
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:70
LVL1::CMXJetTob::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:69
LVL1::CMXJetTob::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:65
LVL1::CMXJetTob::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:73
LVL1::CMXJetTob::m_energySmall
std::vector< int > m_energySmall
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:71
LVL1::CMXJetTob::CMXJetTob
CMXJetTob()=default
Constructors.
LVL1::CMXJetTob::m_frame
int m_frame
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:67
LVL1::CMXJetTob::presenceMapVec
const std::vector< unsigned int > & presenceMapVec() const
returns presence maps
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:133
LVL1::CMXJetTob::m_error
std::vector< int > m_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:72
LVL1::CMXJetTob::frame
int frame() const
returns frame number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:88
CMXJetTob_ClassDEF.h
LVL1::CMXJetTob::energySmall
int energySmall() const
returns energy small window for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:103
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMXJetTob::energyLgVec
const std::vector< int > & energyLgVec() const
For multi-slice readout.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:118
LVL1::CMXJetTob::energySmVec
const std::vector< int > & energySmVec() const
returns energy small window
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:123
LVL1::CMXJetTob::jem
int jem() const
returns JEM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:83
LVL1::CMXJetTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:78
LVL1::CMXJetTob::energyLarge
int energyLarge() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:98
Coordinate.h
Coordinate policies.
LVL1::CMXJetTob::errorVec
const std::vector< int > & errorVec() const
returns error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:128
LVL1::CMXJetTob::setPeak
void setPeak(int peak)
For multi-slice readout, need to indicate position of triggered BC.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:149
LVL1::CMXJetTob::addTob
void addTob(const std::vector< int > &energyLarge, const std::vector< int > &energySmall, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap)
Add data to existing object.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:138
Coordinate.h
LVL1::CMXJetTob
TOB data received by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:23
LVL1::CMXJetTob::error
int error() const
returns error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:108
LVL1::CMXJetTob::m_location
int m_location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:68
LVL1::CMXJetTob::location
int location() const
returns location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:93
error
Definition: IImpactPoint3dEstimator.h:70
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CMXJetTob::m_jem
int m_jem
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:66
LVL1::CMXJetTob::presenceMap
unsigned int presenceMap() const
returns presence map for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:113