ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace xAOD {
18
20 // in the xAOD format.
21
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;
41
43 uint8_t fpga() const;
46
54 int32_t id() const;
55
57 const std::vector<uint16_t>& et_count() const;
59 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
83
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
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
AuxElement()
Default constructor.
Class describing input data of a LVL1 eFEX.
void setEta(float)
getter for the global eta value (float)
void setFpga(uint8_t)
getter for the fpga number [0-3] inclusive
uint32_t em_status() const
get em status bit
static const int c_missingCountCode
uint32_t had_status() const
setter for the above
void setPhi(float)
getter for the global phi value (float)
uint32_t eFEXtowerID() const
setter for the above
void setEt_count(std::vector< uint16_t > &&)
setter for the above
const std::vector< uint16_t > & et_count() const
get Energy Counts
float phi() const
setter for the above
int32_t id() const
setter for the above
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...
void setEt_count(const std::vector< uint16_t > &)
getter for the 11 energy counts
uint8_t module() const
setter for the above
void setHad_status(uint32_t)
getter for hadronic status bit
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...
uint8_t fpga() const
setter for the above
bool disconnectedCount(size_t idx) const
setter for the above
void setModule(uint8_t)
getter for the module number [0-23] inclusive
void setEm_status(uint32_t)
getter for the electromagnetic status bit
float eta() const
The pseudorapidity ( )
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()