 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "Identifier/Identifier.h"
12 #include "GeoModelKernel/throwExcept.h"
16 m_idHelperSvc{idHelperSvc} {
17 if (m_idHelperSvc->hasMM()) {
18 const MmIdHelper& idHelper{m_idHelperSvc->mmIdHelper()};
19 m_data_mmg.resize((idHelper.detectorElement_hash_max()+1)*idHelper.gasGapMax());
21 if (m_idHelperSvc->hasSTGC()) {
22 const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
23 m_data_stg.resize((idHelper.detectorElement_hash_max() +1)*(idHelper.gasGapMax()*3 ));
32 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax()) + (idHelper.gasGap(chan_id) -1);
35 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax() * 3 ) +
36 (idHelper.gasGap(chan_id) -1 + idHelper.gasGapMax() * idHelper.channelType(chan_id));
48 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
49 channelIdx = idHelper.channel(
id) -1;
52 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
53 channelIdx = idHelper.channel(
id) -1;
bool getT0(const Identifier &channelId, float &channelT0) const
char data[hepevt_bytes_allocation_ATLAS]
virtual const sTgcIdHelper & stgcIdHelper() const =0
access to TgcIdHelper
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
int channel(const Identifier &id) const override
std::vector< std::vector< float > > ChannelArray
unsigned int identToModuleIdx(const Identifier &chan_id) const
virtual bool isMM(const Identifier &id) const =0
returns whether this is a MM Identifier or not
NswT0Data(const Muon::IMuonIdHelperSvc *idHelperSvc)
#define THROW_EXCEPTION(MESSAGE)
int channel(const Identifier &id) const override
void setData(const Identifier &channelId, const float channelT0)
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual bool issTgc(const Identifier &id) const =0
returns whether this is a sTGC Identifier or not
virtual IdentifierHash detElementHash(const Identifier &id) const =0
Returns the detector element hash associated to an Identifier.