FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
genfit
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<iostream>
21
#include<cassert>
22
#include"
GFRectFinitePlane.h
"
23
24
GFRectFinitePlane::GFRectFinitePlane
(
const
double
& umin,
const
double
& umax,
25
const
double
& vmin,
const
double
& vmax)
26
: fUmin(umin),fUmax(umax),fVmin(vmin),fVmax(vmax)
27
{assert(umin<umax);assert(vmin<vmax);}
28
29
GFRectFinitePlane::GFRectFinitePlane
()
30
: fUmin(1.),fUmax(-1.),fVmin(1.),fVmax(-1.)
//for this default ctor inActive always false
31
{}
32
33
34
GFRectFinitePlane::~GFRectFinitePlane
(){
35
36
}
37
38
bool
GFRectFinitePlane::inActive
(
const
double
& u,
const
double
&
v
)
const
{
39
if
(u>=
fUmin
&& u<=fUmax && v>=
fVmin
&& v<=
fVmax
)
return
true
;
40
return
false
;
41
}
42
43
void
GFRectFinitePlane::Print
()
const
{
44
std::cout <<
"Rectangular Finite Plane Umin="
<<
fUmin
<<
", Umax="
45
<<
fUmax
<<
", Vmin="
<<
fVmin
<<
", Vmax="
<<
fVmax
<< std::endl;
46
};
v
__m128 v
Definition:
P4_F32vec4.h:4
GFRectFinitePlane::fVmin
double fVmin
Definition:
GFRectFinitePlane.h:56
GFRectFinitePlane::Print
void Print() const
Definition:
GFRectFinitePlane.cxx:43
GFRectFinitePlane::inActive
bool inActive(const double &u, const double &v) const
Definition:
GFRectFinitePlane.cxx:38
GFRectFinitePlane::fUmin
double fUmin
Definition:
GFRectFinitePlane.h:56
GFRectFinitePlane::GFRectFinitePlane
GFRectFinitePlane()
Definition:
GFRectFinitePlane.cxx:29
GFRectFinitePlane::fUmax
double fUmax
Definition:
GFRectFinitePlane.h:56
GFRectFinitePlane::~GFRectFinitePlane
virtual ~GFRectFinitePlane()
Definition:
GFRectFinitePlane.cxx:34
GFRectFinitePlane::fVmax
double fVmax
Definition:
GFRectFinitePlane.h:56
GFRectFinitePlane.h
Generated on Wed Apr 3 2019 08:43:51 for FairRoot/PandaRoot by
1.8.5