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:
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.
$! $! 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=800The 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".
fortran gs1 @dapexe:gsUserFunc.lnk gs1and you have to make it the current sorting program by issuing the command:
userfunc gs1if you change it.
Here is the gs1.for program used in this example. It sorts into the following histograms:
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.
acq/gsafter you have set up your DAPHNE session as described in A simple Session Example
To completely exit DAPHNE type: ext
[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.