SND@LHC Software
Loading...
Searching...
No Matches
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
8
#ifndef MILLEBINARY_H_
9
#define MILLEBINARY_H_
10
11
#include<fstream>
12
#include<vector>
13
15
namespace
gbl
{
16
18
46
class
MilleBinary
{
47
public
:
48
MilleBinary
(
const
std::string fileName =
"milleBinaryISN.dat"
,
49
bool
doublePrec =
false
,
unsigned
int
aSize = 2000);
50
virtual
~MilleBinary
();
51
void
addData
(
double
aMeas,
double
aPrec,
52
const
std::vector<unsigned int> &indLocal,
53
const
std::vector<double> &derLocal,
54
const
std::vector<int> &labGlobal,
55
const
std::vector<double> &derGlobal);
56
void
writeRecord
();
57
58
private
:
59
std::ofstream
binaryFile
;
60
std::vector<int>
intBuffer
;
61
std::vector<float>
floatBuffer
;
62
std::vector<double>
doubleBuffer
;
63
bool
doublePrecision
;
64
};
65
}
66
#endif
/* MILLEBINARY_H_ */
gbl::MilleBinary
Millepede-II (binary) record.
Definition
MilleBinary.h:46
gbl::MilleBinary::floatBuffer
std::vector< float > floatBuffer
Float buffer.
Definition
MilleBinary.h:61
gbl::MilleBinary::~MilleBinary
virtual ~MilleBinary()
Definition
MilleBinary.cc:35
gbl::MilleBinary::doubleBuffer
std::vector< double > doubleBuffer
Double buffer.
Definition
MilleBinary.h:62
gbl::MilleBinary::writeRecord
void writeRecord()
Write record to file.
Definition
MilleBinary.cc:89
gbl::MilleBinary::doublePrecision
bool doublePrecision
Flag for storage in as double values.
Definition
MilleBinary.h:63
gbl::MilleBinary::intBuffer
std::vector< int > intBuffer
Integer buffer.
Definition
MilleBinary.h:60
gbl::MilleBinary::binaryFile
std::ofstream binaryFile
Binary File.
Definition
MilleBinary.h:59
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:48
gbl
Namespace for the general broken lines package.
Definition
BorderedBandMatrix.h:23
genfit
GBL
include
MilleBinary.h
Generated by
1.9.8