LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
GFRectFinitePlane.cxx
Go to the documentation of this file.
1
/* Copyright 2008-2010, Technische Universitaet Muenchen,
2
Authors: Christian Hoeppner & Sebastian Neubert
3
4
This file is part of GENFIT.
5
6
GENFIT is free software: you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published
8
by the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
GENFIT is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public License
17
along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include "
GFRectFinitePlane.h
"
21
#include "
GFException.h
"
22
23
genf::GFRectFinitePlane::GFRectFinitePlane
(
const
double
& umin,
24
const
double
& umax,
25
const
double
& vmin,
26
const
double
& vmax)
27
: fUmin(umin), fUmax(umax), fVmin(vmin), fVmax(vmax)
28
{
29
if
((umin >= umax) || (vmin >= vmax))
30
throw
GFException
(
31
std::string(__func__) +
": unsorted inizialization parameters"
, __LINE__, __FILE__)
32
.
setFatal
();
33
}
34
35
genf::GFRectFinitePlane::GFRectFinitePlane
()
36
:
fUmin
(1.),
fUmax
(-1.),
fVmin
(1.),
fVmax
(-1.)
//for this default ctor inActive always false
37
{}
38
39
genf::GFRectFinitePlane::~GFRectFinitePlane
() {}
40
41
bool
genf::GFRectFinitePlane::inActive
(
const
double
& u,
const
double
& v)
const
42
{
43
if
(u >=
fUmin
&& u <= fUmax && v >=
fVmin
&& v <=
fVmax
)
return
true
;
44
return
false
;
45
}
46
47
void
genf::GFRectFinitePlane::Print
(std::ostream& out
/* = std::cout */
)
const
48
{
49
out <<
"Rectangular Finite Plane Umin="
<<
fUmin
<<
", Umax="
<<
fUmax
<<
", Vmin="
<<
fVmin
50
<<
", Vmax="
<<
fVmax
<< std::endl;
51
}
genf::GFRectFinitePlane::fVmin
double fVmin
Definition:
GFRectFinitePlane.h:56
genf::GFRectFinitePlane::~GFRectFinitePlane
virtual ~GFRectFinitePlane()
Definition:
GFRectFinitePlane.cxx:39
genf::GFRectFinitePlane::fUmin
double fUmin
Definition:
GFRectFinitePlane.h:56
genf::GFRectFinitePlane::fVmax
double fVmax
Definition:
GFRectFinitePlane.h:56
genf::GFRectFinitePlane::inActive
bool inActive(const double &u, const double &v) const
Definition:
GFRectFinitePlane.cxx:41
GFException
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Definition:
GFException.h:47
genf::GFRectFinitePlane::GFRectFinitePlane
GFRectFinitePlane()
Definition:
GFRectFinitePlane.cxx:35
GFException::setFatal
GFException & setFatal(bool b=true)
set fatal flag. if this is true, the fit stops for this current track repr.
Definition:
GFException.h:75
genf::GFRectFinitePlane::fUmax
double fUmax
Definition:
GFRectFinitePlane.h:56
genf::GFRectFinitePlane::Print
void Print(std::ostream &out=std::cout) const
Definition:
GFRectFinitePlane.cxx:47
GFException.h
GFRectFinitePlane.h
larreco
v09_25_00
source
larreco
Genfit
GFRectFinitePlane.cxx
Generated on Thu May 2 2024 20:59:45 for LArSoft by
1.8.11