ATLAS Offline Software
sTgcMeasurement_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // EDM include(s):
7 // Local include(s):
10 
12 #include "GaudiKernel/ServiceHandle.h"
14 #include "StoreGate/StoreGateSvc.h"
15 
16 namespace {
17  static const std::string preFixStr{"sTgc"};
18 }
19 
20 namespace xAOD {
21 
24 IMPLEMENT_SETTER_GETTER(sTgcMeasurement_v1, uint16_t, channelNumber, setChannelNumber)
25 IMPLEMENT_SETTER_GETTER(sTgcMeasurement_v1, short int, time, setTime)
27 IMPLEMENT_READOUTELEMENT(sTgcMeasurement_v1, m_readoutEle, sTgcReadoutElement)
28 
29 IdentifierHash sTgcMeasurement_v1::measurementHash() const {
30  return MuonGMR4::sTgcReadoutElement::createHash(gasGap(), channelType(), channelNumber());
31 }
33  if (!m_identifier.isValid()){
34  m_identifier.set(readoutElement()->measurementId(measurementHash()));
35  }
36  return (*m_identifier.ptr());
37 }
40 }
41 
42 } // namespace xAOD
xAOD::IMPLEMENT_SETTER_GETTER_WITH_CAST
IMPLEMENT_SETTER_GETTER_WITH_CAST(sTgcMeasurement_v1, uint8_t, sTgcMeasurement_v1::Author, author, setAuthor)
dumpTgcDigiDeadChambers.gasGap
list gasGap
Definition: dumpTgcDigiDeadChambers.py:33
xAOD::sTgcMeasurement_v1::layerHash
IdentifierHash layerHash() const
Returns the hash of the associated gasGap layer.
Definition: sTgcMeasurement_v1.cxx:38
CxxUtils::CachedValue::ptr
const T * ptr() const
Return a pointer to the cached value.
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::sTgcMeasurement_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel w.r.t ReadoutElement.
Definition: sTgcMeasurement_v1.cxx:29
CxxUtils::CachedValue::isValid
bool isValid() const
Test to see if the value is valid.
xAOD::sTgcMeasurement_v1::identify
const Identifier & identify() const
: Returns the Athena identifier of the measurement It's constructed from the measurementHash & passed...
Definition: sTgcMeasurement_v1.cxx:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
ParamDefs.h
IMPLEMENT_READOUTELEMENT
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
Definition: AccessorMacros.h:55
xAOD::sTgcMeasurement_v1::gasGap
uint8_t gasGap() const
In which gasGap is the Measurement.
sTgcReadoutElement.h
MuonGMR4::sTgcReadoutElement::createHash
static IdentifierHash createHash(const unsigned int gasGap, const unsigned int channelType, const unsigned int channel, const unsigned int wireInGrp=0)
Create a measurement hash from the Identifier fields.
AccessorMacros.h
xAOD::sTgcMeasurement_v1::channelType
virtual sTgcChannelTypes channelType() const =0
Returns the channel type of the measurement (Pad/Wire/Strip)
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::charge
charge
Definition: TrigElectron_v1.cxx:85
MuonDetectorManager.h
xAOD::sTgcMeasurement_v1::m_identifier
CxxUtils::CachedValue< Identifier > m_identifier
Definition: sTgcMeasurement_v1.h:89
xAOD::sTgcMeasurement_v1::readoutElement
const MuonGMR4::sTgcReadoutElement * readoutElement() const
Retrieve the associated sTgcReadoutElement.
CxxUtils::CachedValue::set
void set(const T &val) const
Set the value, assuming it is currently invalid.
Muon::sTgcPrepData::Author
Author
Definition: sTgcPrepData.h:100
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
IMPLEMENT_SETTER_GETTER
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
Definition: NRPCRDO_v1.cxx:13
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
StoreGateSvc.h
xAOD::sTgcMeasurement_v1
Definition: sTgcMeasurement_v1.h:21
sTgcMeasurement_v1.h
Identifier
Definition: IdentifierFieldParser.cxx:14