titles_tupk


                              Titles:  TUPK
                              =============
 
    Contact:  N. West  Oxford.

 
    Revision History:-
    ================
 
    2.07  N. West     First version.
    3.01  N. West     Add MAKE_PBUN and spare words.
    4.02  N. West     Add REBUILD_10MHZ_CLOCK
    5.00  N. West     Add USE_NCD_GTID.
    5.02  N. West     Add FILL_RMTC_NTUPLE and REBUILD_50MHZ_CLOCK
                      Add ntuple sample rate flag


 
Titles Files
------------
 
unpacker.dat
 
 
Verification
------------
 
 
Description
-----------
 
    This bank contains input data for the event unpacker.
 
Data Words
---------
 
        Data types: B(bit), I, F, D(double), H(hollerith 4 char)
 
        Fixed length Database Header.  See titles_dbhdr.html.
 
 
 Word   Mnemonic      [symbolic command]  Description
 ----   --------      -------------------------------
        KTUPK...

   1  I _MAKE_PBUN     [upk_make_pbun] Create PBUN banks? =0 no, =1 yes
   2  I _TUBES_OFF     [upk_tubes_off] Disable tubes flagged as off? =0 no, =1 yes
   3  I _ REBUILD_10MHZ_CLOCK          Force rebuild of 10MHz clock?
                                         =-1 Don't rebuild even in run in RTMC.
                                         = 0 Rebuild if run in RTMC or clock missing or grossly
                                             different to the calculated value.
                                         = 1 Rebuild even if not in RTMC and looks O.K.
   4  I _USE_NCD_GTID [upk_use_ncd_gtid] = 1 Use NCD GTID and time if no PMT GTID.
                                         = 0 Leave data without PMT GTID as orphan

   5  I _FILL_RMTC_NTUPLE                = 0 No ntuple filling
                                         = ID + 10000*sample_rate_flag
                                           Where
                                             ID                Ntuple to be filled (should be 199) - see ntuple.dat and note below.
                                             sample_rate_flag  = 0 Take every event
                                                               = 1 take every 100 th event
                                                                 (A long run can overflow ntuple if not sampled)

   6  I _REBUILD_50MHZ_CLOCK           Apply continuity check to 50MHz clock:-
                                         = 0 Don't apply
                                         = 1 Apply and replace bad ones with last good one.
                                         = 2 Apply and abort event if bad one found.
7..10 I                Spare.


Note on running with _FILL_RMTC_NTUPLE  

Example .cmd file:-

  file inp 1 ...
  $event_limit 0
  define event_loop
    call INP
    call UPK
    call ANL
  end_def
  $disable_ntuple 500
  $enable_ntuple  199
  set bank TUPK 1 word 5 to 199
  @run_snodb


 

Go Back to the Snoman Companion Top Page