Re: What is format of unformatted EVENTBIN file?

From: Alberto Fasso' (fasso@SLAC.Stanford.EDU)
Date: Mon Feb 14 2005 - 03:29:16 CET

  • Next message: Joseph Comfort: "Birks corrections in 2-D binning"

    I forgot to answer your second question:

    > In addition to reading a file from a single EVENTBIN command, what is
    > the structure if binnings from 2 or more EVENTBIN commands are given?

    I guess you mean if you have printed them on the same logical output unit.
    Suppose you have two EVENTBIN detectors:

     1st record: RUNTIT, RUNTIM (1st detector)
     2nd record: RUNTIT, RUNTIM (2nd detector)
     3rd record: NB,TITUSB(NB),JTUHLP,IDUSBN(NB),SNGL(XLOW(NB)),SNGL(XHIGH(NB)),
                 NXBIN(NB),SNGL(DXUSBN(NB)),SNGL(YLOW(NB)),SNGL(YHIGH(NB)),
                 NYBIN(NB),SNGL(DYUSBN(NB)),SNGL(ZLOW(NB)),SNGL(ZHIGH(NB)),
                 NZBIN(NB),SNGL(DZUSBN(NB)),LNTZER(NB),SNGL(BKUSBN(NB)),
                 SNGL(B2USBN(NB)),SNGL(TCUSBN(NB)) (1st detector)
     4th record: NB,TITUSB(NB),JTUHLP,IDUSBN(NB),SNGL(XLOW(NB)),SNGL(XHIGH(NB)),
                 NXBIN(NB),SNGL(DXUSBN(NB)),SNGL(YLOW(NB)),SNGL(YHIGH(NB)),
                 NYBIN(NB),SNGL(DYUSBN(NB)),SNGL(ZLOW(NB)),SNGL(ZHIGH(NB)),
                 NZBIN(NB),SNGL(DZUSBN(NB)),LNTZER(NB),SNGL(BKUSBN(NB)),
                 SNGL(B2USBN(NB)),SNGL(TCUSBN(NB)) (2nd detector)
     5th record: NB, NCASE, SNGL(WEIGHT) (1st detector)
     6th record: NB, NCASE, SNGL(WEIGHT) (2nd detector)
     7th record: binning data 1st event (1st detector)
     8th record: binning data 1st event (2nd detector)
     9th record: NB, NCASE, SNGL(WEIGHT) (1st detector)
    10th record: NB, NCASE, SNGL(WEIGHT) (2nd detector)
    11th record: binning data 2nd event (1st detector)
    12th record: binning data 2nd event (2nd detector)
    ...etc

    However, I don't think it is a good idea to direct all the outputs to the same
    file. It is easy to write a program which reads alternatively from 2 or more
    files. But if having only one file is so important for you (why?), you can
    print the output of each detector to different files, and then concatenate them
    into a single file using the cat command. Results referring to the same event
    can be easily connected, since they have the same value of NCASE.

    Alberto

    -- 
    Alberto FassÚ
    SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025
    Phone: (1 650) 926 4762   Fax: (1 650) 926 3569
    fasso@slac.stanford.edu
    

  • Next message: Joseph Comfort: "Birks corrections in 2-D binning"

    This archive was generated by hypermail 2.1.6 : Mon Feb 14 2005 - 09:34:55 CET