Public Member Functions | Private Member Functions | Private Attributes | List of all members
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...
 
- Public Member Functions inherited from genf::GFAbsFinitePlane
virtual ~GFAbsFinitePlane ()
 

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 23 of file GFRectFinitePlane.cxx.

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

Definition at line 31 of file GFRectFinitePlane.cxx.

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

Definition at line 36 of file GFRectFinitePlane.cxx.

36  {
37 
38 }

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.

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 40 of file GFRectFinitePlane.cxx.

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

Implements genf::GFAbsFinitePlane.

Definition at line 45 of file GFRectFinitePlane.cxx.

45  {
46  out << "Rectangular Finite Plane Umin=" << fUmin << ", Umax="
47  << fUmax << ", Vmin=" << fVmin << ", Vmax=" << fVmax << std::endl;
48 }
QTextStream & endl(QTextStream &s)
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"); }
std::string string
Definition: nybbler.cc:12

Member Data Documentation

double genf::GFRectFinitePlane::fUmax
private

Definition at line 59 of file GFRectFinitePlane.h.

double genf::GFRectFinitePlane::fUmin
private

Definition at line 59 of file GFRectFinitePlane.h.

double genf::GFRectFinitePlane::fVmax
private

Definition at line 59 of file GFRectFinitePlane.h.

double genf::GFRectFinitePlane::fVmin
private

Definition at line 59 of file GFRectFinitePlane.h.


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