ATLAS Offline Software
Loading...
Searching...
No Matches
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
12namespace LVL1
13{
14 namespace gFEX
15 {
16 enum class FPGA
17 {
22 };
23
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
38std::ostream &operator<<(std::ostream &os, LVL1::gFEX::FPGA fpga);
39#endif //> !TRIGT1CALOFEXPERF_GTOWERHELPERS_H
Scalar eta() const
pseudorapidity method
std::ostream & operator<<(std::ostream &os, LVL1::gFEX::FPGA fpga)
std::string FPGAToString(FPGA fpga)
Get the name of an FPGA.
float towerArea(float eta)
Get the GCaloTower areas from their eta bins.
FPGA getFPGA(float eta)
Get the FPGA code from the tower eta.
FPGA FPGAFromString(std::string name)
Get the enum from the name of an FPGA. Returning N_FPGA means that the string wasn't correct.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...