Millepede-II V04-17-03
|
Millepede-II (binary) record. More...
Public Member Functions | |
def | __init__ (self, doublePrec=False) |
Create MP-II binary record. More... | |
def | addData (self, dataList) |
Add data block to (end of) record. More... | |
def | getData (self) |
Get data block from current position in record. More... | |
def | printRecord (self) |
Print record. More... | |
def | writeRecord (self, aFile) |
Write record to file. More... | |
def | readRecord (self, aFile, aType) |
Read record from file. More... | |
def | moreData (self) |
Locate next data block. More... | |
def | specialDataTag (self) |
Get special data tag from block. More... | |
Private Attributes | |
__doublePrecision | |
flag for storage in as double values More... | |
__position | |
position in record, usually start of next data block; int More... | |
__numData | |
number of data blocks in record; int More... | |
__recLen | |
record length; int More... | |
__iMeas | |
position of value in current data block; int More... | |
__iErr | |
position of error in current data block; int More... | |
__inder | |
array with markers (0) and labels; array(int32) More... | |
__glder | |
array with values, errors and derivatives; (float32 or float64) More... | |
Millepede-II (binary) record.
Containing information for local (track) and global fit.
The data blocks are collected in two arrays, a real array (containing float or double values) and integer array, of same length. A positive record length indicate float and a negative one double values. The content of the record is:
real array integer array 0 0.0 error count (this record) 1 RMEAS, measured value 0 __iMeas -+ 2 local derivative index of local derivative | 3 local derivative index of local derivative | 4 ... | block SIGMA, error (>0) 0 __iErr | global derivative label of global derivative | global derivative label of global derivative | ... -+ RMEAS, measured value 0 __position 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 __recLen
Special data block (other/debug information). Contains no local derivatives and (error) SIGMA is negative (-Number of SPecial data words).
real array integer array 0.0 0 __iMeas -+ -float(NSP) 0 __iErr | special data special data | special block (2+NSP words) special data special data | ... -+
Definition at line 75 of file tinypede.py.
def tinypede.MilleRecord.__init__ | ( | self, | |
doublePrec = False |
|||
) |
Create MP-II binary record.
Definition at line 79 of file tinypede.py.
def tinypede.MilleRecord.addData | ( | self, | |
dataList | |||
) |
Add data block to (end of) record.
dataList | list with measurement, error, labels and derivatives; list |
Definition at line 101 of file tinypede.py.
References tinypede.MilleRecord.__glder, tinypede.MilleRecord.__inder, and tinypede.MilleRecord.__numData.
def tinypede.MilleRecord.getData | ( | self | ) |
Get data block from current position in record.
Definition at line 121 of file tinypede.py.
References tinypede.MilleRecord.__glder, tinypede.MilleRecord.__iErr, tinypede.MilleRecord.__iMeas, tinypede.MilleRecord.__inder, and tinypede.MilleRecord.__position.
def tinypede.MilleRecord.moreData | ( | self | ) |
Locate next data block.
Definition at line 181 of file tinypede.py.
References tinypede.MilleRecord.__glder, tinypede.MilleRecord.__iErr, tinypede.MilleRecord.__iMeas, tinypede.MilleRecord.__inder, tinypede.MilleRecord.__numData, tinypede.MilleRecord.__position, tinypede.MilleRecord.__recLen, and readMilleBinary.int.
def tinypede.MilleRecord.printRecord | ( | self | ) |
Print record.
Definition at line 137 of file tinypede.py.
References tinypede.MilleRecord.__glder, and tinypede.MilleRecord.__inder.
def tinypede.MilleRecord.readRecord | ( | self, | |
aFile, | |||
aType | |||
) |
Read record from file.
aFile | (binary) file |
aType | file type ('C' or 'F'ortran) |
Definition at line 158 of file tinypede.py.
References tinypede.MilleRecord.__glder, tinypede.MilleRecord.__inder, and tinypede.MilleRecord.__recLen.
def tinypede.MilleRecord.specialDataTag | ( | self | ) |
Get special data tag from block.
Definition at line 206 of file tinypede.py.
References tinypede.MilleRecord.__glder, tinypede.MilleRecord.__iErr, tinypede.MilleRecord.__iMeas, and readMilleBinary.int.
def tinypede.MilleRecord.writeRecord | ( | self, | |
aFile | |||
) |
Write record to file.
aFile | (binary) file |
Definition at line 146 of file tinypede.py.
References tinypede.MilleRecord.__doublePrecision, tinypede.MilleRecord.__glder, and tinypede.MilleRecord.__inder.
|
private |
flag for storage in as double values
Definition at line 81 of file tinypede.py.
Referenced by tinypede.MilleRecord.writeRecord().
|
private |
array with values, errors and derivatives; (float32 or float64)
Definition at line 95 of file tinypede.py.
Referenced by tinypede.MilleRecord.addData(), tinypede.MilleRecord.getData(), tinypede.MilleRecord.moreData(), tinypede.MilleRecord.printRecord(), tinypede.MilleRecord.readRecord(), tinypede.MilleRecord.specialDataTag(), and tinypede.MilleRecord.writeRecord().
|
private |
position of error in current data block; int
Definition at line 91 of file tinypede.py.
Referenced by tinypede.MilleRecord.getData(), tinypede.MilleRecord.moreData(), and tinypede.MilleRecord.specialDataTag().
|
private |
position of value in current data block; int
Definition at line 89 of file tinypede.py.
Referenced by tinypede.MilleRecord.getData(), tinypede.MilleRecord.moreData(), and tinypede.MilleRecord.specialDataTag().
|
private |
array with markers (0) and labels; array(int32)
Definition at line 93 of file tinypede.py.
Referenced by tinypede.MilleRecord.addData(), tinypede.MilleRecord.getData(), tinypede.MilleRecord.moreData(), tinypede.MilleRecord.printRecord(), tinypede.MilleRecord.readRecord(), and tinypede.MilleRecord.writeRecord().
|
private |
number of data blocks in record; int
Definition at line 85 of file tinypede.py.
Referenced by tinypede.MilleRecord.addData(), and tinypede.MilleRecord.moreData().
|
private |
position in record, usually start of next data block; int
Definition at line 83 of file tinypede.py.
Referenced by tinypede.MilleRecord.getData(), and tinypede.MilleRecord.moreData().
|
private |
record length; int
Definition at line 87 of file tinypede.py.
Referenced by tinypede.MilleRecord.moreData(), and tinypede.MilleRecord.readRecord().