Public Member Functions | Private Attributes | List of all members
beam_cut_BI Class Reference

#include <SelectionDefinitions.h>

Public Member Functions

 beam_cut_BI (double x_low, double x_high, double y_low, double y_high, double z_low, double z_high, double cos_low)
 
bool operator() (double startX, double startY, double startZ, double dirX, double dirY, double dirZ, double BI_X, double BI_Y, double BI_dirX, double BI_dirY, double BI_dirZ)
 

Private Attributes

double fXLow
 
double fXHigh
 
double fYLow
 
double fYHigh
 
double fZLow
 
double fZHigh
 
double fCosLow
 

Detailed Description

Definition at line 480 of file SelectionDefinitions.h.

Constructor & Destructor Documentation

beam_cut_BI::beam_cut_BI ( double  x_low,
double  x_high,
double  y_low,
double  y_high,
double  z_low,
double  z_high,
double  cos_low 
)
inline

Definition at line 487 of file SelectionDefinitions.h.

491  : fXLow(x_low), fXHigh(x_high),
492  fYLow(y_low), fYHigh(y_high),
493  fZLow(z_low), fZHigh(z_high),
494  fCosLow(cos_low) {}

Member Function Documentation

bool beam_cut_BI::operator() ( double  startX,
double  startY,
double  startZ,
double  dirX,
double  dirY,
double  dirZ,
double  BI_X,
double  BI_Y,
double  BI_dirX,
double  BI_dirY,
double  BI_dirZ 
)
inline

Definition at line 495 of file SelectionDefinitions.h.

500  {
501 
502  double deltaX = startX - BI_X;
503  double deltaY = startY - BI_Y;
504  double cos = BI_dirX*dirX + BI_dirY*dirY +
505  BI_dirZ*dirZ;
506  if( (deltaX < fXLow) || (deltaX > fXHigh) )
507  return false;
508 
509  if ( (deltaY < fYLow) || (deltaY > fYHigh) )
510  return false;
511 
512  if ( (startZ < fZLow) || (startZ > fZHigh) )
513  return false;
514 
515  if (cos < fCosLow)
516  return false;
517 
518  return true;
519  }

Member Data Documentation

double beam_cut_BI::fCosLow
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fXHigh
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fXLow
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fYHigh
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fYLow
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fZHigh
private

Definition at line 482 of file SelectionDefinitions.h.

double beam_cut_BI::fZLow
private

Definition at line 482 of file SelectionDefinitions.h.


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