A class for boundaries of a trapzoid. More...
#include <BoundaryTrapezoid.h>
Public Member Functions | |
BoundaryTrapezoid (double baseBottom, double baseTop, double height, double deltaW, double alpha) | |
virtual bool | isInBoundary (CLHEP::Hep3Vector local) const |
A class for boundaries of a trapzoid.
The trapezoid is assumed to be in the u,v plane (u,v being local coordinates). So w should be relatively small to lie within the boundary. The center of the coordinate system is assumed to be in the center of the trapezoid. Also the trapezoid is supposed to be symmetric around its height. A basic trapezoid would have its bases parallel with v and its height parallel with u. The trapezoid might be rotated around its center.
Definition at line 17 of file BoundaryTrapezoid.h.
|
inline |
baseBottom | the length of the bottom base |
baseTop | the length of the rectange: v must lie between +- length/2 |
height | the height of the trapezoid |
deltaW | the maximum value of |w| to be within boundary |
alpha | how much the trapezoid is rotated around the w axis. (counterclockwise as usual) |
Definition at line 31 of file BoundaryTrapezoid.h.
|
virtual |
local | the local coordinates of a point to be checked |
Implements gear::IBoundary.
Definition at line 7 of file BoundaryTrapezoid.cc.