Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
eFexTower_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef XAODTRIGL1CALO_VERSIONS_EFEXTOWER_V1_H
5 #define XAODTRIGL1CALO_VERSIONS_EFEXTOWER_V1_H
6 
7 // EDM include(s):
8 #include "AthLinks/ElementLink.h"
10 
11 // System include(s):
12 #include <stdint.h>
13 
14 // ROOT include(s):
15 #include "Math/Vector4D.h"
16 
17 namespace xAOD {
18 
20  // in the xAOD format.
21 
22  class eFexTower_v1 : public SG::AuxElement{
23  public:
24  static const int c_missingCountCode = 1025; // code used to in bs decoder to indicate a missing supercell count
25 
28 
30  float eta() const;
31  void setEta(float);
32 
34  float phi() const;
35  void setPhi(float);
36 
38  uint8_t module() const;
39  void setModule(uint8_t);
41 
43  uint8_t fpga() const;
44  void setFpga(uint8_t);
46 
54  int32_t id() const;
55 
57  const std::vector<uint16_t>& et_count() const;
58  void setEt_count(const std::vector<uint16_t>&);
60  void setEt_count(std::vector<uint16_t>&&);
61 
66  bool disconnectedCount(size_t idx) const;
67 
70  size_t cellIdx(uint32_t layer, uint32_t cell=0) const;
71 
76  int cellEt(uint32_t layer, uint32_t cell=0) const;
77 
78 
80  uint32_t em_status() const;
81  void setEm_status(uint32_t);
83 
85  uint32_t had_status() const;
86  void setHad_status(uint32_t);
88 
90  uint32_t eFEXtowerID() const;
91 
92 
93  void initialize(const float Eta,const float Phi);
94  void initialize(const float Eta,const float Phi,
95  const std::vector<uint16_t>& Et_count,
96  const uint8_t Module,
97  const uint8_t Fpga,
98  const uint32_t Em_status,
99  const uint32_t Had_status);
100 
101  private:
102 
103  }; // class eFexTower_v1
104 } // namespace xAOD
105 
106 // Declare the inheritance of the type:
107 #include "xAODCore/BaseInfo.h"
109 #endif // XAODTRIGL1CALO_VERSIONS_EFEXTOWER_V1_H
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::eFexTower_v1::eFEXtowerID
uint32_t eFEXtowerID() const
setter for the above
Definition: eFexTower_v1.cxx:23
xAOD::eFexTower_v1
Class describing input data of a LVL1 eFEX.
Definition: eFexTower_v1.h:22
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::eFexTower_v1::cellEt
int cellEt(uint32_t layer, uint32_t cell=0) const
supercell Et in MeV layer: 0-4 (ps,l1,l2,l3,had) cell: 0-3 for l1,l2, 0 otherwise will return 0 if th...
Definition: eFexTower_v1.cxx:120
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::eFexTower_v1::module
uint8_t module() const
setter for the above
BaseInfo.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::eFexTower_v1::setEt_count
void setEt_count(std::vector< uint16_t > &&)
setter for the above
xAOD::eFexTower_v1::phi
float phi() const
setter for the above
xAOD::eFexTower_v1::c_missingCountCode
static const int c_missingCountCode
Definition: eFexTower_v1.h:24
xAOD::eFexTower_v1::eta
float eta() const
The pseudorapidity ( )
xAOD::eFexTower_v1::setModule
void setModule(uint8_t)
getter for the module number [0-23] inclusive
xAOD::eFexTower_v1::em_status
uint32_t em_status() const
get em status bit
SG::AuxElement::AuxElement
AuxElement()
Default constructor.
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
xAOD::eFexTower_v1::disconnectedCount
bool disconnectedCount(size_t idx) const
setter for the above
Definition: eFexTower_v1.cxx:77
xAOD::eFexTower_v1::et_count
const std::vector< uint16_t > & et_count() const
get Energy Counts
xAOD::eFexTower_v1::initialize
void initialize(const float Eta, const float Phi)
getter for the etower simulation ID
Definition: eFexTower_v1.cxx:47
xAOD::eFexTower_v1::fpga
uint8_t fpga() const
setter for the above
xAOD::eFexTower_v1::setPhi
void setPhi(float)
getter for the global phi value (float)
xAOD::eFexTower_v1::setEm_status
void setEm_status(uint32_t)
getter for the electromagnetic status bit
xAOD::eFexTower_v1::cellIdx
size_t cellIdx(uint32_t layer, uint32_t cell=0) const
Obtain the index in the count vector of a given supercell returns et_count().size() if cell is invali...
Definition: eFexTower_v1.cxx:111
xAOD::eFexTower_v1::had_status
uint32_t had_status() const
setter for the above
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
xAOD::eFexTower_v1::setFpga
void setFpga(uint8_t)
getter for the fpga number [0-3] inclusive
SG_BASE
SG_BASE(xAOD::eFexTower_v1, SG::AuxElement)
xAOD::eFexTower_v1::setHad_status
void setHad_status(uint32_t)
getter for hadronic status bit
xAOD::eFexTower_v1::id
int32_t id() const
setter for the above
Definition: eFexTower_v1.cxx:69
Eta
@ Eta
Definition: RPCdef.h:8
xAOD::eFexTower_v1::setEt_count
void setEt_count(const std::vector< uint16_t > &)
getter for the 11 energy counts
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::eFexTower_v1::setEta
void setEta(float)
getter for the global eta value (float)