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
15namespace gbl {
16
18
47public:
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
58private:
59 std::ofstream binaryFile;
60 std::vector<int> intBuffer;
61 std::vector<float> floatBuffer;
62 std::vector<double> doubleBuffer;
64};
65}
66#endif /* MILLEBINARY_H_ */
Millepede-II (binary) record.
Definition MilleBinary.h:46
std::vector< float > floatBuffer
Float buffer.
Definition MilleBinary.h:61
virtual ~MilleBinary()
std::vector< double > doubleBuffer
Double buffer.
Definition MilleBinary.h:62
void writeRecord()
Write record to file.
bool doublePrecision
Flag for storage in as double values.
Definition MilleBinary.h:63
std::vector< int > intBuffer
Integer buffer.
Definition MilleBinary.h:60
std::ofstream binaryFile
Binary File.
Definition MilleBinary.h:59
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.