Expert Procedures » History » Version 65
- Table of contents
- Expert Procedures
Powering on/off the detector¶
Synoptics control of the detector supplies has been flaky (and had cross talk with the ND). I lieu of using synoptics there are scripts that can (should) be used.To power on:
- Log in: novadaq@novadaq-test-master
- To power on the LV (24 and 3.5 V) do: power-on-LV_all.sh (for just 1/3, use power_on-LV_dcm-5-01-0(1/3).sh)
- To power on the HV do: power-on-HV_all.sh <Volt> (for just 1/3, use power_on-HV_dcm-5-01-0(1/3).sh)
- You must supply a voltage for the HV script (typically use 425)
- Log in: novadaq@novadaq-test-master
- To power off the HV do: power-off-HV_all.sh
- The HV needs to drop to less than 200V before turning off the LV
- The HV voltage fall rate is 5 V/s so you should wait ~45s before powering off the LV (or be extra safe and wait 1.5 minutes for the HV to come all the way down)
- To power off the LV (24 and 3.5 V) do: power-off-LV_all.sh
- Alternatively there are icons on cr-01 that can be use to power off and monitor the state of the power supplies
- Again the HV gets turned off first then wait until it drops sufficiently
- Use the "Check Power Supplies" icon to monitor (it is not updating so you will need to run it again when you want to update)
There are also power-<on/off>-<LV/HV>_dcm-5-01-XX.sh scripts that can be used for individual DCMs
Power cycling the MWPC controller¶
The MWPC controller has been known to get into a bad state, albeit not very often (British sarcasm), e.g. with the timestamps between the controller and the TDCs no longer align. More detailed information on this page: MWPC Configuration and Registers; this page contains just relevant information for power cycling.
To log into the MWPC controller: from novabeamlinedaq00
telnet ftbfwc03 5002
(the DAQ uses port 5001 so don't use that one).
To power cycle the TDCs:
To power cycling the controller: this requires logging into the remote power strip in the rack. This can be done on the Firefox machines on the VNCs, or by creating an SSH tunnel on your local machine.
To do the latter, first set up a tunnel:
ssh -D <port> -f -C -q -N email@example.com
where you should pick a local port.
Then configure your browser with a SOCKS proxy. In Firefox, do this in preferences, go into network settings, change proxy from 'No proxy' to 'Manual proxy configuration' and enter localhost as the host, along with the port you opened up the tunnel on.
You can then navigate to ftbf-pdu08.fnal.gov, log in (details in docdb-38595) and power cycling the MWPC controller.
Fixing the TDU timestamp making-and-saving¶
If the beamline DAQ is no longer processing TDU timestamps, there are many things which could be causing this!
First, ensure SpillServer and the SpillForwarder are running (beamline versions). If they are, the most likely cause is the BoardReader in the beamline DAQ. This can be confirmed by looking at the log files to ensure spills are still being made and forwarded correctly.
Potential reason no TDU timestamps being saved by BoardReader (untested): the address is already being used. To fix, log onto beamline DAQ, run
netstat -ntpland look for a process named something like mpirun. Kill it! Mwahaha!
Plotting Detector Plane Pairs¶
Matching hits between x and y plane pairs from TB detector raw data.
Matches are made if hits across planes are within 96 TDC ticks of each other (configurable parameter in XYHitMatch.fcl
First login, setup_online, go to testrel: $ ssh -XY firstname.lastname@example.org $ setup_online $ cd Commissioning-test-releases/asutton/DetComish/ $ srt_setup -a Run the code to process a raw file $ cd results/<PathYouWantToPutThings> $ nova -c $SRT_PRIVATE_CONTEXT/job/rawxyhitmatch.fcl -s <PathToRawDetFile> -T <DesiredOutputName.root> Run the macro to make pretty pictures: $ root -l -b -q '$SRT_PRIVATE_CONTEXT/makeXYPics.C("testing_asutton.root")'
Making images during beam tuning¶
To run over the latest Spill file and create a plot of the hit distribution for the first pair of planes, run
If you want to set this up to run automatically, do
while true; do nohup ./spillProfile.sh > auto.log; sleep 60; done &
I sent the output to a logfile so you can track the progress and confirm that it is still running okay without having to wait for the image. This will run until you kill the job or log off the machine.
Images will be placed here.
Making Good Trigger Ratio Plots¶
Monitoring the total number of Beamline Triggers and Good Beamline Triggers (defined as the trigger with at least 1 hit upsteam TOF and at least 1 hit downstream TOF and have a reconstructed track from WCs).
First login to GPVMs, setup_nova, setup test release:
$ ssh -XY <username>@novagpvm[01-15].fnal.gov $ setup_nova -b maxopt
Before midnight Jul 2nd, no nightly build is made. Making a test release is needed to run this script.
$ newrel -t development <BeamLineTriggerMonitoring> $ cd <BeamLineTriggerMonitoring> $ srt_setup -a $ addpkg_svn -h TestBeam $ novasoft_build -t $ cd ./TestBeam $ ./beamtune.sh <current_beamline_run_number>
The pdf file with 3 plots of good trigger ratio, total number of triggers and number of good triggers (having TOFs and WC track) will be copied to novadaq-test-master.fnal.gov:/var/www/html/beamtuning/goodtrigger. You can see the plots by accessing http://novadaq-test-master.fnal.gov/beamtuning/goodtrigger/.
When a new beamline run is started. This script needs to be stoped and started again with the new beamline run number.
Making ToF distributions for each subrun¶
These plots are currently generated and moved to novadaq-test-master using /nova/app/users/willhf/190702/MasterDung.sh. It is ran as:
$ sh MasterDung.sh 3015
John is working to make this script and its underlying macros less clumsy. If it is July 5, encourage John in these efforts. If it is after July 5, consider asking him passive aggressive questions about when this will be done.
Opening IFBEAM monitoring page¶
Go to http://dbweb5.fnal.gov:8080/ifbeam/vmon/index. Under Upload device list, paste the following and then click
Upload. Then, click on
dashboard on the upper left of the page.
F:MC6IC@e,36 F:MC7SC1@e,36 F:MC7U16@e,36 F:MC7U17@e,36 F:MC7U18@e,36 F:MC7U15@e,36 Z:NOVTSC31@e,36 Z:NOVTSC01@e,36 Z:NOVTSC00@e,36 Z:NOVTSC07@e,36 Z:NOVTSC24@e,36 Z:NOVTSC25@e,36 Z:NOVTSC26@e,36 Z:NOVTSC27@e,36 Z:NOVTSC28@e,36 Z:NOVTSC29@e,36 Z:NOVTSC30@e,36 Z:NOVTSC16@e,36 Z:NOVTSC17@e,36 Z:NOVTSC18@e,36 Z:NOVTSC19@e,36