Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
ThreeHitFilters.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#include "tracking/vxdCaTracking/ThreeHitFilters.h"
10
// #include <boost/math/special_functions/fpclassify.hpp>
11
// #include <TMathBase.h>
12
// #include <math.h>
13
#include <boost/math/special_functions/sign.hpp>
14
15
using namespace
Belle2
;
16
using
boost::math::sign;
17
18
int
ThreeHitFilters::calcSign
(
const
B2Vector3D
& a,
const
B2Vector3D
& b,
const
B2Vector3D
& c)
19
{
20
B2Vector3D
ba = a - b; ba.
SetZ
(0.);
21
B2Vector3D
bc = b - c; bc.
SetZ
(0.);
22
return
sign(bc.
Orthogonal
() * ba);
//normal vector of m_vecBC times segment of ba
23
}
Belle2::B2Vector3< double >
Belle2::B2Vector3::Orthogonal
B2Vector3< DataType > Orthogonal() const
Vector orthogonal to this one.
Definition:
B2Vector3.h:277
Belle2::B2Vector3::SetZ
void SetZ(DataType z)
set Z/3rd-coordinate
Definition:
B2Vector3.h:461
Belle2::ThreeHitFilters::calcSign
int calcSign(const B2Vector3D &a, const B2Vector3D &b, const B2Vector3D &c)
calculates calculates the sign of the curvature of given 3-hit-tracklet.
Definition:
ThreeHitFilters.cc:18
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:17
tracking
vxdCaTracking
src
ThreeHitFilters.cc
Generated on Thu Apr 10 2025 03:00:52 for Belle II Software by
1.9.6