9#include "Identifier/Identifier.h"
12#include "GeoModelKernel/throwExcept.h"
32 return static_cast<std::size_t
>(hash)*(idHelper.
gasGapMax()) + (idHelper.
gasGap(chan_id) -1);
35 return static_cast<std::size_t
>(hash)*(idHelper.
gasGapMax() * 3 ) +
45 std::size_t channelIdx{0};
48 if(
data.at(idx).empty()) {
51 channelIdx = idHelper.
channel(
id) -1;
54 if(
data.at(idx).empty()) {
57 channelIdx = idHelper.
channel(
id) -1;
59 data.at(idx).at(channelIdx) = value;
66 std::size_t channelId =
m_idHelperSvc->mmIdHelper().channel(
id) -1;
72 std::size_t channelId =
m_idHelperSvc->stgcIdHelper().channel(
id) - 1;
char data[hepevt_bytes_allocation_ATLAS]
This is a "hash" representation of an Identifier.
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
size_type detectorElement_hash_max() const
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
NswT0Data(const Muon::IMuonIdHelperSvc *idHelperSvc)
std::size_t identToModuleIdx(const Identifier &channelId) const
The calibration data is internally stored as two jagged vectors, one for MM the other for sTGC.
void setData(const Identifier &channelId, const float channelT0)
Set the t0 calibration constant for a given nsw channel.
std::vector< std::vector< std::optional< float > > > ChannelArray
std::optional< float > getT0(const Identifier &channelId) const
Retrieve the t0 calibration constant for a given NSW channel.
int channelType(const Identifier &id) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
#define THROW_EXCEPTION(MESSAGE)