ATLAS Offline Software
Loading...
Searching...
No Matches
RpcMeasurement_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5// EDM include(s):
7// Local include(s):
11#include "GaudiKernel/ServiceHandle.h"
15
16namespace {
17 static const std::string preFixStr{"Rpc_"};
18}
19
20namespace xAOD {
21 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, float, time, setTime)
22 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, std::uint32_t, triggerInfo, setTriggerInfo)
23 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, std::uint8_t, ambiguityFlag, setAmbiguityFlag)
25 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, std::uint16_t, channelNumber, setChannelNumber)
26 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, std::uint8_t, gasGap, setGasGap)
27 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, std::uint8_t, doubletPhi, setDoubletPhi)
28 IMPLEMENT_SETTER_GETTER(RpcMeasurement_v1, float, timeCovariance, setTimeCovariance)
29 IMPLEMENT_READOUTELEMENT(RpcMeasurement_v1, m_readoutEle, RpcReadoutElement)
30
41 Amg::Vector3D lPos{Amg::Vector3D::Zero()};
42 if(numDimensions() == 1) {
43 lPos[measuresPhi()] = localPosition<1>()[0];
44 } else {
45 lPos.block<2,1>(0,0) = xAOD::toEigen(localPosition<2>());
46 }
47 return lPos;
48 }
49}
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
#define IMPLEMENT_SETTER_GETTER(DTYPE, GETTER, SETTER)
This is a "hash" representation of an Identifier.
static IdentifierHash createHash(const unsigned strip, const unsigned gasGap, const unsigned doubPhi, const bool measPhi)
Constructs an Identifier hash from the Identifier fields controlled by this readout element.
virtual std::uint8_t measuresPhi() const =0
Returns whether the phi coordinate is measured.
RpcMeasurement_v1: Class to store the common information for RpcMeasurements.
Amg::Vector3D localMeasurementPos() const override final
Returns the local position of the measurement.
IdentifierHash measurementHash() const override final
Returns the hash of the measurement channel.
IdentifierHash layerHash() const override final
Returns the hash of the associated layer (Needed for surface retrieval).
std::uint8_t gasGap() const
returns the associated gas gap
RpcMeasurement_v1()=default
Default constructor.
std::uint8_t doubletPhi() const
doubletPhi identifier field of the measurement
std::uint16_t channelNumber() const
returns the associated strip number
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
virtual unsigned int numDimensions() const =0
Returns the number of dimensions of the measurement.
double timeOverThreshold(unsigned int m_word)
Eigen::Matrix< double, 3, 1 > Vector3D
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.