LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
genf::GFRectFinitePlane Class Reference

#include "GFRectFinitePlane.h"

Inheritance diagram for genf::GFRectFinitePlane:
genf::GFAbsFinitePlane

Public Member Functions

bool inActive (const double &u, const double &v) const
 
void Print (std::ostream &out=std::cout) 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 Member Functions

virtual void Print (Option_t *) const
 

Private Attributes

double fUmin
 
double fUmax
 
double fVmin
 
double fVmax
 

Detailed Description

Definition at line 43 of file GFRectFinitePlane.h.

Constructor & Destructor Documentation

genf::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.

References GFException::setFatal().

26  : fUmin(umin),fUmax(umax),fVmin(vmin),fVmax(vmax)
27 {
28  if ((umin >= umax) || (vmin >= vmax))
29  throw GFException(std::string(__func__) + ": unsorted inizialization parameters", __LINE__, __FILE__).setFatal();
30 }
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition: GFException.h:50
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition: GFException.h:80
genf::GFRectFinitePlane::GFRectFinitePlane ( )

Definition at line 32 of file GFRectFinitePlane.cxx.

Referenced by clone().

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

Definition at line 37 of file GFRectFinitePlane.cxx.

37  {
38 
39 }

Member Function Documentation

GFAbsFinitePlane* genf::GFRectFinitePlane::clone ( ) const
inlinevirtual

Deep copy ctor for polymorphic class.

Implements genf::GFAbsFinitePlane.

Definition at line 55 of file GFRectFinitePlane.h.

References GFRectFinitePlane().

55  {
56  return new GFRectFinitePlane(*this);
57  }
bool genf::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 genf::GFAbsFinitePlane.

Definition at line 41 of file GFRectFinitePlane.cxx.

References fUmin, fVmax, and fVmin.

41  {
42  if(u>=fUmin && u<=fUmax && v>=fVmin && v<=fVmax) return true;
43  return false;
44 }
void genf::GFRectFinitePlane::Print ( std::ostream &  out = std::cout) const
virtual

Implements genf::GFAbsFinitePlane.

Definition at line 46 of file GFRectFinitePlane.cxx.

References fUmax, fUmin, fVmax, and fVmin.

46  {
47  out << "Rectangular Finite Plane Umin=" << fUmin << ", Umax="
48  << fUmax << ", Vmin=" << fVmin << ", Vmax=" << fVmax << std::endl;
49 }
virtual void genf::GFRectFinitePlane::Print ( Option_t *  ) const
inlineprivatevirtual

Reimplemented from genf::GFAbsFinitePlane.

Definition at line 61 of file GFRectFinitePlane.h.

62  { throw std::logic_error(std::string(__func__) + "::Print(Option_t*) not available"); }

Member Data Documentation

double genf::GFRectFinitePlane::fUmax
private

Definition at line 59 of file GFRectFinitePlane.h.

Referenced by Print().

double genf::GFRectFinitePlane::fUmin
private

Definition at line 59 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().

double genf::GFRectFinitePlane::fVmax
private

Definition at line 59 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().

double genf::GFRectFinitePlane::fVmin
private

Definition at line 59 of file GFRectFinitePlane.h.

Referenced by inActive(), and Print().


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