Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
blob
master
core
eventDisplay
fields
finitePlanes
fitters
GBL
include
BorderedBandMatrix.h
GblData.h
GblFitStatus.h
GblFitter.h
GblFitterInfo.h
GblPoint.h
GblTrackSegmentController.h
GblTrajectory.h
GFGbl.h
ICalibrationParametersDerivatives.h
MilleBinary.h
MyDebugTools.h
VMatrix.h
src
GFRave
gtest
measurements
test
trackReps
utilities
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
MyDebugTools.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file 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
GenFit
blob
master
GBL
include
MyDebugTools.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:17
using
1.8.2 with
sPHENIX GitHub integration