The Runlog Generator reads entire data stream for a single run and produces a RLG data structure that is written to the database. It should be run using:-
$processor_list inp upk cal rlg end
It must be fed all the sub-runs of a run.This processor will run as part of the data production process on site; its unlikely to be useful elsewhere.
It creates the following RLG data structure:-
MAST perm RLOG HIDxwhere:-
TRLG title bank
RLNR 1000 title bankThe RLNR are n-tuple banks just like NTPR. RLNR 1000 holds a collapsed n-tuple (see section 6.9) which counts selected values from the input data structure, such as the number of times a particular trigger bit was set. The collapsed n-tuple is appended to the RLOG bank during termination and so this part of the RLOG bank can be updated by updating the RLNR 1000 bank.
As currently implemented, RLG outputs all the histograms and n-tuples that it finds in the HBOOK /PAWC/ common.
If RLG is run with other processors that create histograms, they will be stored in the RLG data structure!
The TRLG bank contains switches to control the writing of the RLG data structure to the database and to update DT2R and R2DT tables that are used to convert between date/time and run number. If the output is not written to the database then the histograms and n-tuples are written to an HBOOK file instead. By default the name of this file is rlg.hbk although this can be overridden using a FILE RLG 1 command.