How to take data¶
DAQ programs are in daq/
directory.
Move to this directory first.
Then execute program named adc or multiadc.
You need to specify NEVENT
(event number) and OFN
(output filename) as arguments.
Output file is created in space-separated-text format.
Sample command 1: | |
---|---|
$ cd daq
$ ./adc NEVENT OFN (additional info).
Sample command 2: | |
---|---|
If you run without any argument, it will print usage. |
$ ./adc
## --> usage will be printed
ADVANCED: | You can also set additional arguments if you want, like below |
---|
$ ./adc NEVENT OFN MPPC_ID BIAS_VOLTAGE
Save data¶
It is REALLY important to name data with easy-to-remember-and-handle convention.
(If you named test1.txt
, test2.txt
, ... and so on,
you will get depressed when you came back to check data next week.)
My favorite way is to separate data by day. (it depends by purpose, though)
I prefer OFN
to be named like ../data/YMD/ANYTHING%03d.txt
, where
YMD |
date (YYYYMMDD format) |
---|---|
ANYTHING |
any words you want |
%03d |
run number, this makes easy to use ROOT macros below. |
Overwrite data¶
DAQ program has non-overwriting feature to prevent ACCIDENTAL overwriting. In case of overwriting, remove that file first.
$ ./adc 100 SAME_NAMED_FILE
## --> Error: 'SAME_NAMED_FILE' already exists.
$ rm SAME_NAMED_FILE
$ ./adc 100 SAME_NAMED_FILE
Change ADC channnels¶
Number of ADCs and its channels are defined as variable(array) named ModId
and ChId
in adc.cc
( multiadc.cc
).
Modify these numbers and re-compile.
Sample command: |
---|
$ emacs adc.cc
$ ...(edit adc.cc)
$ make
Install CAMAC driver¶
If you restarted PC for some reason, you need to install CAMAC driver before excecuting DAQ.
We use camdrv
for CAMAC driver.
Its source is in /opt/hep/kinoko/drv/camdrv/
.
Sample command: |
---|
$ cd /opt/hep/kinoko/drv/camdrv
$ su (ask passwd to lecturer)
# make install
# dmesg
# exit