ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 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  #include <iostream>
13  #ifndef TRIGGERSPACE
15  #else
16  #include "Coordinate.h"
17  #endif
18  namespace LVL1 {
19 
24  class CMXJetTob {
25  public:
26 
28  CMXJetTob();
29  CMXJetTob(int crate, int jem, int frame, int loc);
30  CMXJetTob(int crate, int jem, int frame, int loc,
31  const std::vector<int>& energyLarge,
32  const std::vector<int>& energySmall,
33  const std::vector<int>& error,
34  const std::vector<unsigned int>& presenceMap,
35  int peak);
36 
37  virtual ~CMXJetTob();
38 
40  void setPeak(int peak);
42  void addTob(const std::vector<int>& energyLarge,
43  const std::vector<int>& energySmall,
44  const std::vector<int>& error,
45  const std::vector<unsigned int>& presenceMap);
46 
48  int crate() const;
49  int jem() const;
50  int frame() const;
51  int location() const;
53  int energyLarge() const;
54  int energySmall() const;
55  int error() const;
56  unsigned int presenceMap() const; // filled for neutral format data only
58  const std::vector<int>& energyLgVec() const;
59  const std::vector<int>& energySmVec() const;
60  const std::vector<int>& errorVec() const;
61  const std::vector<unsigned int>& presenceMapVec() const;
62  int peak() const;
63 
65  private:
66  int m_crate;
67  int m_jem;
68  int m_frame;
70  int m_peak;
71  std::vector<int> m_energyLarge;
72  std::vector<int> m_energySmall;
73  std::vector<int> m_error;
74  std::vector<unsigned int> m_presenceMap;
75 
76  };
77 
79  inline int CMXJetTob::crate() const{
80  return m_crate;
81  }
82 
84  inline int CMXJetTob::jem() const{
85  return m_jem;
86  }
87 
89  inline int CMXJetTob::frame() const{
90  return m_frame;
91  }
92 
94  inline int CMXJetTob::location() const{
95  return m_location;
96  }
97 
99  inline int CMXJetTob::energyLarge() const{
100  return m_energyLarge[m_peak];
101  }
102 
104  inline int CMXJetTob::energySmall() const{
105  return m_energySmall[m_peak];
106  }
107 
109  inline int CMXJetTob::error() const{
110  return m_error[m_peak];
111  }
112 
114  inline unsigned int CMXJetTob::presenceMap() const{
115  return m_presenceMap[m_peak];
116  }
117 
119  inline const std::vector<int>& CMXJetTob::energyLgVec() const{
120  return m_energyLarge;
121  }
122 
124  inline const std::vector<int>& CMXJetTob::energySmVec() const{
125  return m_energySmall;
126  }
127 
129  inline const std::vector<int>& CMXJetTob::errorVec() const{
130  return m_error;
131  }
132 
134  inline const std::vector<unsigned int>& CMXJetTob::presenceMapVec() const{
135  return m_presenceMap;
136  }
137 
139  inline void CMXJetTob::addTob(const std::vector<int>& energyLarge,
140  const std::vector<int>& energySmall,
141  const std::vector<int>& error,
142  const std::vector<unsigned int>& presenceMap) {
145  m_error = error;
147  }
148 
150  inline void CMXJetTob::setPeak(int peak) {
151  m_peak = peak;
152  }
153 
155  inline int CMXJetTob::peak() const{
156  return m_peak;
157  }
158 
159 } // end of namespace
160 
161 #ifndef CMXJetTob_ClassDEF_H
163 #endif
164 
165 #endif
LVL1::CMXJetTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:155
LVL1::CMXJetTob::m_energyLarge
std::vector< int > m_energyLarge
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:71
LVL1::CMXJetTob::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:70
LVL1::CMXJetTob::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:66
LVL1::CMXJetTob::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:74
LVL1::CMXJetTob::m_energySmall
std::vector< int > m_energySmall
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:72
LVL1::CMXJetTob::m_frame
int m_frame
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:68
LVL1::CMXJetTob::presenceMapVec
const std::vector< unsigned int > & presenceMapVec() const
returns presence maps
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:134
LVL1::CMXJetTob::m_error
std::vector< int > m_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:73
LVL1::CMXJetTob::frame
int frame() const
returns frame number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:89
CMXJetTob_ClassDEF.h
LVL1::CMXJetTob::energySmall
int energySmall() const
returns energy small window for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:104
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:119
LVL1::CMXJetTob::energySmVec
const std::vector< int > & energySmVec() const
returns energy small window
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:124
LVL1::CMXJetTob::jem
int jem() const
returns JEM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:84
LVL1::CMXJetTob::CMXJetTob
CMXJetTob()
Constructors.
Definition: CMXJetTob.cxx:16
LVL1::CMXJetTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:79
LVL1::CMXJetTob::energyLarge
int energyLarge() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:99
Coordinate.h
Coordinate policies.
LVL1::CMXJetTob::errorVec
const std::vector< int > & errorVec() const
returns error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:129
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:150
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:139
Coordinate.h
LVL1::CMXJetTob::~CMXJetTob
virtual ~CMXJetTob()
Definition: CMXJetTob.cxx:29
LVL1::CMXJetTob
TOB data received by the merger modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:24
LVL1::CMXJetTob::error
int error() const
returns error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:109
LVL1::CMXJetTob::m_location
int m_location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:69
LVL1::CMXJetTob::location
int location() const
returns location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:94
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:67
LVL1::CMXJetTob::presenceMap
unsigned int presenceMap() const
returns presence map for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:114