ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsToolInterfaces
ActsToolInterfaces
IOnBoundStateCalibratorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef ACTSTOOLINTERFACES_IONBOUNDSTATECALIBRATORTOOL_H
5
#define ACTSTOOLINTERFACES_IONBOUNDSTATECALIBRATORTOOL_H
6
7
#include <GaudiKernel/IAlgTool.h>
8
9
#include "Acts/Geometry/GeometryContext.hpp"
10
#include "Acts/Utilities/CalibrationContext.hpp"
11
#include "Acts/Utilities/Delegate.hpp"
12
#include "Acts/EventData/BoundTrackParameters.hpp"
13
14
#include "
xAODInDetMeasurement/PixelClusterContainer.h
"
15
#include "
xAODInDetMeasurement/StripClusterContainer.h
"
16
#include "
xAODInDetMeasurement/HGTDClusterContainer.h
"
17
18
namespace
ActsTrk
{
19
20
class
ClusterCalibratorBase
{
21
public
:
22
virtual
~ClusterCalibratorBase
() {}
23
};
24
28
template
<
typename
cluster_t, std::
size_t
DIM>
29
class
OnBoundStateCalibratorBase
:
public
ClusterCalibratorBase
{
30
public
:
31
using
ClusterType
= cluster_t;
32
static
constexpr
std::size_t
ClusterDIM
= DIM;
33
using
Pos
=
xAOD::MeasVector<DIM>
;
34
using
Cov
=
xAOD::MeasMatrix<DIM>
;
35
using
Calibrator
= Acts::Delegate<
36
std::tuple<Pos, Cov, unsigned int>(
const
Acts::GeometryContext&,
37
const
Acts::CalibrationContext&,
38
const
Acts::Surface&,
39
const
cluster_t &,
40
const
Acts::BoundTrackParameters &)>;
41
43
virtual
void
connectCalibrator
(
Calibrator
&calibrator)
const
=0;
44
};
45
47
template
<
typename
cluster_t, std::
size_t
DIM>
48
class
IOnBoundStateCalibratorTool
:
virtual
public
IAlgTool {
49
public
:
51
virtual
std::unique_ptr<OnBoundStateCalibratorBase<cluster_t, DIM>>
create
(
const
EventContext &ctx)
const
= 0;
52
55
virtual
bool
calibrateAfterMeasurementSelection
()
const
=0;
56
};
57
58
namespace
traits
{
60
template
<
typename
T, std::
size_t
DIM>
61
struct
Calibrator
{
62
using
ToolInterface
=
IOnBoundStateCalibratorTool<T,DIM>
;
63
// @TODO remove:
64
// using Calibrator = OnBoundStateCalibratorBase<T,DIM>;
65
};
66
}
67
68
}
// namespace ActsTrk
69
70
#endif
PixelClusterContainer.h
HGTDClusterContainer.h
StripClusterContainer.h
ActsTrk::ClusterCalibratorBase
Definition
IOnBoundStateCalibratorTool.h:20
ActsTrk::ClusterCalibratorBase::~ClusterCalibratorBase
virtual ~ClusterCalibratorBase()
Definition
IOnBoundStateCalibratorTool.h:22
ActsTrk::IOnBoundStateCalibratorTool
interface of a tool to create a calibrator for a certain cluster type.
Definition
IOnBoundStateCalibratorTool.h:48
ActsTrk::IOnBoundStateCalibratorTool::create
virtual std::unique_ptr< OnBoundStateCalibratorBase< cluster_t, DIM > > create(const EventContext &ctx) const =0
Create a calibrator object for the given event.
ActsTrk::IOnBoundStateCalibratorTool::calibrateAfterMeasurementSelection
virtual bool calibrateAfterMeasurementSelection() const =0
ActsTrk::OnBoundStateCalibratorBase
Base class of a InDet calibrator object.
Definition
IOnBoundStateCalibratorTool.h:29
ActsTrk::OnBoundStateCalibratorBase< xAOD::HGTDCluster, 3 >::ClusterDIM
static constexpr std::size_t ClusterDIM
Definition
IOnBoundStateCalibratorTool.h:32
ActsTrk::OnBoundStateCalibratorBase< xAOD::HGTDCluster, 3 >::Calibrator
Acts::Delegate< std::tuple< Pos, Cov, unsigned int >(const Acts::GeometryContext &, const Acts::CalibrationContext &, const Acts::Surface &, const xAOD::HGTDCluster &, const Acts::BoundTrackParameters &)> Calibrator
Definition
IOnBoundStateCalibratorTool.h:35
ActsTrk::OnBoundStateCalibratorBase::connectCalibrator
virtual void connectCalibrator(Calibrator &calibrator) const =0
Connect this calibrator to the provided delegate.
ActsTrk::OnBoundStateCalibratorBase< xAOD::HGTDCluster, 3 >::ClusterType
xAOD::HGTDCluster ClusterType
Definition
IOnBoundStateCalibratorTool.h:31
ActsTrk::OnBoundStateCalibratorBase< xAOD::HGTDCluster, 3 >::Cov
xAOD::MeasMatrix< DIM > Cov
Definition
IOnBoundStateCalibratorTool.h:34
ActsTrk::OnBoundStateCalibratorBase< xAOD::HGTDCluster, 3 >::Pos
xAOD::MeasVector< DIM > Pos
Definition
IOnBoundStateCalibratorTool.h:33
ActsTrk::traits
Definition
IHGTDOnBoundStateCalibratorTool.h:17
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
xAOD::MeasMatrix
Eigen::Matrix< float, N, N > MeasMatrix
Definition
MeasurementDefs.h:60
xAOD::MeasVector
Eigen::Matrix< float, N, 1 > MeasVector
Abrivation of the Matrix & Covariance definitions.
Definition
MeasurementDefs.h:58
ActsTrk::traits::Calibrator
Helper struct to get the correct types for a certain cluster.
Definition
IOnBoundStateCalibratorTool.h:61
ActsTrk::traits::Calibrator::ToolInterface
IOnBoundStateCalibratorTool< T, DIM > ToolInterface
Definition
IOnBoundStateCalibratorTool.h:62
Generated on
for ATLAS Offline Software by
1.17.0