![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
10 #include "GeoModelHelpers/throwExcept.h"
12 m_idHelperSvc{idHelperSvc} {
13 if (m_idHelperSvc->hasMM()) {
14 const MmIdHelper& idHelper{m_idHelperSvc->mmIdHelper()};
15 m_data_mmg.resize((idHelper.detectorElement_hash_max()+1)*idHelper.gasGapMax());
17 if (m_idHelperSvc->hasSTGC()) {
18 const sTgcIdHelper& idHelper{m_idHelperSvc->stgcIdHelper()};
19 m_data_stg.resize((idHelper.detectorElement_hash_max() +1)*(idHelper.gasGapMax()*3 ));
28 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax()) + (idHelper.gasGap(chan_id) -1);
31 return static_cast<unsigned int>(
hash)*(idHelper.gasGapMax() * 3 ) +
32 (idHelper.gasGap(chan_id) -1 + idHelper.gasGapMax() * idHelper.channelType(chan_id));
44 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
45 channelIdx = idHelper.channel(
id) -1;
48 if(
data.at(
idx).empty())
data.at(
idx).resize(idHelper.channelMax(
id), 0.f);
49 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
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.