Last Updated on Monday, February 16, 2004 at 23:52:56. by Author: Burt Holzman
(Expert)
The event distributor should be running in a window on phonl1. The output looks something like:
polling fServer ... pollresult: 1 fServer[0].revents:01. The EvtDistrib on the master alarmer will turn orange and alarm.
2. Some of the online clients will turn orange and the date/time in the lower
left of their status bar will not be updating
When this alarm has occurred, the distributor is probably just fine, but the DAQ has hung up. When you recover from the DAQ crash by restarting the GUI, the distributor will once again be happy. If that's not it: to restart the distributor in case all hell has broken loose (this will kill any online clients running on phonl1 as well -- so you'll need to restart them afterwards.)
1. Call Burt. He wants to know about this.
2. Open an xterm on phonl1.
3. Type:
killall -USR1 rootn.exe
dist
Process the data taken, to see how to do this see Procedure for getting standard Trigger Plots
> cd $PHAT2HOME/macros/online/dev
> rootn.exe -q phever.C
(In principle, this action is enough for everyday. By default phever will try to access the port 9000, where the event is produced by Burt's TPhOnDistModClient. The event has TrgEventData, PCALEventData, T0EventData, TOFEventData, so phever run fast with this standard mode)
> rootn.exe 'phever.C("7373")'
(This will access the port 7373. Since the default event distributor process only TrgEventData, so Phever will process PCAL, T0, TOF, data unpacking, and produce PCALEventData, T0EventData, TOFEventData. In this mode, phever will be very slow)
> rootn.exe 'phever.C("/data/RAWDATA/PhoRaw0012345s000.pdaq")"
(This will process a RAW data, and produce a summary plot and a root file with all histograms. The output file names are "Phever0012345s000.root" for histograms and "Phever0012345s00.ps" for the summary plot. It's a good idea to do this job with batch mode, ie, rootn.exe -b, when you need only the summary plot. You can stop at anytime to exit the job and to get the summary plot)
> rootn.exe 'phever.C("")'
(If you like much phever and want some more fun, try this at your cost)
Now and forever, this will be done on phucsia.phobos.bnl.gov in the shift
account.
Furthermore, we have combined this with the silicon analysis.
All that is needed is to go to the $PHATHOME/macros/trg
directory and type
.x trgsi_analyze.C(run, seq)
where
run = the run number of the recently finished data
seq = the sequence number
This will place two files TrgTree_RUNsSEQ.root and TrgAnalyze_RUNsSEQ.root
into a directory specified by the environmental variable TRGTREE. This
should be set up in the shift account already.
After this, you should run two other macros:
.x trg_rhicplots_calibrated.C(run, seq)
.x si_analyze_plot.C(run, seq)
The first will analyze all of the events and place a page or two (under
development) of standard plots back in $TRGTREE as .ps files.
The second will analyze the TrgSiAnalyze_RUNsSEQ.root file and make
two pages of silicon plots.
If there are problems over the weekend, ask peter.
Please send all comments and suggestions regarding this page to Peter. |