Belle II Software
release-05-02-19
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
k
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
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
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
MilleBinary.h
Go to the documentation of this file.
1
/*
2
* MilleBinary.h
3
*
4
* Created on: Aug 31, 2011
5
* Author: kleinwrt
6
*/
7
30
#ifndef MILLEBINARY_H_
31
#define MILLEBINARY_H_
32
33
#include<fstream>
34
#include<vector>
35
37
namespace
gbl
{
38
40
68
class
MilleBinary
{
69
public
:
70
MilleBinary
(
const
std::string fileName =
"milleBinaryISN.dat"
,
71
bool
doublePrec =
false
,
unsigned
int
aSize = 2000);
72
virtual
~
MilleBinary
();
73
void
addData
(
double
aMeas,
double
aPrec,
74
const
std::vector<unsigned int> &indLocal,
75
const
std::vector<double> &derLocal,
76
const
std::vector<int> &labGlobal,
77
const
std::vector<double> &derGlobal);
78
void
writeRecord
();
79
80
private
:
81
std::ofstream
binaryFile
;
82
std::vector<int>
intBuffer
;
83
std::vector<float>
floatBuffer
;
84
std::vector<double>
doubleBuffer
;
85
bool
doublePrecision
;
86
};
87
}
88
#endif
/* MILLEBINARY_H_ */
gbl::MilleBinary::doublePrecision
bool doublePrecision
Flag for storage in as double values.
Definition:
MilleBinary.h:85
gbl::MilleBinary::binaryFile
std::ofstream binaryFile
Binary File.
Definition:
MilleBinary.h:81
gbl::MilleBinary::MilleBinary
MilleBinary(const std::string fileName="milleBinaryISN.dat", bool doublePrec=false, unsigned int aSize=2000)
Create binary file.
Definition:
MilleBinary.cc:41
gbl
Namespace for the general broken lines package.
Definition:
BorderedBandMatrix.h:44
gbl::MilleBinary::writeRecord
void writeRecord()
Write record to file.
Definition:
MilleBinary.cc:111
gbl::MilleBinary::addData
void addData(double aMeas, double aPrec, const std::vector< unsigned int > &indLocal, const std::vector< double > &derLocal, const std::vector< int > &labGlobal, const std::vector< double > &derGlobal)
Add data block to (end of) record.
Definition:
MilleBinary.cc:70
gbl::MilleBinary::floatBuffer
std::vector< float > floatBuffer
Float buffer.
Definition:
MilleBinary.h:83
gbl::MilleBinary::doubleBuffer
std::vector< double > doubleBuffer
Double buffer.
Definition:
MilleBinary.h:84
gbl::MilleBinary::intBuffer
std::vector< int > intBuffer
Integer buffer.
Definition:
MilleBinary.h:82
gbl::MilleBinary
Millepede-II (binary) record.
Definition:
MilleBinary.h:68
genfit2
code2
GBL
include
MilleBinary.h
Generated on Tue Jan 4 2022 02:58:42 for Belle II Software by
1.8.17