ATLAS Offline Software
GTowerHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOFEXPERF_GTOWERHELPERS_H
6 #define TRIGT1CALOFEXPERF_GTOWERHELPERS_H
7 
8 #include <cmath>
9 #include <string>
10 #include <ostream>
11 
12 namespace LVL1
13 {
14  namespace gFEX
15  {
16  enum class FPGA
17  {
18  A,
19  B,
20  C,
21  N_FPGAS
22  };
24  FPGA getFPGA(float eta);
25 
27  std::string FPGAToString(FPGA fpga);
28 
30  FPGA FPGAFromString(std::string name);
31 
33  float towerArea(float eta);
34 
35  } // namespace gFEX
36 } // namespace LVL1
37 
38 std::ostream &operator<<(std::ostream &os, LVL1::gFEX::FPGA fpga);
39 #endif //> !TRIGT1CALOFEXPERF_GTOWERHELPERS_H
LVL1::gFEX::towerArea
float towerArea(float eta)
Get the GCaloTower areas from their eta bins.
Definition: GTowerHelpers.cxx:59
LVL1::gFEX::getFPGA
FPGA getFPGA(float eta)
Get the FPGA code from the tower eta.
Definition: GTowerHelpers.cxx:15
LVL1::gFEX::FPGA::C
@ C
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
operator<<
std::ostream & operator<<(std::ostream &os, LVL1::gFEX::FPGA fpga)
Definition: GTowerHelpers.cxx:74
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::gFEX::FPGA::B
@ B
FEXReprocessingRun3.gFEX
gFEX
Definition: FEXReprocessingRun3.py:288
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TrigConf::name
Definition: HLTChainList.h:35
LVL1::gFEX::FPGA::A
@ A
LVL1::gFEX::FPGAToString
std::string FPGAToString(FPGA fpga)
Get the name of an FPGA.
Definition: GTowerHelpers.cxx:29
LVL1::gFEX::FPGAFromString
FPGA FPGAFromString(std::string name)
Get the enum from the name of an FPGA. Returning N_FPGA means that the string wasn't correct.
Definition: GTowerHelpers.cxx:45
LVL1::gFEX::FPGA
FPGA
Definition: GTowerHelpers.h:17
LVL1::gFEX::FPGA::N_FPGAS
@ N_FPGAS