Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:23

0001 /* Copyright 2008-2010, Technische Universitaet Muenchen,
0002    Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
0003 
0004    This file is part of GENFIT.
0005 
0006    GENFIT is free software: you can redistribute it and/or modify
0007    it under the terms of the GNU Lesser General Public License as published
0008    by the Free Software Foundation, either version 3 of the License, or
0009    (at your option) any later version.
0010 
0011    GENFIT is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014    GNU Lesser General Public License for more details.
0015 
0016    You should have received a copy of the GNU Lesser General Public License
0017    along with GENFIT.  If not, see <http://www.gnu.org/licenses/>.
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.)//for this default ctor inActive always false
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 } /* End of namespace genfit */