The hardware modules discussed on the last page are not stand-alone. The ADC, Discriminator, and Level Translator are placed in slots of a
CAMAC crate, a "minicrate" actually as it's
The minicrate is shown in Figure 10. In between the blue ADC and the black Dataway Display (with nifty LED lights all over the front) you can see the back, the CAMAC dataway. All modules are plugged in here like Nintendo cartridges so the CC can communicate with them. (Also so they can get power.) The Crate Controller has the SCSI cable plugged into its front. Some NIM bins are still used for a couple things. The Gate Generator I used was a NIM module as was the Counter, which just counts pulses sent to it. The delay boxes were made with a NIM module shell. (They're just coils of wire.) Also, the HV power supplies are NIM modules. They don't need the NIM bin for power but they have to go somewhere. |
Windows98 is not a real-time operating system so there is no guarantee that a process will
execute within a certain time. This is only a problem for runs with a high data rate. For
air shower runs where the data rate is only 0.02 Hz or less, this isn't a problem.
The software package we use is called KmaxNT, made by Sparrow Corporation. It has a built-in code editor and its own language, Command Sequence Language (CSL). Code is written in one pane of the screen and the user interface is created in another. Things like buttons, progress bars, text fields, and histograms can be created for humans. Widgets like buttons can be tied to specific code blocks (called "events", which is really a procedure, not a data event), so when you click a button called "DoStuff1", the CSL event called "DoStuff1" will be posted to an Event Queue and executed in turn. Data is written to an "edf" (event data format) file, a peculiar binary format only usable by KmaxNT. Since my data-analyzing world doesn't revolve around KmaxNT, I have written an edf to text converter, named edf2txt. These txt files can be further converted by other programs I've written, such as txt4xl which creates a row of ADC data for each event in the run. This can be easily imported into Excel 2000. (Excel 97 is partial to database queries instead of text files.) |
Before the run is started, a write file (edf file) is opened. Modules are initialized and
discriminator thresholds are set. So here's what happens with a normal event:
|
|
I've found the quickest way to look at the data is to use Excel 2000. I can import a text file
into a template I created and see if the data looks alright. First thing is to run edf2txt
on the edf file. I brilliantly have edf2txt run when you click on an edf file. The conversion
runs automatically and you're left with a txt file with the same name as the edf. I thought
of maybe having the program ask if you also want to run txt4xl, but decided not to because
I won't be working there much longer and didn't want to spend the time to code it. So I made
txt4xl an option in the menu that comes up when you right-click on a txt file.
So I import the text file that results after the txt4xl conversion, into Excel. One thing to check with the run is that the data is consistent over the entire run, that no tube's gain fluctuated over the run. This would mean some kind of grounding problem in the tube and many further runs to see why. The graph for this is your basic ADC counts versus time. Next, the pedestals (the background) must be subtracted from each channel's data. (More on how pedestals are determined later.) Another thing to check is that the ratio of high gain tube to low gain tube on each scintillator is 10:1. This is just plotting for each event the high gain data (y) versus low gain (x). The slope should basically be 10 for points in between y=15 and y=400. The reason for stopping at 400 is the ADC can only integrate so much charge and maxes out at 1129 counts. The ratio between high and low is less and less as you move to higher counts, but is fairly consistent for points in said range. Another important plot is the one where we compare the histograms of like-gain tubes after pedestal subtraction. The shapes for all low gain tubes should look similar as should the high gains. Looking at these plots, one can determine if voltages need to be changed or if there's a problem with one of the tubes. So everything up to this point is only what to do to calibrate everything. Only now are we finally getting around to real air shower runs. The array is for students, basically. To have them working with cosmic ray detectors. This set-up is to perform runs and compare the data with expected values, in particular air shower energy versus flux. Low energy air showers are frequent and high energy showers are less so. In short, there are equations you can use to calculate the energy of an event (i.e., an air shower) based on the number of particles in the area covered by scintillator. Plot these data and compare to expected values. |
|
I've mentionned the word "pedestal" a lot in reference to the ADC charge integration. Now to
finally describe what it is and how to determine it.
If you turn off the PMT (by turning off its HV supply), you get a dead tube. Any integration of the channel associated with this tube during a GATE will give you your background for the channel because there is no signal. (The integration is affected by what cables are connected to the ADC input, so it's best to leave all cables where they normally are during a run.) This background is the minimum amount of charge on the input cable, the pedestal. (The ADC circuit doesn't seem to be able to subtract charge during the GATE, so background charge always adds.) A pedestal run is when the trigger tubes are powered but the data tubes are not. The thresholds in the discriminators are set to the lowest they can be, -10mV. This is a rate of about 50Hz, the greatest that the PC can do. The bottleneck seems to be Windows since it's not a real-time OS. Otherwise the slow downs would be with KmaxNT's Event Queue. Software is the problem. The old VAX system could only do 3Hz, so this is a vast improvement. Improvements would be using a better OS, using better data acquisition (DAQ) software, using a newer SCSI standard, and getting a faster CC and modules that support Fast-CAMAC. Also, I understand that there's something that has replaced CAMAC though I can't remember what it is. |
So that's about it. I have taken you through the entire system and what I did at LSU. The air shower array is set up for student projects. The actual research groups have two set-ups: a scanning table and a test stand. I really never got around to the scanning table. The test stand has drift chambers and I would have liked to work more with that as you can figure out actual paths of the particles. But there has been no push to set it up as it hasn't been touched since 1997.
I leave things in this state and wonder what's to become of all the work I put into it as no one else knows much about the software and the behavior of the modules.
Copyright 2002, Worldwide Center for the Study of Leif