Event Display for Radiative Phi

D.S. Armstrong


New Features:


Geometry:

The current geometry definitions (see figure) are outlined as follows:

  1. The origin is at the center of the target.
  2. The Z-axis is along the beam, that is, going from target to LGD.
  3. The Y-axis is straight up, toward the ceiling.
  4. To make the coordinate system right-handed, the X-axis is to the south (we are in Virginia, y'all), that is to the left, when looking at the LGD from the target.
  5. Each LGB will have the ID-number: ID = column + NC*row , where NCis the total number of columns. The row number will start with 0th row from the bottom, and the column number will start with 0th column from the north side, i.e. left side, when looking at the detector from the beam dump. This allows the coordinate system and LGB ID system to increment in the same direction.
Events are displayed on a simplified drawing of the detector using both colors and symbols to represent raw and analyzed data. The drawing - though not to scale - provides a good picture of the geometry of the different detectors. The LG-detector itself is drawn as small squares with the beamhole and the target in the middle. The surrounding hexagon symbolizes the RPD (recoil proton detector).

The color of each LGB, represents the amount of energy deposit in that LGB. The color bar to shows the energy scale. For calibrated data, it is given in MeV; otherwise the colors simply represent ADC channels above pedestal. The data are (by default) pedestal-subtracted; only the LGBs that had a nonzero energy deposit above pedestal are colored; the rest remain white. Pedestal subtraction can be turned on/off via the Options Menu.

Each cluster of colored blocks corresponds to a photon hit, and the pattern recognition program (the Clusterizer) can then reconstruct position and energy of the photon. This analyzed data is represented by a circle centered on the reconstructed photon and with a radius proportional to its energy.

The color of each RPD segment represents the ADC value; it is not pedestal-subtracted, and the scale is quite different than that for the LGD.

The RPD is no longer in use; therefore, Event checks the run number and displays the proper detector configuration using the BSD and BGV for more recent runs.

The BSD and BGV are now being displayed on the main view with the LGD.  Each of these detectors is represented by a 24-gon surrounding the LGD.  The inner most 24-gon represents the straight counters of the BSD.  The color of each BSD segment represents the ADC value; the scale is set up to show a wide spectrum for the ADCs although it is not the same as that used for the LGD.  The 24-gon located in the middle represents the downstream counters of the BGV while the outermost 24-gon represents the upstream counters of the BGV.  Again, the color of each segment of the BGV represents the ADC value while using a very different scale from that used for the LGD.  If a TDC hit falls within a time window determined by the run, the BSD and BGV segments are drawn with a white bar with black ends.  For more detailed information about the BSD, there is a BSD view that can be opened.

The Filename, Run number, Event number and the trigger type (Physics, LGD Laser monitor, Pedestal, Basetest/Scaler) are indicated above the detector.

CPV and UPV Displays:  The CPV and UPV views have now been created. Each view is a two dimensional representation of the detectors, looking down stream. The CPV is scaled to match the Lead Glass Detector as it is in reality. Similarly, the UPV is drawn to scale with the rest of the views. Both the CPV and the UPV displays are equipped to display ADC hits and TDC hits (within a specified time window) graphically and textually. The ADC hits are represented on a color scale where white is zero and red is a specified maximum. In order to show both TDC and ADC information simultaneously, a colored vertical striped pattern is used. If a TDC hit falls within the time window (determined by the run), the CPV or UPV paddle is drawn with the vertical stripe. The color of the stripe is determined by the ADC value corresponding to that particular paddle. If no TDC is discovered, the paddles display a solid color corresponding to the ADC value. To determine the exact value of the ADC and TDC hits, mouse feedback has been installed. Moving the mouse pointer over a paddle will display the paddle's number designation, its ADC and TDC values.

CPV and UPV BUGS For some reason, the feedback windows fail to initialize properly on startup of the Event display and does not display any information. It seems to do this randomly although suggestions of a hidden memory leak deep within Hv.h have been made. It could also have something to do with how and from where you attempt to use the program. Unfortunately, the only method that has been known to correct this situation involves quitting Event and restarting it. Most of the time, Event works fine.

The only other problem noticed is an erratic behavior involving the textual feedback of the TDC hits in the CPV display. Previously, a non TDC hit was displayed as "0.0 ns". This was deemed to be potentially confusing so attempts are being made to display a "blank" instead. This has made the TDC feedback in some paddles to flash a blank when the cursor is moved or to flash the value when moved. The values are correct but hard to look at when they flash.

BSD Display:  The BSD view has now been created.  The view is a two dimensional representation of the detector with the BSD cylinder shape unfolded.  The view is drawn with the straight, left, and right counters of the BSD shown as they overlap and lay in reality.  In each straight counter there are 9 pixels.  The lower left hand corner of the view is the pixel containing the overlap region between S0, R0, and L0.  The counters are all numbered from left to right in increasing order starting with  this pixel.  The bottom of the window is the upstream end of the counters while the top of the window is the downstream end of the counters.  The  BSD display is equipped to display ADC hits and TDC hits (within a specified time window) graphically and textually.  The ADC hits are represented on a color scale where white is zero and red is a specified maximum.    In order to show both ADC and TDC information simultaneously, a horizontal hatching system is used.  If a TDC hit falls within the time window (determined by the run), the BSD counter is drawn with horizontal stripes.  The the color of the stripe of the straight counters is determined by the ADC value corresponding to that counter.  The color in the right and left counters is also determined by the ADC value corresponding to that counter while the stripes are actually black.  If no TDC value is present, the counters display a solid color corresponding to the ADC value.  In order to determine the exact value of the ADC and TDC hits, mouse feedback has been installed.  Moving the mouse pointer over the counters will display the pixel designated by the correct straight, right and left counter with each counter's ADC and TDC value.

Tagger Display:
 
 

The Tagger view has been created as a two dimensional representation of the photon tagger.  The view is drawn with the right counters of the tagger above the left counters of the tagger.  The tagger counters are numbered from 1-19 increasing from left to right in the view.  The counters also decrease in (photon) energy moving from left to right across the view.  The tagger display is equipped to show  TDC hits (without a specified time window) both graphically and textually.  The TDC hits are represented by the color of the counter on a color scale where red is a specified maximum and white is zero.  In order to determine the exact value of the TDC hits, mouse feedback has been installed.  Moving the mouse over the counters will display the counter's number and position (right or left) designation with each counter's TDC channel and TDC value.  The feedback now also displays the energy of a photon in the tagger relative to the initial beam energy.

A beam energy select button is also available in order to adjust the beam energy for older runs.  Currently the default value is 5.5 GeV. Still to come: The beam energy is read from a data file.

Note: The TDCs in the feedback are currently being displayed in nanoseconds where the TDC channel is read and then converted to nanoseconds using a scaling factor specific to each detector. The CPV, UPV, and BSD are all 0.5ns per count while the tagger is 0.2ns per count.

Features:

NOT YET DOCUMENTED FEATURES:

Known Bugs and Planned Improvements:

The Code:

The program Event is an event display for the Radiative Phi Decay Experiment.
The original version was written by Troels Petersen, and has since been heavily modified by David Armstrong, Sandy Sligh, Jennifer Knowles, Lisa Kaufman, and Dan Steiner.

Note: A color monitor (at least 8-bit 256 color) running X-windows is required!

To start the program, simply type:
Event
assuming you have already done
source ~radphi/setup
to setup the RADPHI environment variables etc. The display will appear in a new window. To exit the program, choose `Action' in the menu, and then press `Quit'. An alternative method to exit is to click with the right mouse button on the blue background to the view and choose Quit...

Data can come from an itape file, and itp file, from standard input (stdin) or from online data provided by the DD-ring and the Dispatcher program.

The compiled program consists of five subprograms, where setup.c contains the main program. The other four subprograms Event.h, main.c, init.c and feedback.c are minor routines controlling the 'surroundings' of setup.c.

To rebuild the executable after changing or adding code, one will have to type
make Event

The compiled program consists of five subprograms, where setup.c contains the main program. All the code is checked into CVS. The other four subprograms Event.h, main.c, init.c and feedback.c are minor routines controlling the `surroundings' of setup.c. The graphics is based on Hv ( HotViews; Hv is a library package of extra, mainly graphics, routines for C, developed by David Heddle. It is layered on top of X and OSF Motif. See Computers in Physics, 10, 174 (1996). The CLAS Event Display ced was also written using Hv.

Much of the detector geometry, calibrations etc. is at present hard-wired into the code - only the LGD pedestals and calibrations are read properly from the database...
 
 
 


Contact points for D.S. Armstrong:

Room 212  Small Hall 
Office (W&M):     (757) 221-3489
Jefferson Lab:    (757) 249-5856
FAX:              (757) 221-3540
E-Mail: 

Davidarmd@.physics.wm.edu
cation.dsla
Snail-Mail: Dept. of Physics 
College of William and Mary 
Williamsburg, Virginia 23187 USA 
last updated July 24, 1999


W&M Physics Department
armd@physics.wm.edu