Namespaces | Functions
Geo.h File Reference

Collect Geo headers and supply basic geometry functions. More...

#include <vector>
#include "TVector3.h"
#include "GeometryObjects/GeometryBase.h"

Go to the source code of this file.

Namespaces

 geo
 Helper for AttenCurve.
 

Functions

void geo::ProjectToBoxEdge (const double xyz[], const double dxyz[], double xlo, double xhi, double ylo, double yhi, double zlo, double zhi, double xyzout[])
 Project along a direction from a particular starting point to the edge of a box. More...
 
int geo::WhichWallofBox (const double xyz[], double xlo, double xhi, double ylo, double yhi, double zlo, double zhi)
 
bool geo::IntersectsBox (const double xyz[], const double dxyz[], double xlo, double xhi, double ylo, double yhi, double zlo, double zhi)
 Determine if a particle starting at xyz with direction dxyz will intersect a box defined by xlo, xhi, ylo, yhi, zlo, zhi. More...
 
void geo::ProjectToBoxEdgeFromOutside (const double xyz[], const double dxyz[], int axis, double edge, double xyzout[])
 Project from a position outside of a box to an edge of the box with coordinate value edge for the axis axis. More...
 
bool geo::LineIntersection (double x0, double y0, double x1, double y1, double X0, double Y0, double X1, double Y1, double &x, double &y)
 Find the intersection between two line segments. More...
 
double geo::ClosestApproach (const double point[], const double intercept[], const double slopes[], double closest[])
 Find the distance of closest approach between point and line. More...
 
double geo::ClosestApproach (TVector3 point, TVector3 intercept, TVector3 slopes, TVector3 &closest)
 Find the distance of closest approach between point and line. More...
 
double geo::ClosestApproach (const TVector3 &P0, const TVector3 &P1, const TVector3 &Q0, const TVector3 &Q1, double *sc, double *tc, TVector3 *PC, TVector3 *QC)
 Find the distance of closest approach between two lines which pass through points P0 and P1 and Q0 and Q1. More...
 
double geo::DsqrToLine (double x0, double y0, double x1, double y1, double x2, double y2)
 In two dimensions, return the perpendicular distance from a point (x0,y0) to a line defined by end points (x1,y1) and (x2,y2) More...
 
double geo::LinFit (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &w, double *x1, double *y1, double *x2, double *y2)
 Find the best-fit line to a collection of points in 2-D by minimizing the squared vertical distance from the points to the line. More...
 
double geo::LinFitMinDperp (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &w, double *x1, double *y1, double *x2, double *y2)
 Find the best-fit line to a collection of points in 2-D by minimizing the squared perpendicular distance from the points to the line. More...
 
double geo::DistToEdge (double *point, double detHalfWidth, double detHalfHeight, double detLength)
 Find the distance from the given point to the edge of the detector. More...
 
bool geo::ClampRayToDetectorVolume (TVector3 *p0, TVector3 *p1, const GeometryBase *geom)
 If either endpoint is outside the detector move it to the edge. More...
 
double geo::AverageCellPathLength (geo::View_t view, double dx, double dy, double dz)
 Mean path length of a ray with (unit) direction vector dx, dy, dz through a cell in view, averaged over all transverse positions. More...
 

Detailed Description

Collect Geo headers and supply basic geometry functions.

Author
messi.nosp@m.er@i.nosp@m.ndian.nosp@m.a.ed.nosp@m.u
Version
Id
Geo.h,v 1.2 2012-09-20 21:42:43 greenc Exp

Definition in file Geo.h.