 |
ATLAS Offline Software
|
Go to the documentation of this file.
23 return StatusCode::SUCCESS;
34 CHECK(h_gblLArCells.isValid());
35 const auto & gblLArCells = *h_gblLArCells;
38 static constexpr
int nEta{98};
39 static constexpr
int nPhi{64};
41 std::array<std::array<float, nPhi>,
nEta> towerEnergies{};
43 for (
const auto&
cell : gblLArCells) {
46 int eta_index =
static_cast<int>(std::floor(
cell->eta() * 10)) + 49;
47 int phi_index =
static_cast<int>(std::floor(
cell->phi() * 10)) + 32;
50 if (eta_index < 0 || eta_index >=
nEta || phi_index < 0 || phi_index >=
nPhi)
continue;
57 auto towers = std::make_unique<GenericTobContainer>();
64 int energyBits = std::clamp(
static_cast<int>(towerEnergies[
etaBin][
phiBin]), 0, (1 << 13) - 1);
68 towers->emplace_back(std::make_shared<GenericTob>(bit_string));
76 return StatusCode::SUCCESS;
constexpr int nPhi
Default bin number of phi for vertex map.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
AlgTool to obtain a selection of eFex RoIs read in from the event store.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setPhiMap phiBin
constexpr int nEta
Default bin number of eta for vertex map.