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

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

#include <BoundaryTrapezoid.h>

Inheritance diagram for gear::BoundaryTrapezoid:
gear::IBoundary

Public Member Functions

 BoundaryTrapezoid (double baseBottom, double baseTop, double height, double deltaW, double alpha)
 
virtual bool isInBoundary (CLHEP::Hep3Vector local) const
 

Detailed Description

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.

Constructor & Destructor Documentation

gear::BoundaryTrapezoid::BoundaryTrapezoid ( double  baseBottom,
double  baseTop,
double  height,
double  deltaW,
double  alpha 
)
inline
Parameters
baseBottomthe length of the bottom base
baseTopthe length of the rectange: v must lie between +- length/2
heightthe height of the trapezoid
deltaWthe maximum value of |w| to be within boundary
alphahow much the trapezoid is rotated around the w axis. (counterclockwise as usual)

Definition at line 31 of file BoundaryTrapezoid.h.

Member Function Documentation

bool gear::BoundaryTrapezoid::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 7 of file BoundaryTrapezoid.cc.


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