|
ATLAS Offline Software
|
Go to the documentation of this file.
19 std::vector<Trk::SurfaceIntersection>& cSurfaces,
44 int strawMax = trtBaseElement->
nStraws() - 1;
47 if (strawInt != 0 && strawInt < strawMax && strawMax != -999) {
51 const Trk::Surface* nextStraw = (strawInt > 1 && strawInt < strawMax)
52 ? (&(trtBaseElement->
surface(nextID)))
64 std::vector<Trk::SurfaceIntersection>& cSurfaces,
70 sf.straightLineIntersection(
pos,
dir,
false,
false);
72 if (sfIntersection.
valid) {
74 double rSurface2 =
sf.bounds().r() *
sf.bounds().r();
80 (sDirection.cross((sfIntersection.
position - sCenter))).squaredNorm();
85 cSurfaces.emplace_back(sfIntersection, &
sf);
89 : (sfIntersection.
position.phi() >
sf.center().phi() ? 1 : -1));
92 return (
pos.phi() >
sf.center().phi() ? 1 : -1);
bool reachableSurfaces(std::vector< Trk::SurfaceIntersection > &cSurfaces, const Trk::Surface &sf, const Amg::Vector3D &pos, const Amg::Vector3D &dir) const
get the compatible surfaces
const TrkDetElementBase * associatedDetectorElement() const
return associated Detector Element
unsigned int nStraws() const
Number of straws in the element.
Identifier associatedDetectorElementIdentifier() const
return Identifier of the associated Detector Element
const TRT_ID * m_trtIdHelper
the Id helper
int straw(const Identifier &id) const
virtual Identifier identify() const override final
identifier of this detector element:
Eigen::Matrix< double, 3, 1 > Vector3D
double m_breakTolerance
if the straight line intersection is within this fraction of the bounds - don't look for neighbours
virtual const Trk::Surface & surface() const override final
Element Surface: access to the Surface (straw layer)
double m_outsideTolerance
accept even if it outside the bounds by this tolerance
int checkAndFill(std::vector< Trk::SurfaceIntersection > &cSurfaces, const Trk::Surface &sf, const Amg::Vector3D &pos, const Amg::Vector3D &dir) const
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw: