Last Updated on Tuesday, August 19, 2014 at 15:51:31.
Table of contents:
Login to the phobosx as user phobos
Locate terminal windows:
(if windows are not exist then start it using following commands:
dtterm -name phatdaq -sl 10000 &
dtterm -name runcontrol -geometry 80x12 &)
Start event builder phatdaq in the phatdaq window:
Start run control macro in the runcontrol window:
After that command, the event builder will be waiting until all ROCs are connected. You should wait until it say 'Ready to start'
To enter commands you can use menu buttons (or type them directly in the runcontrol window)
Note. Due to known start/stop event mismatch problem, to take the normal run you need to exit all ReadOut Controllers, and restart all of them (including phatdaq) again.
If online monitoring is required, make sure that the online computer is ready to analyze data.
Enter one of the following start run commands:
Use following command to see if events are being recorded.
rc_status()
You also should see increased CPU, Disk and Packet activity in the performance monitor.
The phatdaq will report periodically (each 10 MB) updating of the data file. When the data
file approaches 2GB limit, it will be automatically closed and a new file with incremented
sequence number will be open. Make sure that there is enough free space on the disk,
otherwise the program will halt.
rc_stop_run()
If necessary, write out run comments to database using WWW browser at https://www.bnl.gov/phobos/Secure/ASP/run_logbook_comment.asp
Suppose you are currently taking the normal run.
Find the 'pedcalc' window icon on the left side. In that window:
Find the 'pedcalc' window icon on the left side. In that window:
The pedestal run should be taken and calculated regularly. During the calculation phase the pedestal data will be automatically sent to the online computer for up-to-date pedestal setting
Make sure that phatdaq and roc_silicon are running.
In runcontrol window enter:
rc_start_pedestal_run()
(pedestal run with writing)
Run will be stopped automatically after 1000 events (5 sec). To check if it stopped - use rc_status() command
You can start taking calibration data now (see Calibration Run), during that time you can calculate pedestals running PHAT macro in the 'pedcalc' terminal window:
The calibration run should be taken regularly. During the calculation phase the gain calibration data will be automatically sent to the online computer for up-to-date calibration setting
Make sure that phatdaq and roc_silicon are running.
In runcontrol window enter:
rc_start_calibration_run()
(calibration run with writing)
Run will be stopped automatically after 6000 events (8 min). To check if it stopped - use rc_status() command.
from default directory:
/export/home/phobsink/bin/write_to_RCF /data/0
(and from other disks if required)
/export/home/phobsink/bin/write_to_RCF /data/1
/export/home/phobsink/bin/write_to_RCF /data/2
/export/home/phobsink/bin/write_to_RCF /data/3
/export/home/phobsink/bin/write_to_RCF /data/4
/export/home/phobsink/bin/write_to_RCF /data/5
/export/home/phobsink/bin/write_to_RCF /data/6
/export/home/phobsink/bin/write_to_RCF /data/7
Write down to the logbook.
general commands:
To exit phatdaq and all connected ROCs
rc_exit()
To start
a run without writing:
rc_start_run_without_writing()
rc_start_pedestal_run_without_writing()
rc_start_calibration_run_without_writing()
To stop run:
rc_stop_run()
To print the run status
rc_status()
To contact DAQ experts:
In that case the next run might have the same run number and therefore the previous
file may be overwritten. To be safe, you need to rename current file and make a short run
just to increment global run number.
to rename the file:
>mv PhoRaw000###s00#.root PhoRaw000###s00#crashed.root
Try to stop the run first:
rc_stop_run()
Exit phatdaq but keep readout controllers running:
rc_exit()
Do you want to exit all ReadOut Controllers? [y/n] >n
Do you want to exit phatdaq? [y/n]>y
If phatdaq did not exit, try to <Control C> the phatdaq. If this does not work,
kill it from other terminal window. To do that, locate a process ID for the
/export/home/phobos/phatdaq/phatdaq, then kill it:
>ps -ef | grep phatdaq -
>kill ### - where ### is the process ID
Restart the phatdaq again:
>$PHATDAQ/phatdaq 2
Restart, if necessary, runcontrol and init phatdaq:
.x runcontrol.C
If you get 'Ready to start' in phatdaq window - you are in
business again, but for safety do following:
rc_start_run_without_writing()
rc_stop_run()
After succesful completion of above operation you can continue the regular work.
If you don't get 'Ready to start' in phatdaq window - then you need to restart or reboot ROC. When it is got up again, you will see this 'Ready to start'.
Exit all ReadOut Controllers using rc_exit() command and answer 'y' to first prompt.
Locate Silicon_roc terminal window.
(Try it first, you may use <ESC>K to retrieve previous commands)
sp ph_roc
You should get "Waiting for Server command" message in Silicon_roc window.
Press the 'RST' button MVME 2600-2 module (leftmost in the crate). The ph_roc will start automatically. The full reboot takes 3-5 minutes. After that time you should see a message in the phatdaq window saying that Silicon ROC was registered.
The hardware reset is not recommended, contact Andrei first.
By the way turning on and off the FASTBUS power supply might help.The ReadOut Controller
will start automatically after 2-3 minutes.
If you get the message 'error reading file' during the cp command, most likely case is that /data/7 is full.
>$PHATDAQ/phatdaq 2 0
The tape capacity is between 35GB (uncompressed) and 70GB(compressed). The full disk is about 15 GB.
Normally you don't need to change it. If phatdaq encounter s that the file is already exist it will increment current run number. If after 10 attempts it still cannot open file then you, probably need to change global number.
cd $PHATDAQ
mv config/phatdaq_runlog.root config/phatdaq_runlog.root.save
phat
.x runlog_write.C(runnum)
The next time you start phatdaq the global run number will be runnum+1;