The Event Display is typically run from the "shift" account on the Online#1 computer using the command pcalDisplay which does nothing more than run $PHAT2HOME/macros/pcal/pro/pcal_online.C (not to be confused with the Online monitor macro $PHAT2HOME/macros/online/dev/pcal_onlClient.C).

This code unpacks the event and then fills two histograms, one with the ped subtracted ADC's for one event and one with the ped subtracted ADC averaged over 200 events.  This process is run independently for PCAL_P and PCAL_N and the results are displayed in a 2x2 canvas.

The number of events to average, and min/max ADC cuts are inputs to the routine.