SND@LHC Software
|
Read millepede binary file and print records. More...
Go to the source code of this file.
Namespaces | |
namespace | readMilleBinary |
Variables | |
int | readMilleBinary.Cfiles = 1 |
Binary file type (C or Fortran) | |
str | readMilleBinary.intfmt = 'i' |
Integer format. | |
str | readMilleBinary.fname = "milleBinaryISN.dat" |
Binary file name. | |
int | readMilleBinary.mrec = 10 |
number of records (tracks) to show | |
int | readMilleBinary.skiprec = 0 |
number of records (track) to skip before | |
readMilleBinary.minval = None | |
minimum value to print derivatives | |
readMilleBinary.narg = len(sys.argv) | |
readMilleBinary.f = open(fname, "rb") | |
int | readMilleBinary.nrec = 0 |
int | readMilleBinary.nr = 0 |
readMilleBinary.lenf = array.array(intfmt) | |
readMilleBinary.length = array.array(intfmt) | |
readMilleBinary.glder = array.array('f') | |
readMilleBinary.inder = array.array(intfmt) | |
int | readMilleBinary.i = 0 |
int | readMilleBinary.nh = 0 |
int | readMilleBinary.ja = 0 |
int | readMilleBinary.jb = 0 |
int | readMilleBinary.jsp = 0 |
int | readMilleBinary.nsp = 0 |
list | readMilleBinary.lab = [] |
list | readMilleBinary.val = [] |
Read millepede binary file and print records.
Hardcoded defaults can be replaced by command line arguments for
Description of the output from readMilleBinary.py
'==='
followed by record number and length (<0 for binary files containing doubles)'-g-'
followed by measurement number, first global label, number of local and global derivatives, measurement value and error. The next lines contain local and global labels (array('i')) and derivatives (array('f') or array('d')).'-l-'
followed by measurement number, first local label, number of local and global derivatives, measurement value and error. The next lines contain local labels (array('i')) and derivatives (array('f') or array('d')).Tested with SL4, SL5, SL6
Definition in file readMilleBinary.py.