What is it?
This page refers to histograms built in the ROD, using event data captured using triggers not directly controlled by the SBC.
How to do it?
There are two methods.
- Request a predetermined number of triggers from an external source. The tim option is set to 1 and the trigger source is set to TIM_EXTERNAL.
- Use an asynchronous scan, this histograms as many events are received, until told to stop. api.startAsyncScan() returns a monitor object which has methods nextBin() and finishScan().
Currently there are three scripts runnable from the beanshell window. These scripts are in SctApiIPC?/scripts/
.X onlineHisto.java will start a scan using method 1) that watches the TIM for 10 events which get histogrammed in each of two bins.
[ Also see PreTriggerNoiseTest? ]
.X onlineHistoAsync.java starts a scan using method 2). This stores 5 seconds worth of data in each of 11 bins. In order to work around a problem, this asserts busy on the TIM while the bin is changed.
[ Strangely this doesn't seem to be necessary for onlineHisto.java ]
.X physicsModeTimingScan.java extends onlineHistoAsync.java by providing information in a TestData object.
[ This needs extending to actually change the ST_TX_DELAY BOC parameter appropriately [ Should BOC parameters be allowed to change in physics mode? ] ]
.X testAsyncScan.java is an early version of onlineHistoAsync.