File indexing completed on 2025-08-05 08:18:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include "RectangularFinitePlane.h"
0021
0022 #include "IO.h"
0023
0024 #include <cassert>
0025
0026 namespace genfit {
0027
0028 RectangularFinitePlane::RectangularFinitePlane(const double& umin,const double& umax,
0029 const double& vmin,const double& vmax)
0030 : uMin_(umin),uMax_(umax),vMin_(vmin),vMax_(vmax)
0031 {
0032 assert(umin<umax);
0033 assert(vmin<vmax);
0034 }
0035
0036 RectangularFinitePlane::RectangularFinitePlane()
0037 : uMin_(1.),uMax_(-1.),vMin_(1.),vMax_(-1.)
0038 {}
0039
0040
0041 RectangularFinitePlane::~RectangularFinitePlane(){
0042
0043 }
0044
0045 bool RectangularFinitePlane::isInActive(double u, double v) const{
0046 return (u>=uMin_ && u<=uMax_ && v>=vMin_ && v<=vMax_);
0047 }
0048
0049 void RectangularFinitePlane::Print(const Option_t*) const{
0050 printOut << "Rectangular Finite Plane Umin=" << uMin_ << ", Umax="
0051 << uMax_ << ", Vmin=" << vMin_ << ", Vmax=" << vMax_ << std::endl;
0052 }
0053
0054 }