FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
GFRectFinitePlane Class Reference

Concrete implementation of finitie detector plane for rectangles. More...

#include <GFRectFinitePlane.h>

Inheritance diagram for GFRectFinitePlane:
GFAbsFinitePlane

Public Member Functions

bool inActive (const double &u, const double &v) const
 
void Print () const
 
 GFRectFinitePlane (const double &, const double &, const double &, const double &)
 give dimensions of finite rectangle: u1,u2,v1,v2 More...
 
 GFRectFinitePlane ()
 
virtual ~GFRectFinitePlane ()
 
GFAbsFinitePlaneclone () const
 Deep copy ctor for polymorphic class. More...
 

Private Attributes

double fUmin
 
double fUmax
 
double fVmin
 
double fVmax
 

Detailed Description

Concrete implementation of finitie detector plane for rectangles.

Definition at line 40 of file GFRectFinitePlane.h.

Constructor & Destructor Documentation

GFRectFinitePlane::GFRectFinitePlane ( const double &  umin,
const double &  umax,
const double &  vmin,
const double &  vmax 
)

give dimensions of finite rectangle: u1,u2,v1,v2

Definition at line 24 of file GFRectFinitePlane.cxx.

26  : fUmin(umin),fUmax(umax),fVmin(vmin),fVmax(vmax)
27 {assert(umin<umax);assert(vmin<vmax);}
GFRectFinitePlane::GFRectFinitePlane ( )

Definition at line 29 of file GFRectFinitePlane.cxx.

Referenced by clone().

30  : fUmin(1.),fUmax(-1.),fVmin(1.),fVmax(-1.)//for this default ctor inActive always false
31 {}
GFRectFinitePlane::~GFRectFinitePlane ( )
virtual

Definition at line 34 of file GFRectFinitePlane.cxx.

34  {
35 
36 }

Member Function Documentation

GFAbsFinitePlane* GFRectFinitePlane::clone ( ) const
inlinevirtual

Deep copy ctor for polymorphic class.

Implements GFAbsFinitePlane.

Definition at line 52 of file GFRectFinitePlane.h.

References GFRectFinitePlane().

52  {
53  return new GFRectFinitePlane(*this);
54  }
bool GFRectFinitePlane::inActive ( const double &  u,
const double &  v 
) const
virtual

Returns whether a u,v point is in the active plane or not. Needs to be implemented in child class.

Implements GFAbsFinitePlane.

Definition at line 38 of file GFRectFinitePlane.cxx.

References fUmin, fVmax, and fVmin.

38  {
39  if(u>=fUmin && u<=fUmax && v>=fVmin && v<=fVmax) return true;
40  return false;
41 }
__m128 v
Definition: P4_F32vec4.h:4
void GFRectFinitePlane::Print ( ) const
virtual

Implements GFAbsFinitePlane.

Definition at line 43 of file GFRectFinitePlane.cxx.

References fUmax, fUmin, fVmax, and fVmin.

43  {
44  std::cout << "Rectangular Finite Plane Umin=" << fUmin << ", Umax="
45  << fUmax << ", Vmin=" << fVmin << ", Vmax=" << fVmax << std::endl;
46 };

Member Data Documentation

double GFRectFinitePlane::fUmax
private

Definition at line 56 of file GFRectFinitePlane.h.

Referenced by Print().

double GFRectFinitePlane::fUmin
private

Definition at line 56 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().

double GFRectFinitePlane::fVmax
private

Definition at line 56 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().

double GFRectFinitePlane::fVmin
private

Definition at line 56 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().


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