12#include "GaudiKernel/MsgStream.h"
40 double halfphi,
double avphi)
91 double toZ = (fabs(toMinZ) < fabs(toMaxZ)) ? toMinZ : toMaxZ;
122 if (phiDist <= 0. && zDist <= 0) {
123 if (phiDist > zDist){
139 return sqrt(zDist * zDist + phiDist * phiDist);
147 sl << std::setiosflags(std::ios::fixed);
148 sl << std::setprecision(7);
149 sl <<
"Trk::ConeBounds: (tanAlpha, minZ, maxZ, averagePhi, halfPhiSector) = ";
152 sl << std::setprecision(-1);
159 sl << std::setiosflags(std::ios::fixed);
160 sl << std::setprecision(7);
161 sl <<
"Trk::ConeBounds: (tanAlpha, minZ, maxZ, averagePhi, halfPhiSector) = ";
164 sl << std::setprecision(-1);
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
const double MAXBOUNDVALUE
Bounds for a conical Surface, the opening angle is stored in and always positively defined.
double minZ() const
This method returns the minimum z value in the local framee.
double tanAlpha() const
This method returns the average phi.
virtual MsgStream & dump(MsgStream &sl) const override
Output Method for MsgStream.
virtual bool operator==(const SurfaceBounds &sbo) const override
Equality operator.
double maxZ() const
This method returns the maximum z value in the local framee.
double halfPhiSector() const
This method returns the half-phi width of the sector (so that averagePhi +/- halfPhiSector gives the ...
std::vector< TDD_real_t > m_boundValues
internal storage of the geometry parameters
virtual void initCache() override final
Helper function for angle parameter initialization.
ConeBounds()
Default Constructor.
double averagePhi() const
This method returns the average phi value (i.e.
virtual double minDistance(const Amg::Vector2D &pos) const override
Minimal distance to boundary ( > 0 if outside and <=0 if inside)
SurfaceBounds()=default
Default Constructor.
Eigen::Matrix< double, 2, 1 > Vector2D