ATLAS Offline Software
SCT_ResidualPullCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SCT_ResidualPullCalculator.h
7 // Header file for SCT_ResidualPullCalculator tool
9 // (c) ATLAS Detector software
11 // Sebastian.Fleischmann@cern.ch
13 
14 #ifndef INDET_SCT_RESIDUALPULLCALCULATOR_H
15 #define INDET_SCT_RESIDUALPULLCALCULATOR_H
16 
19 
23 
24 namespace InDet {
25 
26 
36 public:
38 
39  SCT_ResidualPullCalculator(const std::string& type, const std::string& name, const IInterface* parent);
40  virtual ~SCT_ResidualPullCalculator() = default;
41  virtual StatusCode initialize() override;
42 
43 
52  virtual std::optional<Trk::ResidualPull> residualPull(
53  const Trk::MeasurementBase* measurement,
54  const Trk::TrackParameters* trkPar,
55  const Trk::ResidualPull::ResidualType resType,
56  const Trk::TrackState::MeasurementType) const override;
57 
61  virtual std::array<double,5> residuals(
62  const Trk::MeasurementBase* measurement,
63  const Trk::TrackParameters* trkPar,
64  const Trk::ResidualPull::ResidualType resType,
65  const Trk::TrackState::MeasurementType) const override;
66 
67 private:
68  static double calcPull(
69  const double residual,
70  const double locMesCov,
71  const double locTrkCov,
73  bool& pullIsValid ) ;
74 }
75 ; // end class
76 } // end namespace InDet
77 
78 #endif //INDET_SCT_RESIDUALPULLCALCULATOR_H
TrackParameters.h
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
TrackStateDefs.h
Trk::IResidualPullCalculator
provides the interface for tools which calculate residuals and pulls.
Definition: IResidualPullCalculator.h:35
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
Trk::IResidualPullCalculator::residualPull
virtual std::optional< Trk::ResidualPull > residualPull(const Trk::MeasurementBase *, const Trk::TrackParameters *, const Trk::ResidualPull::ResidualType residualType, const TrackState::MeasurementType=TrackState::unidentified) const =0
This function returns a Trk::ResidualPull object, which contains the values of residual and pull for ...
InDet::SCT_ResidualPullCalculator::SCT_ResidualPullCalculator
SCT_ResidualPullCalculator(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition: SCT_ResidualPullCalculator.cxx:22
InDet::SCT_ResidualPullCalculator::~SCT_ResidualPullCalculator
virtual ~SCT_ResidualPullCalculator()=default
InDet::SCT_ResidualPullCalculator
The InDet::SCT_ResidualPullCalculator is an AlgTool to calculate the residual and pull of a measureme...
Definition: SCT_ResidualPullCalculator.h:35
ResidualPull.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::TrackState::MeasurementType
MeasurementType
enum describing the flavour of MeasurementBase
Definition: TrackStateDefs.h:26
InDet::SCT_ResidualPullCalculator::residualPull
virtual std::optional< Trk::ResidualPull > residualPull(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override
This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual an...
Definition: SCT_ResidualPullCalculator.cxx:38
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::MeasurementBase
Definition: MeasurementBase.h:58
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
InDet::SCT_ResidualPullCalculator::initialize
virtual StatusCode initialize() override
initialize
Definition: SCT_ResidualPullCalculator.cxx:30
IResidualPullCalculator.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
InDet::SCT_ResidualPullCalculator::calcPull
static double calcPull(const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &, bool &pullIsValid)
calc pull in 1 dimension
Definition: SCT_ResidualPullCalculator.cxx:187
InDet::SCT_ResidualPullCalculator::residuals
virtual std::array< double, 5 > residuals(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType resType, const Trk::TrackState::MeasurementType) const override
This function is a light-weight version of the function above, designed for track fitters where speed...
Definition: SCT_ResidualPullCalculator.cxx:140
AthAlgTool
Definition: AthAlgTool.h:26
Trk::ResidualPull::ResidualType
ResidualType
Definition: ResidualPull.h:53