Sorting GammaSphere data
using the DAPHNE system


Contents


Introduction

Daphne has been expanded to be able to both 1)read GammaSphere tapes and 2)receive GammaSphere data over the network from the sender in the GammaSphere DAQ system. Thus, anph15 and Guppy can now receive and sort your on-line data just like the con2 sparc station could at LBNL using the ORNL software package. Con2 is still available for this purpose, -- we have only expanded on the possibilities for on-line and off-line sorting at ANL.

This Web page is only meant to give a simple introduction on how the DAPHNE sorting on the Alpha machines is started. The full documentation of how the sorting programs as well as how setup command files are constructed (from scratch) are documented ON the anph15 and Guppy machines in the directory: "daphlp:". As of the time this WEB page was written, the help files were:

As you can see, these documents are also available from this WEB page; but be aware that they may not be up to date! However, it is sometimes convenient to have the help documents served on the WEB -- even if they are not completely up to date. The purpose of this web page is only to give a short introduction to the on-line and off-line sort capabilities of DAPHNE; please consult the above manuals for more details.

The DAPHNE system is mostly maintained by Tom Moog (who made it possible for DAPHNE to process GAMMASPHERE data); --- BUT all DAPHNE questions should be directed to KenTeh, Dariusz Seweryniak, Mike Carpenter or Torben Lauritsen. Tom Moog works on an consultant basis and only Ken (or Torben in Ken's absence) can call him in to fix DAPHNE problems. Keep in mind that there are lots of DAPHNE experts in the lab, ask around if you have problems.

A simple on-line Session Example

Here is an example of the setup of a working DAPHNE session, much the way you would have to set a working session up after a power failure:

The Setup file

The setup file contains some instructions for DAPHNE and creates all the spectra that DAPHNE sorts into. It will look something like this:
$!
$! Save file in command file format
$! Created 14:02:16 1-JUL-97
$!
$ DAP/NOBAN TL_
$ WRITE SYS$OUTPUT " "
$ WRITE SYS$OUTPUT "In response to questions "
$ WRITE SYS$OUTPUT "  You may enter NONE to skip that step"
$ WRITE SYS$OUTPUT "  You may enter a carriage return to use the previous value"
$ WRITE SYS$OUTPUT "  You may enter a new value"
$ WRITE SYS$OUTPUT " "
$ MAX -
        /H1=500 -
        /M1=500 -
        /SP=30 -
        /TAB=57 -
        /CODE=30 -
        /FIX=100 -
        /FLT=100 -
        /DSP=20
$ PSEUDOEVENT
$ WRITE SYS$OUTPUT "Name of previous userfunction was GS1 "
$ INQUIRE FILE "Name of userfunction (or NONE) "
$ IF FILE .EQS. "NONE" THEN $GOTO END_USERFUNC
$ IF FILE .EQS. "" THEN FILE:=GS1
$ USERFUNC 'FILE'
$ END_USERFUNC:
$ EVS 0/FIX=999 /QSC=1
$ H1 /NAME=EHI1 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHI2 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHI3 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHI4 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHI5 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHI6 8192 /NOZEROS /NOOVERFLOW
.
.
.
.  (lots of spectra defined here)
.
.
$ H1 /NAME=ESI109 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=ESI110 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=TGE110 8192 /NOZEROS /NOOVERFLOW
$ H1 /NAME=EHIALL 8192
$ H1 /NAME=TGEALL 8192
$ H1 /NAME=ESIALL 8192
$ M1 /NAME=TGE110 220/PSEUDO TGE110
$ H2 /NAME=EG_EG 2048 2048 /NOOVERFLOWS /NOZEROS ! Area 16384 pages
$ SP/DEFAULT /XLO=0 /XHI=2048 /YLO=0 /YHI=2048 /XBINS=800 /YBINS=800
The entire setup file can be viewed/down-loaded here: gs1.setup.

The H1 command creates spectra with a name, length and some attributes. The gs1.setup file was generated by DAPHNE from a running setup by typing: "sav/com gs1".

The Sorting Program

The gs1 sorting program is compiled as:
   fortran gs1
   @dapexe:gsUserFunc.lnk  gs1
and you have to make it the current sorting program by issuing the command:
   userfunc gs1
if you change it.

Here is the gs1.for program used in this example. It sorts into the following histograms:

and which are spectra specific to the individual detectors. The numbers run from 1 to 110.

The program has several (optional) "entry" points. See the gs.mem document for details. The program is making heavy use of the "h1Inc" command to increment the standard spectra. H1Inc is used rather then maps and pseudo events for efficiency.

Sorting Online Data

To start the online acquisition type:
    acq/gs
after you have set up your DAPHNE session as described in A simple Session Example

Exiting DAPHNE

To stop the sorting type: stp

To completely exit DAPHNE type: ext

FAQ

[1]: If your display failed with weird messages: MAKE SURE YOU DO NOT HAVE NETSCAPE RUNNING. Netscape is very-very bloated and takes up far to many resources.

[2]: Daphne is running but I see no data: Make sure the GammaSphere data sender is on and is sending it's data to the Alpha workstation you have DAPHNE running on.

[3]: The simples example does not use any pseudo vector for update ot the spectra. Thus, no maps are needed either. However, there must be one map in the setup file or DAPHNE will not start up. This is the reason for the line "$ M1 /NAME=TGE110 220/PSEUDO TGE110" in this version of the setup file.


[email protected], 2-4026, beeper 4-4026 or Bmail: [email protected]