|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/MsgStream.h"
40 std::make_unique<Transforms>(tTransform, tTransform.translation(), s_xAxis);
55 if (pesf.m_transforms) {
57 pesf.m_transforms->transform, pesf.m_transforms->center, s_xAxis);
65 if (pesf.m_transforms) {
67 std::make_unique<Transforms>(shift * pesf.m_transforms->transform,
68 shift * pesf.m_transforms->center,
106 return std::make_unique<ParametersT<5, Charged, PerigeeSurface>>(
118 return std::make_unique<ParametersT<5, Charged, PerigeeSurface>>(
133 return std::make_unique<ParametersT<5, Neutral, PerigeeSurface>>(
146 return std::make_unique<ParametersT<5, Neutral, PerigeeSurface>>(
160 return {0., 0., locpars[
Trk::z0] + (center().z())};
178 Amg::Vector3D radiusAxisGlobal(lineDirection().cross(glomom));
183 double phi = glomom.phi();
202 double phi = glomom.phi();
205 double z = locpars[
Trk::z0] + center().z();
216 double d0 = perPos.perp();
217 double z0 = perPos.z();
219 d0 *= ((lineDirection().cross(glomom)).
dot(perPos) < 0.0) ? -1.0 : 1.0;
239 double eaTeb = ea.dot(eb);
240 double denom = 1 - eaTeb * eaTeb;
241 if (std::abs(
denom) > 10
e-7) {
242 double lambda0 = (mab.dot(ea) - mab.dot(eb) * eaTeb) /
denom;
244 bool isValid = forceDir ? (lambda0 > 0.) :
true;
260 mFrame.col(0) = measX;
261 mFrame.col(1) = measY;
262 mFrame.col(2) = measDepth;
274 double D =
dir.dot(
S);
275 double A = (1. - D) * (1. + D);
277 return {1,
pos.perp(),
false, 0.};
280 return {1,
pos.perp(),
false, sol};
288 double dx =
pos[0] - T(3, 0);
289 double dy =
pos[1] - T(3, 1);
295 return {1, 0.,
false, -(
dir[0] *
dx +
dir[1] *
dy) /
A};
297 return {1, 0.,
false, 0.};
304 sl << std::setiosflags(std::ios::fixed);
305 sl << std::setprecision(7);
306 sl <<
"Trk::PerigeeSurface:" << std::endl;
307 sl <<
" Center position (x, y, z) = (" << center().x() <<
", " << center().y() <<
", " << center().z() <<
")";
308 sl << std::setprecision(-1);
316 sl << std::setiosflags(std::ios::fixed);
317 sl << std::setprecision(7);
318 sl <<
"Trk::PerigeeSurface:" << std::endl;
319 sl <<
" Center position (x, y, z) = (" << center().x() <<
", " << center().y() <<
", " << center().z() <<
")";
320 sl << std::setprecision(-1);
virtual bool globalToLocal(const Amg::Vector3D &glob, const Amg::Vector3D &mom, Amg::Vector2D &loc) const override final
GlobalToLocal method without dynamic memory allocation - boolean checks if on surface.
@ z
global position (cartesian)
virtual NeutralTrackParametersUniquePtr createUniqueNeutralParameters(double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
Use the Surface as a ParametersBase constructor, from local parameters - neutral.
std::unique_ptr< ParametersBase< 5, Trk::Charged > > ChargedTrackParametersUniquePtr
Unique ptr types.
Eigen::Matrix< double, 2, 1 > Vector2D
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
CxxUtils::CachedValue< Amg::Vector3D > m_lineDirection
< data members cache of the line direction (speeds up)
PerigeeSurface & operator=(const PerigeeSurface &slsf)
Assignment operator.
std::unique_ptr< ParametersBase< 5, Trk::Neutral > > NeutralTrackParametersUniquePtr
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
virtual Amg::RotationMatrix3D measurementFrame(const Amg::Vector3D &glopos, const Amg::Vector3D &glomom) const override final
Return the measurement frame - this is needed for alignment, in particular for StraightLine and Perig...
Amg::Vector3D localToGlobal(const LocalParameters &locpos) const
Local to global method: Take care that by just providing locR and locZ the global position cannot be ...
virtual MsgStream & dump(MsgStream &sl) const override
Output Method for MsgStream.
AmgSymMatrix(5) &GXFTrackState
Surface & operator=(const Surface &sf)
static const NoBounds s_perigeeBounds
virtual Intersection straightLineIntersection(const Amg::Vector3D &pos, const Amg::Vector3D &dir, bool forceDir=false, Trk::BoundaryCheck bchk=false) const override final
fast straight line intersection schema - standard: provides closest intersection and (signed) path le...
std::unique_ptr< Transforms > m_transforms
Eigen::Affine3d Transform3D
virtual bool operator==(const Surface &sf) const override
Equality operator.
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
def dot(G, fn, nodesToHighlight=[])
double charge(const T &p)
Eigen::Matrix< double, 3, 1 > Vector3D
virtual Surface::ChargedTrackParametersUniquePtr createUniqueTrackParameters(double l1, double l2, double phi, double theta, double qop, std::optional< AmgSymMatrix(5)> cov=std::nullopt) const override final
Use the Surface as a ParametersBase constructor, from local parameters - charged.
const double mb
1mb to cm2
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Eigen::Translation< double, 3 > Translation3D
PerigeeSurface()
Default Constructor - needed for persistency.
virtual DistanceSolution straightLineDistanceEstimate(const Amg::Vector3D &pos, const Amg::Vector3D &dir) const override final
fast straight line distance evaluation to Surface