GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Public Member Functions | List of all members
gear::BoundaryRectangle Class Reference

A class for boundaries of a rectangle. More...

#include <BoundaryRectangle.h>

Inheritance diagram for gear::BoundaryRectangle:
gear::IBoundary

Public Member Functions

 BoundaryRectangle (double width, double length, double deltaW, double alpha=0.)
 
virtual bool isInBoundary (CLHEP::Hep3Vector local) const
 

Detailed Description

A class for boundaries of a rectangle.

The rectangle 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 rectangle. A basic rectangle would have its legnth parallel with v and its width parallel with u. However, the rectangle might be rotated as well around its center.

Definition at line 15 of file BoundaryRectangle.h.

Constructor & Destructor Documentation

gear::BoundaryRectangle::BoundaryRectangle ( double  width,
double  length,
double  deltaW,
double  alpha = 0. 
)
inline
Parameters
widththe width of the rectangle: u must lie between +- width/2.
lengththe length of the rectange: v must lie between +- length/2
deltaWthe maximum value of |w| to be within boundary
alphahow much the rectangle is rotated around the w axis. (counterclockwise as usual)

Definition at line 27 of file BoundaryRectangle.h.

Member Function Documentation

bool gear::BoundaryRectangle::isInBoundary ( CLHEP::Hep3Vector  local) const
virtual
Parameters
localthe local coordinates of a point to be checked
Returns
wether the point is inside the boundary

Implements gear::IBoundary.

Definition at line 8 of file BoundaryRectangle.cc.


The documentation for this class was generated from the following files: