Millepede-II (binary) record. More...
#include <MilleBinary.h>
Public Member Functions | |
| MilleBinary (const std::string fileName="milleBinaryISN.dat", unsigned int aSize=2000) | |
| Create binary file. | |
| virtual | ~MilleBinary () |
| void | addData (float aMeas, float 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. | |
| void | writeRecord () |
| Write record to file. | |
Private Attributes | |
| std::ofstream | binaryFile |
| Binary File. | |
| std::vector< int > | intBuffer |
| Integer buffer. | |
| std::vector< float > | floatBuffer |
| Float buffer. | |
Millepede-II (binary) record.
Containing information for local (track) and global fit.
The data blocks are collected in two arrays, a real array and an integer array, of same length. The content of the record is:
* real array integer array * 0 0.0 error count (this record) * 1 RMEAS, measured value 0 -+ * 2 local derivative index of local derivative | * 3 local derivative index of local derivative | * 4 ... | block * SIGMA, error (>0) 0 | * global derivative label of global derivative | * global derivative label of global derivative -+ * RMEAS, measured value 0 * local derivative index of local derivative * local derivative index of local derivative * ... * SIGMA, error 0 * global derivative label of global derivative * global derivative label of global derivative * ... * global derivative label of global derivative *
Definition at line 41 of file MilleBinary.h.
| MilleBinary::MilleBinary | ( | const std::string | fileName = "milleBinaryISN.dat", |
| unsigned int | aSize = 2000 |
||
| ) |
Create binary file.
| [in] | fileName | File name |
| [in] | aSize | Buffer size |
Definition at line 15 of file MilleBinary.cpp.
References floatBuffer, and intBuffer.
|
virtual |
Definition at line 23 of file MilleBinary.cpp.
References binaryFile.
| void MilleBinary::addData | ( | float | aMeas, |
| float | aErr, | ||
| 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.
| [in] | aMeas | Value |
| [in] | aErr | Error |
| [in] | indLocal | List of labels of local parameters |
| [in] | derLocal | List of derivatives for local parameters |
| [in] | labGlobal | List of labels of global parameters |
| [in] | derGlobal | List of derivatives for global parameters |
Definition at line 36 of file MilleBinary.cpp.
References floatBuffer, and intBuffer.
Referenced by GblTrajectory::milleOut().
| void MilleBinary::writeRecord | ( | ) |
Write record to file.
Definition at line 58 of file MilleBinary.cpp.
References binaryFile, floatBuffer, and intBuffer.
Referenced by GblTrajectory::milleOut().
|
private |
Binary File.
Definition at line 54 of file MilleBinary.h.
Referenced by writeRecord(), and ~MilleBinary().
|
private |
Float buffer.
Definition at line 56 of file MilleBinary.h.
Referenced by addData(), MilleBinary(), and writeRecord().
|
private |
Integer buffer.
Definition at line 55 of file MilleBinary.h.
Referenced by addData(), MilleBinary(), and writeRecord().
1.8.1