15 declareInterface<IMuonLayerSegmentMatchingTool>(
this);
22 return StatusCode::SUCCESS;
27 if (
msgLvl(MSG::VERBOSE)) {
28 std::shared_ptr<const Trk::TrackParameters> pars =
intersection.trackParameters;
29 msg(MSG::VERBOSE) <<
" startPars: phi " << pars->position().phi() <<
" r " << pars->position().perp() <<
" z "
30 << pars->position().z() <<
" local " << pars->parameters()[
Trk::locX] <<
" " << pars->parameters()[
Trk::locY];
31 if (pars->covariance())
37 std::shared_ptr<Trk::TrackParameters> exPars(
m_extrapolator->extrapolate(
44 std::shared_ptr<Trk::AtaPlane> ataPlane = std::dynamic_pointer_cast<Trk::AtaPlane>(exPars);
50 if (
msgLvl(MSG::VERBOSE)) {
54 <<
" extrapolation r " << ataPlane->position().perp() <<
" z " << ataPlane->position().z() <<
" local "
56 if (ataPlane->covariance())
83 const std::vector<std::shared_ptr<const Muon::MuonSegment> >& segments,
84 std::vector<std::shared_ptr<const Muon::MuonSegment> >& selectedSegments)
const {
86 for (
const std::shared_ptr<const Muon::MuonSegment>& segment : segments) {
89 ATH_MSG_DEBUG(
"Selected segments: " << selectedSegments.size());
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
bool msgLvl(const MSG::Level lvl) const
This is the common class for 3D segments used in the muon spectrometer.
virtual const Amg::Vector3D & globalPosition() const override final
global position
virtual const Trk::PlaneSurface & associatedSurface() const override final
returns the surface for the local to global transformation
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
std::vector< std::string > intersection(std::vector< std::string > &v1, std::vector< std::string > &v2)
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
ParametersBase< TrackParametersDim, Charged > TrackParameters