Belle II Software
release-06-01-15
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
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
MyDebugTools.h
1
#ifndef MYDEBUGTOOLS_H
2
#define MYDEBUGTOOLS_H
3
4
5
#include <map>
6
#include <iostream>
7
#include <iomanip>
8
#include <TMatrixD.h>
9
#include <assert.h>
10
#include <sstream>
11
#include <TMath.h>
12
#include <TVector3.h>
13
14
/*
15
using namespace std;
16
17
ofstream file("debug.txt");
18
19
20
21
void outputMatrix(TMatrixDSym matrix, std::string caption = "")
22
{
23
if (caption != "") file << caption << endl;
24
for (int i=0; i<matrix.GetNrows(); i++)
25
{
26
for (int j=0; j<matrix.GetNcols(); j++)
27
{
28
file << setw(12) << matrix[i][j] << " ";
29
}
30
file << endl;
31
}
32
}
33
34
void outputMatrix(TMatrixD matrix, std::string caption = "")
35
{
36
if (caption != "") file << caption << endl;
37
for (int i=0; i<matrix.GetNrows(); i++)
38
{
39
for (int j=0; j<matrix.GetNcols(); j++)
40
{
41
file << setw(12) << matrix[i][j] << " ";
42
}
43
file << endl;
44
}
45
}
46
47
void outputVector(TVectorD vector, std::string caption)
48
{
49
if (caption != "") file << caption << endl;
50
for (int i=0; i<vector.GetNoElements(); i++)
51
{
52
file << setw(12) << vector[i] << " ";
53
}
54
file << endl;
55
}
56
57
void outputVector(TVector3 vector, std::string caption)
58
{
59
if (caption != "") file << caption << endl;
60
for (int i=0; i<3; i++)
61
{
62
file << setw(12) << vector[i] << " ";
63
}
64
file << endl;
65
}
66
*/
67
#endif
genfit2
code2
GBL
include
MyDebugTools.h
Generated on Fri Dec 8 2023 04:21:01 for Belle II Software by
1.9.1