ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsDataPreparation
src
CorePixelSpacePointFormationTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ACTSTRK_DATAPREPARATION_COREPIXELSPACEPOINTFORMATIONTOOL_H
6
#define ACTSTRK_DATAPREPARATION_COREPIXELSPACEPOINTFORMATIONTOOL_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
ActsToolInterfaces/IPixelSpacePointFormationTool.h
"
10
#include "
ActsCalibrators/xAODUncalibMeasSurfAcc.h
"
11
#include "
ActsGeometryInterfaces/ITrackingGeometrySvc.h
"
12
13
#include "
AthenaKernel/SlotSpecificObj.h
"
14
#include "
CxxUtils/checker_macros.h
"
15
#include "GaudiKernel/EventContext.h"
16
17
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
18
#include "
xAODInDetMeasurement/SpacePointContainer.h
"
19
20
#include <limits>
21
#include <string>
22
23
namespace
ActsTrk
{
24
31
32
class
CorePixelSpacePointFormationTool
:
public
extends<AthAlgTool, ActsTrk::IPixelSpacePointFormationTool> {
33
public
:
34
using
base_class::base_class;
35
virtual
~CorePixelSpacePointFormationTool
() =
default
;
36
37
virtual
StatusCode
initialize
()
override
;
38
39
virtual
StatusCode
producePixelSpacePoint
(
const
EventContext& ctx,
40
const
Acts::GeometryContext& gctx,
41
const
xAOD::PixelCluster
& cluster,
42
xAOD::SpacePoint
&
sp
,
43
const
InDetDD::SiDetectorElement
& element)
const override
;
44
45
virtual
bool
usesGeometryContext
()
const override
{
return
true
; }
46
47
private
:
48
49
ServiceHandle<ActsTrk::ITrackingGeometrySvc>
m_trackingGeometrySvc
{
this
,
"TrackingGeometrySvc"
,
"ActsTrackingGeometrySvc"
};
50
51
ActsTrk::detail::xAODUncalibMeasSurfAcc
m_surfaceAccessor
{};
52
55
struct
SurfaceCache
{
56
Acts::RotationMatrix3
rotLocalToGlobal
{Acts::RotationMatrix3::Identity()};
57
xAOD::DetectorIDHashType
idHash
{std::numeric_limits<xAOD::DetectorIDHashType>::max()};
58
EventContext::ContextEvt_t
evt
{EventContext::INVALID_CONTEXT_EVT};
59
};
60
mutable
SG::SlotSpecificObj<SurfaceCache>
m_surfaceCache
ATLAS_THREAD_SAFE
;
61
62
Gaudi::Property<bool>
m_useSurfaceCache
{
this
,
"UseSurfaceCache"
,
true
,
63
"Reuse the surface reference frame across the clusters of a module"
};
64
66
Gaudi::Property<bool>
m_useMaxVariance
{
this
,
"UseMaxVariance"
,
false
};
67
Gaudi::Property<float>
m_maxVarianceZ
{
this
,
"MaxVarianceZ"
, 0.0014f};
68
Gaudi::Property<float>
m_maxVarianceR
{
this
,
"MaxVarianceR"
, 0.015f};
69
70
};
71
72
}
73
74
#endif
ITrackingGeometrySvc.h
AthAlgTool.h
SlotSpecificObj.h
Maintain a set of objects, one per slot.
PixelClusterContainer.h
SpacePointContainer.h
IPixelSpacePointFormationTool.h
sp
static Double_t sp
Definition
LArPhysWaveHECTool.cxx:37
checker_macros.h
Define macros for attributes used to control the static checker.
ActsTrk::CorePixelSpacePointFormationTool
Pixel space point formation using Acts::PixelSpacePointBuilder for the space point covariance.
Definition
CorePixelSpacePointFormationTool.h:32
ActsTrk::CorePixelSpacePointFormationTool::initialize
virtual StatusCode initialize() override
Definition
CorePixelSpacePointFormationTool.cxx:16
ActsTrk::CorePixelSpacePointFormationTool::m_trackingGeometrySvc
ServiceHandle< ActsTrk::ITrackingGeometrySvc > m_trackingGeometrySvc
Definition
CorePixelSpacePointFormationTool.h:49
ActsTrk::CorePixelSpacePointFormationTool::m_useSurfaceCache
Gaudi::Property< bool > m_useSurfaceCache
Definition
CorePixelSpacePointFormationTool.h:62
ActsTrk::CorePixelSpacePointFormationTool::usesGeometryContext
virtual bool usesGeometryContext() const override
Definition
CorePixelSpacePointFormationTool.h:45
ActsTrk::CorePixelSpacePointFormationTool::m_maxVarianceZ
Gaudi::Property< float > m_maxVarianceZ
Definition
CorePixelSpacePointFormationTool.h:67
ActsTrk::CorePixelSpacePointFormationTool::m_maxVarianceR
Gaudi::Property< float > m_maxVarianceR
Definition
CorePixelSpacePointFormationTool.h:68
ActsTrk::CorePixelSpacePointFormationTool::ATLAS_THREAD_SAFE
SG::SlotSpecificObj< SurfaceCache > m_surfaceCache ATLAS_THREAD_SAFE
Definition
CorePixelSpacePointFormationTool.h:60
ActsTrk::CorePixelSpacePointFormationTool::producePixelSpacePoint
virtual StatusCode producePixelSpacePoint(const EventContext &ctx, const Acts::GeometryContext &gctx, const xAOD::PixelCluster &cluster, xAOD::SpacePoint &sp, const InDetDD::SiDetectorElement &element) const override
Definition
CorePixelSpacePointFormationTool.cxx:25
ActsTrk::CorePixelSpacePointFormationTool::m_useMaxVariance
Gaudi::Property< bool > m_useMaxVariance
Cap the covariance terms, as PixelSpacePointFormationTool does.
Definition
CorePixelSpacePointFormationTool.h:66
ActsTrk::CorePixelSpacePointFormationTool::m_surfaceAccessor
ActsTrk::detail::xAODUncalibMeasSurfAcc m_surfaceAccessor
Definition
CorePixelSpacePointFormationTool.h:51
ActsTrk::CorePixelSpacePointFormationTool::~CorePixelSpacePointFormationTool
virtual ~CorePixelSpacePointFormationTool()=default
ActsTrk::detail::xAODUncalibMeasSurfAcc
Helper class to access the Acts::surface associated with an Uncalibrated xAOD measurement.
Definition
xAODUncalibMeasSurfAcc.h:22
InDetDD::SiDetectorElement
Class to hold geometrical description of a silicon detector element.
Definition
SiDetectorElement.h:109
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition
AthenaKernel/AthenaKernel/SlotSpecificObj.h:84
ServiceHandle
Definition
ClusterMakerTool.h:36
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
xAOD::SpacePoint
SpacePoint_v1 SpacePoint
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/SpacePoint.h:12
xAOD::PixelCluster
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
Definition
Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/PixelCluster.h:13
xAOD::DetectorIDHashType
unsigned int DetectorIDHashType
@ detector ID element hash
Definition
MeasurementDefs.h:48
ActsTrk::CorePixelSpacePointFormationTool::SurfaceCache
Reference frame of the last module seen, keyed on the identifier hash and stamped with the event so a...
Definition
CorePixelSpacePointFormationTool.h:55
ActsTrk::CorePixelSpacePointFormationTool::SurfaceCache::idHash
xAOD::DetectorIDHashType idHash
Definition
CorePixelSpacePointFormationTool.h:57
ActsTrk::CorePixelSpacePointFormationTool::SurfaceCache::rotLocalToGlobal
Acts::RotationMatrix3 rotLocalToGlobal
Definition
CorePixelSpacePointFormationTool.h:56
ActsTrk::CorePixelSpacePointFormationTool::SurfaceCache::evt
EventContext::ContextEvt_t evt
Definition
CorePixelSpacePointFormationTool.h:58
xAODUncalibMeasSurfAcc.h
Generated on
for ATLAS Offline Software by
1.17.0