 |
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 auto pTowerEnergies = std::make_unique<std::array<std::array<float, nPhi>,
nEta>>();
42 auto & towerEnergies = *pTowerEnergies;
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<IOBitwise::ICommonTOBContainer>();
66 towers->emplace_back(std::make_shared<IOBitwise::CommonTOB>(std::bitset<IOBitwise::CommonTOB::s_et_width>(energyBits),
67 std::bitset<IOBitwise::CommonTOB::s_eta_width>(
etaBin),
68 std::bitset<IOBitwise::CommonTOB::s_phi_width>(
phiBin)));
76 return StatusCode::SUCCESS;
static constexpr std::size_t s_et_width
Size of the eT bitset.
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 that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
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.