ATLAS Offline Software
TrackMeasurement_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
6 
7 
8 namespace xAOD {
11 
13  std::vector<double>,
14  meas,
15  setMeas)
16 
18  std::vector<double>,
20  setCovMatrix)
21 
24  static const SG::ConstAccessor<const xAOD::UncalibratedMeasurement *> acc("uncalibratedMeasurement");
25  return acc.isAvailable(*this) ? acc(*this) : nullptr;
26  }
27 
28  void
30  static const SG::Decorator<const xAOD::UncalibratedMeasurement *> decor("uncalibratedMeasurement");
31  decor(*this) = an_uncalibrated_measurement;
32  }
33 
36  projector,
37  setProjector)
38 
40  static const ConstAccessor<std::uint64_t> acc("projector");
41  return &(acc(*this));
42  }
44  static const Accessor<std::uint64_t> acc("projector");
45  return &(acc(*this));
46  }
47 
49  s_measAcc(*this).resize(sz);
50  s_covMatrixAcc(*this).resize(sz * sz);
51  }
52 
53  size_t TrackMeasurement_v1::size() const {
54  return s_measAcc(*this).size();
55  }
56 }
xAOD::TrackMeasurement_v1
Track Measurements for Acts MultiTrajectory.
Definition: TrackMeasurement_v1.h:20
xAOD::TrackMeasurement_v1::s_measAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_measAcc
Definition: TrackMeasurement_v1.h:114
xAOD::TrackMeasurement_v1::projectorPtr
const std::uint64_t * projectorPtr() const
xAOD::TrackMeasurement_v1::s_covMatrixAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_covMatrixAcc
Definition: TrackMeasurement_v1.h:115
xAOD::TrackMeasurement_v1::size
size_t size() const
retrieve the size of the internal vectors for the data storage
Definition: TrackMeasurement_v1.cxx:53
fitman.sz
sz
Definition: fitman.py:527
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
xAOD::TrackMeasurement_v1::resize
void resize(size_t sz=6)
expands sizes of internal vectors for the data storage ( by default this is 6 for Measurements and 6x...
Definition: TrackMeasurement_v1.cxx:48
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
xAOD::UncalibratedMeasurement_v1
Definition: UncalibratedMeasurement_v1.h:13
SG::Decorator
Helper class to provide type-safe access to aux data.
Definition: Decorator.h:59
xAOD::covMatrix
covMatrix
Definition: TrackMeasurement_v1.cxx:19
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
xAOD::TrackMeasurement_v1::uncalibratedMeasurement
const xAOD::UncalibratedMeasurement * uncalibratedMeasurement() const
access the uncalibrated measurement
Definition: TrackMeasurement_v1.cxx:23
TrackMeasurement_v1.h
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27
xAOD::TrackMeasurement_v1::setUncalibratedMeasurement
void setUncalibratedMeasurement(const xAOD::UncalibratedMeasurement *uncalibrated_measurement)
set uncalibrated measurement
Definition: TrackMeasurement_v1.cxx:29