SND@LHC Software
Loading...
Searching...
No Matches
readMilleBinary.py File Reference

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 = []
 

Detailed Description

Read millepede binary file and print records.

Author
Claus Kleinwort, DESY, 2009 (Claus.nosp@m..Kle.nosp@m.inwor.nosp@m.t@de.nosp@m.sy.de)

Hardcoded defaults can be replaced by command line arguments for

  • Name of binary file
  • Number of records to print (-1: all; <-1: all, record headers only)
  • Number of records to skip (optional)
  • Mininum value to print derivative

Description of the output from readMilleBinary.py

  • Records (tracks) start with '===' followed by record number and length (<0 for binary files containing doubles)
  • Measurements: A measurement with global derivatives is called a 'global measurement', otherwise 'local measurement'. Usually the real measurements from the detectors are 'global' ones and virtual measurements e.g. to describe multiple scattering are 'local'.
  • 'Global' measurements start with '-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')).
  • 'Local' measurements start with '-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.