ATLAS Offline Software
Loading...
Searching...
No Matches
ApproximateTrackToLayerTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6
10
12 const EventContext &,
13 const xAOD::TrackParticle &track) const
14{
15 // The approximation doesn't affect track etas at all
16 double eta = track.eta();
17 double sinDPhi = (m_trackExtrapolationLinear.value() +
20 (track.pt() * track.charge());
21
22 if (std::abs(sinDPhi) > 1.0)
23 // The track was extrapolated outside of acceptance
24 return TrackExtension{};
25 else
26 return TrackExtension{track.eta(), track.phi() - std::asin(sinDPhi)};
27}
Scalar eta() const
pseudorapidity method
Gaudi::Property< double > m_trackExtrapolationQuadratic
Gaudi::Property< double > m_trackExtrapolationQuartic
ApproximateTrackToLayerTool(const std::string &name)
Gaudi::Property< double > m_trackExtrapolationLinear
virtual TrackExtension extendTrack(const EventContext &, const xAOD::TrackParticle &track) const override
Extend the track to a given layer.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Helper struct to hold track extrapolation information.