RHIC polarimetry (p-Carbon)
Last modified by Schmidke on 8-03-2022
Contents
Run History
Overview of p-Carbon polarimeters configuration: | Run 09 | Run 11 | Run 12 | Run 13 | Run 15 | Run 17 | Run 22 | Run 24 |
The most significant events during the run: | Run 11 | Run 12 | Run 13 |
Material concerning Run13 detector instabilities is here
Online Operations
The current online logbook for the p-Carbon polarimeters is available at:
There is a handful of useful links explaining how to operate the p-Carbon polarimeter:
- Instructions for online operators: 2011 2012 2013
- More advices
- Running PolarControl, the online GUI
- How to run PolarControl application
Online machines
The online machines are yellowpc.rhic.bnl.gov and bluepc.rhic.bnl.gov. For proper operation the following programs and packages have to be installed on the online machines:
- camac driver
- CDEV libraries
- ROOT, CERNLIBs binaries and libraries
- mc, gv, DHCP, tftp
Below one can find the current disk configuration in the online machines.
>>>/sbin/fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 6 48163+ de Dell Utility /dev/sda2 7 529 4200997+ c W95 FAT32 (LBA) /dev/sda3 * 530 554 200812+ 83 Linux /dev/sda4 555 60801 483934027+ 5 Extended /dev/sda5 555 60547 481893741 83 Linux /dev/sda6 60548 60801 2040223+ 82 Linux swap Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 60801 488384001 83 Linux Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 121601 976760001 83 Linux
>>>df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 453G 180G 250G 42% / /dev/sda3 190M 30M 151M 17% /boot none 1013M 0 1013M 0% /dev/shm /dev/sdb1 459G 435G 391M 100% /yd1 /dev/sdc1 917G 668G 203G 77% /yd2 bluepc.rhic.bnl.gov:/usr/local/cnipol 917G 870G 455M 100% /bd2
>>>/sbin/fdisk -l Disk /dev/hda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 60801 488384001 83 Linux Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 6 48163+ de Dell Utility /dev/sda2 7 529 4200997+ c W95 FAT32 (LBA) /dev/sda3 * 530 554 200812+ 83 Linux /dev/sda4 555 60801 483934027+ 5 Extended /dev/sda5 555 60547 481893741 83 Linux /dev/sda6 60548 60801 2040223+ 82 Linux swap Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 60801 488384001 83 Linux Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 121601 976760001 83 Linux Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdd1 1 60801 488384001 83 Linux
>>>df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 453G 251G 179G 59% / /dev/sda3 190M 30M 151M 17% /boot none 1013M 0 1013M 0% /dev/shm /dev/sdb1 459G 435G 402M 100% /bd1 /dev/sdc1 917G 870G 455M 100% /bd2 /dev/sdd1 459G 111G 325G 26% /bd3 yellowpc.rhic.bnl.gov:/home/e950/offline 453G 180G 250G 42% /home/e950/offline
Online tools
LogView is a powerful tool to display values of any "online variable" saved by the loggers. However, sometimes it is useful to dump the data in a text file. One can use the tool called exportLoggerData to get values of an online variable ("cell") for a given period. Here is an example:
exportLoggerData -logger RHIC/Polarimeter/Yellow/YelPolarData,RHIC/Polarimeter/Polarization \ -start 04/04/2011 -stop 04/07/2011 -cells "polarimeter.yel:runIdS,YelPolar" \ -excluderowswithholes -timetolerance 600000
Sometimes one need to match a LogView alias to an actual device name. This can be achieved with the following command:
WhatsBeingLogged -findrequest "PP_Voltage_Monitor_BarGraph" -history -listcells
More information on these useful tools is available at http://www.cadops.bnl.gov/Controls/doc/FillData/
CAMAC Test
Running a Test
Dima and Igor developed a program that tests memory in WFD modules in the CAMAC crates. A test is performed by writing random numbers into memory and reading them back. One can start a test on either of the online machines:
cd /usr/local/polarim/bin ./cmcmtest <module_id> <crate_id>
where <module_id> and <crate_id> are the module and crate id's
An example output without any errors should look like this:
>>>./cmcmtest 2 6 SvL-2004 -- Universal test for WFD modules (LUTs, SDRAM...) Cannot open crate 7, Reason: No such file or directory CN: 6 2 VirtMask: F Loops: 3 Analyse TIME for: LUT Dir Ind V9 Ranges: RAM: 0x0-0x4000000 LUT: 0x0-0x400 FCAMACopt: D2 FRAMopt: BothEdges BLSiz: 0x40000 WrRetry: 1 Same: 11 Mask: 0xFFFF Clk: INT Mult: 100 CSR: 0012 Pass 0 with seed 0 (first RAND 6B8B4567) LUT Wr... Rd... Errs: 0. Speed: W: 2679.73 R: 2431.89 ns/op Dir Wr... Rd... Errs: 0. Speed: W: 2027.94 R: 228.90 ns/op Ind Wr... Rd... Errs: 0. Speed: W: 2025.79 R: 182.97 ns/op Pass 1 with seed 62E7460 (first RAND 6EAABA26) LUT Wr... Rd... Errs: 0. Speed: W: 2679.73 R: 2431.89 ns/op Dir Wr... Rd... Errs: 0. Speed: W: 2025.22 R: 228.71 ns/op Ind Wr... Rd... Errs: 0. Speed: W: 2023.86 R: 183.04 ns/op Pass 2 with seed C418230 (first RAND 6195768E) LUT Wr... Rd... Errs: 0. Speed: W: 2679.73 R: 2436.76 ns/op Dir Wr... Rd... Errs: 0. Speed: W: 2027.16 R: 228.92 ns/op Ind Wr... Rd... Errs: 0. Speed: W: 2025.56 R: 182.89 ns/op <Speed>: LUT Dir Ind GCC Evt Write: 2679.7(-0.0) 2026.8( 1.3) 2025.1( 0.7) 0.0( 0.0) 0.0( 0.0) Read: 2433.5( 5.3) 228.8( 0.0) 183.0( 0.0) 0.0( 0.0) 0.0( 0.0)
Reinitializing Xilinx Chips
After powering CAMAC crates most of the modules are not initialized, so memory test will fail. To initialize modules 2, 4, 6, 8, 10, 12, 14, 16, 18, and 20 in crate 5 do:
./cmcmtest Command>cr 5 Command>bur BUR>a9 w8 n2 BUR>n4 BUR>n6 BUR>n8 BUR>n10 BUR>n12 BUR>n14 BUR>n16 BUR>n18 BUR>n20 BUR>exit Command>q
To scan only 1Mb of memory one can issue the following command:
Command>top 0x100000 Command>run
Offline Operations
The offline analysis of the p-Carbon data is done with the cnipol package developed by the group over the years. Visit the offline analysis page to learn how to run the programs.
You can find the README on how to process the offline data at the following
https://github.com/rhicspin/cnipol/blob/master/README.md
Data Location
For polarimetry dedicated analysis one can use data stored on disks mounted to RCF machines. The data is located in the following directories:
rlnxsp03.rcf.bnl.gov:/data1/run11
Run 7, Run 8, and Run 9 data can be found in:
rlnxsp04.rcf.bnl.gov:/data1/bd1 rlnxsp04.rcf.bnl.gov:/data1/bd2 rlnxsp04.rcf.bnl.gov:/data1/bd3 rlnxsp04.rcf.bnl.gov:/data1/yd1 rlnxsp04.rcf.bnl.gov:/data1/yd2
Also on the online machines check out the following directories:
Raw data is located on yellowpc:/Ydata lrwxrwxrwx 1 e950 501 14 Feb 26 2009 2007 -> /yd1/data/2007 lrwxrwxrwx 1 e950 501 14 Feb 26 2009 2008 -> /yd1/data/2008 lrwxrwxrwx 1 e950 e950 14 Mar 20 2009 2009 -> /yd2/data/2009 lrwxrwxrwx 1 e950 e950 14 Mar 20 2009 2009a -> /yd1/data/2009 A typical structure of online directories is: 189G /Ydata/2009a/data contains fill range 10019 to 10420 3.6G /Ydata/2009a/hbook 879M /Ydata/2009a/root 141M /Ydata/2009a/log 193G /Ydata/2009a/ 658G /Ydata/2009/data contains fill range 10421 to 11068 365M /Ydata/2009/log 3.9G /Ydata/2009/hbook 6.2G /Ydata/2009/root 668G /Ydata/2009/ 240G /Ydata/2008/data contains fill range 9670 to 10008 1.8G /Ydata/2008/hbook 1.7M /Ydata/2008/root 143M /Ydata/2008/log 242G /Ydata/2008/ 8.8M /Ydata/2007/data 7.5M /Ydata/2007/hbook 4.0K /Ydata/2007/root 872K /Ydata/2007/log 18M /Ydata/2007/
How to back up pC polarimeter data?
The data collected by the pC polarimeter is temporarily stored on the online DAQ machines yellowpc.rhic.bnl.gov and bluepc.rhic.bnl.gov. For the long term storage we utilize the High Performance Storage Service (HPSS) provided by the RHIC and Atlas Computing Facility (RACF). The HPSS provides an interface for transferring large files of at least few gigabytes to tape. An RACF account is required to follow the steps outlined below.
To transfer files to HPSS one needs to copy them first to any RCF machine (e.g. rftpexp.rhic.bnl.gov). Then from that machine, you may use the hsi commands. The following is a generic example that should work:
cd /dir/with/files/ nohup hsi -q -l your_login_name "mput * /dir/hpss/"
If your kerberos credentials on RCF have expired the system will ask you to enter your kerberos username and/or password. One can chose to use hsi interactively by issuing typical linux commands in the hsi shell:
cd /dir/with/files/ hsi pwd ls -la cd /home/cnipol/cni_runXX ls -la mput * .
Normally, the archived data from different runs is located in /home/cnipol. The AGS data after 2006 is stored in /home/kinyip. Use the put command to transfer single files, mput for multiple files. The system will transfer the files to the tape according to their robot schedule. For mput to avoid being asked to transfer each file do prompt off.
Since the typical size of our data files is already hundreds of MB it is recommended to simply copy the individual files without adding them to a larger tar archive. In fact, it will make the life easier if you decide to get a specific single data file in the future. However, for log and hbook files it is advantageous to first tar them in a single file for efficient transfer.
Common Problems and Troubleshooting
No pulser signal in the data
- Check that the pulser signal is not blocked in the configuration file.
- Try to take data with the internal WFD clock. Use -C option for rhicpol.
- Check if the pulser signal really comes from the generator to V124. As we learned the hard way the signal can be off if the crate in rack R12A17 is turned off. This rack is located in the room next to the counting house at IP12.
The downstream PC inside the tunnel won't boot
First check if the DHCP server is running on yellowpc. To restart the daemon execute the following commands as root:
>/etc/init.d/httpd status >/etc/init.d/httpd start
PolarControl Error: E-Can't access RHIC ADO
It looks like this error appears in PolarControl when the end of measurement is not properly reported by the cnipol daemon. Because of this the online analysis does not run and the plots are not produced. [1]
The current solution to this is to run the analysis manually from the online machine. Login as mcr to either online machine (yellowpc/bluepc) and execute the script:
acnlinc>ssh mcr@yellowpc yellowpc>/usr/local/polarim/bin/analyze.sh <runId> <pol_name>
where <run_id> is the measurement run and <pol_name> is one of the following names: polarimeter.blu1, polarimeter.yel1, polarimeter.blu2, polarimeter.yel2
For example:
/usr/local/polarim/bin/analyze.sh 15172.007 polarimeter.blu1
No carbon data while adjusting timing parameters
- Make sure the pulser signal is visible in the window
- Check that the target is not broken
- Another useful thing is to increase the integration window so it spans over both alive and empty bunches (WinBegin=0, WinEnd=100 or more, BZDelay=0)
Last modified by Schmidke on 8-03-2022