![]() | ![]() | ![]() | SEETFDAQ spectra | ![]() |
The following spectra have been defined for the SEETFDAQ version of SpecTcl:
Some of the spectra described above are controlled by parameters. These parameter are read from Tcl variables. The values of the parameters can be set via the Tcl set command. The paragraphs below describe:
[htb] set name$value$% set ppac.x.scale1 .8993 .8993 % set ppac.x.scale1 .8993 %
Several TCL Variables control the way spectra are incremented. You will naturally want to save the value of these variables so that they can be re-used in later runs of SpecTcl. Several command procedures have been implemented to support this:
The save files are simple Tcl scripts. The variables saved can be restored via the tcl source command. For example in the SpecTcl command window:
[htb] % source opparams.tcl
reloads the default settings for these parameters.
The sample shows two forms of the set command. The first form sets the value of the variable ppac.x.scale1 to .8993. The second form displays the value of the variable without mofidying its value.
The PPAC position spectra require a calculation of the position. For a given pair of signals (e.g. l and r for left and right), The position calculation is done as follows. First calibrated left and right positions are computed as follows: lc = (l+pl)*ml + cl
lc = (l + pl)*ml + cl]
rc = (r + pr)*mr + cr]
Where pl, prpl, pr] are random values uniformly distributed between 0 and 1. And the m's and c's are calibration slopes and offsets respectively. Next:
slr = lc + rc
slr = lc + rc]
If this value is too small, smaller than slrminslrmin] the computed position is considered invalid. If the position is valid, the final value x is computed via: x = ((rc-lc)/slc)*xm + xo
x = mx ((rc - lc))/(slc) + ox
where xm, xomx, ox] are additional linear calibrations for the final position.
The SpecTcl variables are as follows:
equation variable | SpecTcl Variable |
mlml] | ppac.x.scale1 |
mrmr] | ppac.x.scale2 |
clcl] | ppac.x.offset1 |
crcr] | ppac.x.offset2 |
mumu] | ppac.y.scale1 |
mdmd] | ppac.y.scale2 |
cucu] | ppac.y.offset1 |
cdcd] | ppac.y.offset2 |
slrminslrmin] | ppac.x.minsum |
sudminsudmin] | ppac.y.minsum |
xmmx] | ppac.x.slope |
xoox] | ppac.x.offset |
ymmy] | ppac.y.slope |
yooy] | ppac.y.offset |
The PPAC profile spectrum is essentially a compressed PPAC position spectrum. For each position axis, the position value (e.g. xx]) is multiplied by a constant pscalepscale] and then histogrammed. The two scale variables are called: ppac.x.profilechans and ppac.y.profilechans respectively.
Scaler trendline spectra show the time evolution of the count rates in the scintillator scalers. The periodic scaler increments are summed into a channel for a fixed dwell time that can be set. When time of the sum exceeds the dwell time, either the next channel is selected or, if the previous channel was the last channel, the spectrum is shifted left one channel and the last channel is used again.
Note that the scaler trendline spectra are destroyed and created at the beginning of each run, in order to allow you to change the number of channels of trend information maintained. All four trend spectra are controlled, therefore, by a channel count and a dwell time. The channel count is the TCL Variable see.trend.Channels. The dwell time (in seconds) is see.trend.SecondsPerChannel.
![]() | ![]() | ![]() | SEETFDAQ spectra | ![]() |