ATLAS Offline Software
RPC_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 
5 #ifndef MUONRPC_RESIDUALPULLCALCULATOR_H
6 #define MUONRPC_RESIDUALPULLCALCULATOR_H
7 
10 #include "GaudiKernel/ServiceHandle.h"
11 
15 
16 namespace Muon
17 {
18 
28  {
29  public:
30  RPC_ResidualPullCalculator(const std::string&,const std::string&,const IInterface*);
31 
32  virtual ~RPC_ResidualPullCalculator()=default;
33 
34  virtual StatusCode initialize() override;
35 
36  using IResidualPullCalculator::residualPull;
46  virtual std::optional<Trk::ResidualPull> residualPull(
47  const Trk::MeasurementBase* measurement,
48  const Trk::TrackParameters* trkPar,
50  const Trk::TrackState::MeasurementType) const override;
51 
55  virtual std::array<double,5> residuals(
56  const Trk::MeasurementBase* measurement,
57  const Trk::TrackParameters* trkPar,
59  const Trk::TrackState::MeasurementType) const override;
60 
61  private:
62 
63  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
64 
66  static double calcPull(const double residual,
67  const double locMesCov,
68  const double locTrkCov,
70 
71  };
72 } // end of namespace
73 
74 #endif
TrackParameters.h
Muon::RPC_ResidualPullCalculator
RPC-specific tool to calculate hit residual and pull from a RIO_OnTrack/TrackParameter pair.
Definition: RPC_ResidualPullCalculator.h:28
ClusterSeg::residual
@ residual
Definition: ClusterNtuple.h:20
Muon::RPC_ResidualPullCalculator::residualPull
virtual std::optional< Trk::ResidualPull > residualPull(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType) const override
This function returns (creates!) a Trk::ResidualPull object, which contains the values of residual an...
Definition: RPC_ResidualPullCalculator.cxx:58
Trk::IResidualPullCalculator
provides the interface for tools which calculate residuals and pulls.
Definition: IResidualPullCalculator.h:35
Muon::RPC_ResidualPullCalculator::residuals
virtual std::array< double, 5 > residuals(const Trk::MeasurementBase *measurement, const Trk::TrackParameters *trkPar, const Trk::ResidualPull::ResidualType, const Trk::TrackState::MeasurementType) const override
This function is a light-weight version of the function above, designed for track fitters where speed...
Definition: RPC_ResidualPullCalculator.cxx:29
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::RPC_ResidualPullCalculator::RPC_ResidualPullCalculator
RPC_ResidualPullCalculator(const std::string &, const std::string &, const IInterface *)
Definition: RPC_ResidualPullCalculator.cxx:12
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
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Muon::RPC_ResidualPullCalculator::initialize
virtual StatusCode initialize() override
Definition: RPC_ResidualPullCalculator.cxx:20
Muon::RPC_ResidualPullCalculator::calcPull
static double calcPull(const double residual, const double locMesCov, const double locTrkCov, const Trk::ResidualPull::ResidualType &)
internal structuring: common method to calculate the hit pull.
Definition: RPC_ResidualPullCalculator.cxx:113
IResidualPullCalculator.h
Muon::RPC_ResidualPullCalculator::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RPC_ResidualPullCalculator.h:63
AthAlgTool
Definition: AthAlgTool.h:26
Muon::RPC_ResidualPullCalculator::~RPC_ResidualPullCalculator
virtual ~RPC_ResidualPullCalculator()=default
Trk::ResidualPull::ResidualType
ResidualType
Definition: ResidualPull.h:53
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >