Belle II Software
release-08-01-10
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 Mon Sep 23 2024 14:02:53 for Belle II Software by
1.9.1