GENFIT Rev: NoNumberAvailable
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
29
30#ifndef MILLEBINARY_H_
31#define MILLEBINARY_H_
32
33#include<fstream>
34#include<vector>
35
37namespace gbl {
38
40
69public:
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
80private:
81 std::ofstream binaryFile;
82 std::vector<int> intBuffer;
83 std::vector<float> floatBuffer;
84 std::vector<double> doubleBuffer;
86};
87}
88#endif /* MILLEBINARY_H_ */
MilleBinary(const std::string &fileName="milleBinaryISN.dat", bool doublePrec=false, unsigned int aSize=2000)
Create binary file.
std::vector< float > floatBuffer
Float buffer.
Definition MilleBinary.h:83
virtual ~MilleBinary()
std::vector< double > doubleBuffer
Double buffer.
Definition MilleBinary.h:84
void writeRecord()
Write record to file.
bool doublePrecision
Flag for storage in as double values.
Definition MilleBinary.h:85
std::vector< int > intBuffer
Integer buffer.
Definition MilleBinary.h:82
std::ofstream binaryFile
Binary File.
Definition MilleBinary.h:81
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.
Namespace for the general broken lines package.