ATLAS Offline Software
sTgcMeasurement_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef XAODMUONPREPDATA_VERSION_STGCMEASUREMENT_V1_H
5 #define XAODMUONPREPDATA_VERSION_STGCMEASUREMENT_V1_H
6 
10 
11 #include "Identifier/Identifier.h"
14 
15 namespace MuonGMR4{
16  class sTgcReadoutElement;
17 }
18 namespace xAOD {
19 
20 
22 
23  public:
25  sTgcMeasurement_v1() = default;
27  virtual ~sTgcMeasurement_v1() = default;
28 
30  xAOD::UncalibMeasType type() const override final {
32  }
35  virtual sTgcChannelTypes channelType() const = 0;
37  unsigned int numDimensions() const override final {
38  return channelType() == sTgcChannelTypes::Pad ? 2 : 1;
39  }
42  const Identifier& identify() const;
46  IdentifierHash layerHash() const;
47 
50  Author author() const;
51 
53  uint8_t gasGap() const;
56 
58  int charge() const;
60  short int time() const;
61 
66 
67 
77  void setTime(short int t);
79  void setCharge(int q);
80 
81  private:
82 #ifdef __CLING__
87 #else
90 #endif
91 };
92 
93 } // namespace xAOD
94 
95 #endif
xAOD::sTgcMeasurement_v1::setReadoutElement
void setReadoutElement(const MuonGMR4::sTgcReadoutElement *readoutEle)
set the pointer to the sTgcReadoutElement
xAOD::sTgcMeasurement_v1::layerHash
IdentifierHash layerHash() const
Returns the hash of the associated gasGap layer.
Definition: sTgcMeasurement_v1.cxx:38
xAOD::sTgcMeasurement_v1::author
Author author() const
sTgcIdHelper.h
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
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
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
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
sTgcIdHelper::sTgcChannelTypes
sTgcChannelTypes
Definition: sTgcIdHelper.h:190
xAOD::UncalibMeasType::sTgcStripType
@ sTgcStripType
CaloSwCorrections.gap
def gap(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:212
xAOD::sTgcMeasurement_v1::sTgcMeasurement_v1
sTgcMeasurement_v1()=default
Default constructor.
xAOD::sTgcMeasurement_v1::channelNumber
uint16_t channelNumber() const
Channel number of the Measurement.
sTgcPrepData.h
xAOD::sTgcMeasurement_v1::gasGap
uint8_t gasGap() const
In which gasGap is the Measurement.
GeoPrimitives.h
UncalibratedMeasurement_v1.h
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
xAOD::sTgcMeasurement_v1::channelType
virtual sTgcChannelTypes channelType() const =0
Returns the channel type of the measurement (Pad/Wire/Strip)
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:20
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::sTgcMeasurement_v1::charge
int charge() const
: Collected charge on the wire
xAOD::sTgcMeasurement_v1::setAuthor
void setAuthor(Author a)
Set the author of the producing algorithm.
xAOD::sTgcMeasurement_v1::time
short int time() const
: Calibrated time of the wire measurement
CxxUtils::CachedValue< const MuonGMR4::sTgcReadoutElement * >
xAOD::sTgcMeasurement_v1::m_identifier
CxxUtils::CachedValue< Identifier > m_identifier
Definition: sTgcMeasurement_v1.h:89
xAOD::sTgcMeasurement_v1::setChannelNumber
void setChannelNumber(uint16_t channel)
Set the channel number of the measurement.
xAOD::sTgcMeasurement_v1::~sTgcMeasurement_v1
virtual ~sTgcMeasurement_v1()=default
Virtual destructor.
IdentifierHash.h
xAOD::sTgcMeasurement_v1::readoutElement
const MuonGMR4::sTgcReadoutElement * readoutElement() const
Retrieve the associated sTgcReadoutElement.
xAOD::sTgcMeasurement_v1::numDimensions
unsigned int numDimensions() const override final
Pad measurements have 2 dimensions. Strips & Wires have only 1.
Definition: sTgcMeasurement_v1.h:37
MuonGMR4::sTgcReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/sTgcReadoutElement.h:20
a
TList * a
Definition: liststreamerinfos.cxx:10
Muon::sTgcPrepData::Author
Author
Definition: sTgcPrepData.h:100
xAOD::UncalibMeasType
UncalibMeasType
Define the type of the uncalibrated measurement.
Definition: MeasurementDefs.h:24
xAOD::sTgcMeasurement_v1::setTime
void setTime(short int t)
: Set the calibrated time of the wire measurement
extractSporadic.q
list q
Definition: extractSporadic.py:98
xAOD::sTgcMeasurement_v1::m_readoutEle
CxxUtils::CachedValue< const MuonGMR4::sTgcReadoutElement * > m_readoutEle
Definition: sTgcMeasurement_v1.h:88
xAOD::sTgcMeasurement_v1::setCharge
void setCharge(int q)
: Set the collected charge on the wire
xAOD::sTgcMeasurement_v1::type
xAOD::UncalibMeasType type() const override final
Returns the type of the Tgc strip as a simple enumeration.
Definition: sTgcMeasurement_v1.h:30
xAOD::sTgcMeasurement_v1::setGasGap
void setGasGap(uint8_t gap)
Set the associated gas gap of the measurement.
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
xAOD::sTgcMeasurement_v1
Definition: sTgcMeasurement_v1.h:21
Identifier
Definition: IdentifierFieldParser.cxx:14