Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MeasurementCalibration.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MeasurementCalibration.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
19 
20 #include <cassert>
21 
22 namespace Acts {
23 class VectorMultiTrajectory;
24 } // namespace Acts
25 
26 namespace ActsExamples {
27 
30  public:
31  virtual void calibrate(
32  const MeasurementContainer& measurements,
34  const Acts::CalibrationContext& cctx, const Acts::SourceLink& sourceLink,
35  Acts::VectorMultiTrajectory::TrackStateProxy& trackState) const = 0;
36 
37  virtual ~MeasurementCalibrator() = default;
38  virtual bool needsClusters() const { return false; }
39 };
40 
41 // Calibrator to convert an index source link to a measurement as-is
43  public:
49  void calibrate(
50  const MeasurementContainer& measurements,
52  const Acts::CalibrationContext& cctx, const Acts::SourceLink& sourceLink,
53  Acts::VectorMultiTrajectory::TrackStateProxy& trackState) const override;
54 };
55 
56 // Adapter class that wraps a MeasurementCalibrator to conform to the
57 // core ACTS calibration interface
59  public:
61  const MeasurementContainer& measurements,
62  const ClusterContainer* clusters = nullptr);
63 
65 
67  const Acts::CalibrationContext& cctx,
68  const Acts::SourceLink& sourceLink,
70 
71  private:
75 };
76 
77 } // namespace ActsExamples