ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTracking
Root
TrackState_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/TrackState_v1.h
"
6
#include "
xAODTracking/AuxAccessorMacro.h
"
7
8
9
namespace
xAOD
{
10
11
DEFINE_API
(
TrackState_v1
,
float
,
chi2
, setChi2)
12
DEFINE_API
(
TrackState_v1
,
double
, pathLength, setPathLength)
13
DEFINE_API
(
TrackState_v1
,
uint64_t
, typeFlags, setTypeFlags)
14
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, previous, setPrevious)
15
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, next, setNext)
16
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, predicted, setPredicted)
17
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, filtered, setFiltered)
18
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, smoothed, setSmoothed)
19
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, jacobian, setJacobian)
20
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, calibrated, setCalibrated)
21
DEFINE_API
(
TrackState_v1
,
TrackStateIndexType
, measDim, setMeasDim)
22
23
const
xAOD::UncalibratedMeasurement
*
24
TrackState_v1::uncalibratedMeasurement
()
const
{
25
static
const
SG::ConstAccessor<const xAOD::UncalibratedMeasurement *>
acc
(
"uncalibratedMeasurement"
);
26
return
acc
.isAvailable(*
this
) ?
acc
(*
this
) :
nullptr
;
27
}
28
29
void
30
TrackState_v1::setUncalibratedMeasurement
(
const
xAOD::UncalibratedMeasurement
*an_uncalibrated_measurement) {
31
static
const
SG::Decorator<const xAOD::UncalibratedMeasurement *>
decor(
"uncalibratedMeasurement"
);
32
decor(*
this
) = an_uncalibrated_measurement;
33
}
34
35
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrackState_v1
,
uint64_t
, geometryId, setGeometryId);
36
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrackState_v1
,
unsigned
int
, surfaceIndex, setSurfaceIndex);
37
38
}
39
40
41
#undef DEFINE_API
AuxAccessorMacro.h
DEFINE_API
#define DEFINE_API(__CL, __TYPE, __GETTER, __SETTER)
Definition
AuxAccessorMacro.h:21
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
TrackState_v1.h
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
xAOD::TrackState_v1
class describing TrackState - backend of navigation object of Acts::MultiTrajectory
Definition
TrackState_v1.h:19
xAOD::TrackState_v1::setUncalibratedMeasurement
void setUncalibratedMeasurement(const xAOD::UncalibratedMeasurement *)
Set EL to uncalibrated measurement.
Definition
TrackState_v1.cxx:30
xAOD::TrackState_v1::uncalibratedMeasurement
const xAOD::UncalibratedMeasurement * uncalibratedMeasurement() const
EL to uncalibrated measurement Can be invalid sometimes!
Definition
TrackState_v1.cxx:24
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition
comparitor.cxx:525
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::uint64_t
uint64_t
Definition
EventInfo_v1.cxx:123
xAOD::UncalibratedMeasurement
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.
Definition
UncalibratedMeasurementFwd.h:13
xAOD::TrackStateIndexType
uint32_t TrackStateIndexType
Definition
TrackState_v1.h:15
xAOD::acc
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
Generated on
for ATLAS Offline Software by
1.17.0