ATLAS Offline Software
MMCluster_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 #include "GaudiKernel/ServiceHandle.h"
12 #include "StoreGate/StoreGateSvc.h"
13 
14 namespace {
15  static const std::string preFixStr{"Mm_"};
16 }
17 
18 
19 
20 namespace xAOD {
23 }
26 }
29 IMPLEMENT_SETTER_GETTER(MMCluster_v1, float, driftDist, setDriftDist)
31 IMPLEMENT_SETTER_GETTER(MMCluster_v1, float, chiSqProb, setChiSqProb)
33 IMPLEMENT_SETTER_GETTER(MMCluster_v1, uint16_t, channelNumber, setChannelNumber)
36 
37 IMPLEMENT_VECTOR_SETTER_GETTER(MMCluster_v1, uint16_t, stripNumbers, setStripNumbers)
38 IMPLEMENT_VECTOR_SETTER_GETTER(MMCluster_v1, int16_t, stripTimes, setStripTimes)
39 IMPLEMENT_VECTOR_SETTER_GETTER(MMCluster_v1, int, stripCharges, setStripCharges)
40 IMPLEMENT_VECTOR_SETTER_GETTER(MMCluster_v1, float, stripDriftDist, setStripDriftDist)
41 IMPLEMENT_VECTOR_SETTER_GETTER(MMCluster_v1, MMCluster_v1::DriftCov_t, stripDriftErrors, setStripDriftErrors)
42 
43 IMPLEMENT_READOUTELEMENT(MMCluster_v1, m_readoutEle, MmReadoutElement)
44 
45 void MMCluster_v1::setStripDriftErrors(const std::vector<AmgVector(2)>& stripDriftErrors) {
46  std::vector<DriftCov_t> covariance{};
47  std::transform(stripDriftErrors.begin(), stripDriftErrors.end(),
48  std::back_inserter(covariance),
49  [](const AmgVector(2) & cov) {
50  DriftCov_t toRet{};
51  toRet [0] = cov[0];
52  toRet [1] = cov[1];
53  return toRet;
54  });
55  setStripDriftErrors(covariance);
56 }
57 
58 } // 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
MuonGMR4::MmReadoutElement::createHash
static IdentifierHash createHash(const int gasGap, const int strip)
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::MMCluster_v1
Definition: MMCluster_v1.h:16
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::MMCluster_v1::gasGap
uint8_t gasGap() const
Returns the gas gap number to which the clsuter.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
ParamDefs.h
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
IMPLEMENT_READOUTELEMENT
#define IMPLEMENT_READOUTELEMENT(CLASS_NAME, CACHED_VALUE, READOUT_ELEMENT_TYPE)
Macro to handle the readoutElement.
Definition: AccessorMacros.h:55
xAOD::AmgVector
AmgVector(N) toEigen(const ConstVectorMap< N > &xAODvec)
Definition: MeasurementDefs.h:96
xAOD::MMCluster_v1::layerHash
IdentifierHash layerHash() const
Returns the hash of the associated layer (Needed for surface retrieval)
Definition: MMCluster_v1.cxx:24
AccessorMacros.h
xAOD::MMCluster_v1::channelNumber
uint16_t channelNumber() const
returns the number of the central strip
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
vector
Definition: MultiHisto.h:13
angle
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Definition: TRTDetectorFactory_Full.cxx:73
xAOD::charge
charge
Definition: TrigElectron_v1.cxx:85
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
MuonDetectorManager.h
xAOD::MMCluster_v1::DriftCov_t
PosAccessor< 2 >::element_type DriftCov_t
returns the list of drift distances
Definition: MMCluster_v1.h:97
xAOD::MMCluster_v1::measurementHash
IdentifierHash measurementHash() const
Returns the hash of the measurement channel.
Definition: MMCluster_v1.cxx:21
Muon::MMPrepData::Author
Author
Definition: MMPrepData.h:156
xAOD::IMPLEMENT_VECTOR_SETTER_GETTER
IMPLEMENT_VECTOR_SETTER_GETTER(sTgcStripCluster_v1, uint16_t, stripNumbers, setStripNumbers)
Muon::MMPrepData::Quality
Quality
Definition: MMPrepData.h:164
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
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
Definition: IdentifierHash.h:38
MMCluster_v1.h
StoreGateSvc.h