ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTracking
Root
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
*/
4
#include "
xAODCore/AuxStoreAccessorMacros.h
"
5
#include "
xAODTracking/versions/TrackMeasurement_v1.h
"
6
7
8
namespace
xAOD
{
9
const
SG::AuxElement::Accessor<std::vector<double>>
TrackMeasurement_v1::s_measAcc
(
"meas"
);
10
const
SG::AuxElement::Accessor<std::vector<double>>
TrackMeasurement_v1::s_covMatrixAcc
(
"covMatrix"
);
11
12
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrackMeasurement_v1
,
13
std::vector<double>,
14
meas,
15
setMeas)
16
17
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrackMeasurement_v1
,
18
std::vector<double>,
19
covMatrix
,
20
setCovMatrix)
21
22
const
xAOD::UncalibratedMeasurement
*
23
TrackMeasurement_v1::uncalibratedMeasurement
()
const
{
24
static
const
SG::ConstAccessor<const xAOD::UncalibratedMeasurement *>
acc
(
"uncalibratedMeasurement"
);
25
return
acc
.isAvailable(*
this
) ?
acc
(*
this
) :
nullptr
;
26
}
27
28
void
29
TrackMeasurement_v1::setUncalibratedMeasurement
(
const
xAOD::UncalibratedMeasurement
*an_uncalibrated_measurement) {
30
static
const
SG::Decorator<const xAOD::UncalibratedMeasurement *>
decor(
"uncalibratedMeasurement"
);
31
decor(*
this
) = an_uncalibrated_measurement;
32
}
33
34
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrackMeasurement_v1
,
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
48
void
TrackMeasurement_v1::resize
(
size_t
sz
) {
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
}
AuxStoreAccessorMacros.h
AUXSTORE_OBJECT_SETTER_AND_GETTER
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Definition
AuxStoreAccessorMacros.h:88
sz
static Double_t sz
Definition
LArPhysWaveHECTool.cxx:37
TrackMeasurement_v1.h
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
xAOD::TrackMeasurement_v1
Track Measurements for Acts MultiTrajectory.
Definition
TrackMeasurement_v1.h:20
xAOD::TrackMeasurement_v1::setUncalibratedMeasurement
void setUncalibratedMeasurement(const xAOD::UncalibratedMeasurement *uncalibrated_measurement)
set uncalibrated measurement
Definition
TrackMeasurement_v1.cxx:29
xAOD::TrackMeasurement_v1::size
size_t size() const
retrieve the size of the internal vectors for the data storage
Definition
TrackMeasurement_v1.cxx:53
xAOD::TrackMeasurement_v1::uncalibratedMeasurement
const xAOD::UncalibratedMeasurement * uncalibratedMeasurement() const
access the uncalibrated measurement
Definition
TrackMeasurement_v1.cxx:23
xAOD::TrackMeasurement_v1::s_measAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_measAcc
Definition
TrackMeasurement_v1.h:114
xAOD::TrackMeasurement_v1::s_covMatrixAcc
static const SG::AuxElement::Accessor< std::vector< double > > s_covMatrixAcc
Definition
TrackMeasurement_v1.h:115
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::TrackMeasurement_v1::projectorPtr
const std::uint64_t * projectorPtr() const
SG::Decorator
SG::Decorator< T, ALLOC > Decorator
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
Definition
AuxElement.h:576
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::UncalibratedMeasurement
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
Definition
UncalibratedMeasurementFwd.h:13
xAOD::acc
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
xAOD::covMatrix
covMatrix
Definition
TrackMeasurement_v1.cxx:19
Generated on
for ATLAS Offline Software by
1.17.0