ATLAS Offline Software
Loading...
Searching...
No Matches
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
8namespace 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
35 std::uint64_t,
36 projector,
37 setProjector)
38
39 const std::uint64_t* TrackMeasurement_v1::projectorPtr() const {
40 static const ConstAccessor<std::uint64_t> acc("projector");
41 return &(acc(*this));
42 }
43 std::uint64_t* TrackMeasurement_v1::projectorPtr() {
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
54 return s_measAcc(*this).size();
55 }
56}
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
static Double_t sz
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:569
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
Helper class to provide constant type-safe access to aux data.
Helper class to provide type-safe access to aux data.
Definition Decorator.h:59
Track Measurements for Acts MultiTrajectory.
void setUncalibratedMeasurement(const xAOD::UncalibratedMeasurement *uncalibrated_measurement)
set uncalibrated measurement
size_t size() const
retrieve the size of the internal vectors for the data storage
const xAOD::UncalibratedMeasurement * uncalibratedMeasurement() const
access the uncalibrated measurement
static const SG::AuxElement::Accessor< std::vector< double > > s_measAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_covMatrixAcc
void resize(size_t sz=6)
expands sizes of internal vectors for the data storage ( by default this is 6 for Measurements and 6x...
const std::uint64_t * projectorPtr() const
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.