|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
9 #include "GeoModelHelpers/throwExcept.h"
13 m_idHelperSvc{idHelperSvc} {
14 if (m_idHelperSvc->hasMM()) {
15 const MmIdHelper& idHelper{m_idHelperSvc->mmIdHelper()};
16 m_data_mmg.resize((idHelper.detectorElement_hash_max()+1)*idHelper.gasGapMax());
18 if (m_idHelperSvc->hasSTGC()) {
19 const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
20 m_data_stg.resize((idHelper.detectorElement_hash_max() +1)*(idHelper.gasGapMax()*3 ));
29 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax()) + (idHelper.gasGap(chan_id) -1);
32 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax() * 3 ) +
33 (idHelper.gasGap(chan_id) -1 + idHelper.gasGapMax() * idHelper.channelType(chan_id));
45 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
46 channelIdx = idHelper.channel(
id) -1;
49 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
50 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
#define THROW_EXCEPTION(MSG)
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)
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.