Project

General

Profile

Instructions on how to use the auto-updating event viewer

Log onto the lariatgpvmXX.fnal.gov machine (where XX is a number between 01 and 04) as user lariat.

ssh -X lariat@lariatgpvm01.fnal.gov

If you are not running from the ROC-west control room or the VNC, you may log in as yourself.

There is a script to setup and run the auto-updating event viewer for PixLAr which can be run

cd /lariat/app/users/cadams/pixlar; source SETUP_ONLINE_EVENTVIEWER3D.sh 

There is a script to setup and run the auto-updating event viewer for LArIAT which can be run

cd /lariat/app/users/EventViewer/
source SETUP_ONLINE_EVENTVIEWER.sh

and should load an event viewer that looks like

For the PixLAr display, with an updated mapping, use this script:

cd /lariat/app/users/cadams/pixlar/
source SETUP_ONLINE_EVENTVIEWER.sh

To report bugs or request a feature with the Pixlar display (2D or 3D) please open an issue on the github repository here: https://github.com/coreyjadams/pixlar-evd

To load a specific file and not just the most recent DQM file you can run the commands

cd /lariat/app/users/cadams/pixlar/
source /grid/fermiapp/lariat/setup_lariat.sh
setup larsoft v06_50_00 -q e14:prof
source /lariat/app/users/cadams/pystack/setup.sh
source /lariat/app/users/cadams/pixlar/pixlar-evd/config/setup.sh
pixlar.py /lariat/data/users/lariatdqm/dqm-v2/files/<path to your file>.root

In case you run into the following error:

lost connection
Permission denied (gssapi-keyex,gssapi-with-mic)

Use the command kticket to pick up a fresh kerberos ticket with the special lariat principal (do not use your personal principal). Check for this success with klist. Then log back in to and launch the event viewer as above.
---

More on the event viewer

If a new release of the event viewer needs to be installed

Detailed instructions to pull LArLite (fmwk) and EventViewer (Code):

source /grid/fermiapp/lariat/setup_lariat.sh
setup lariatsoft v01_00_07 -q e6:prof
cd /lariat/app/users/EventViewer/
git clone http://github.com/larlight/larlite LArLite
cd LArLite/
git checkout trunk
source config/setup.sh
make
cd UserDev
git clone https://github.com/coreyjadams/EventViewer.git
cd EventViewer/
source setup_evd.sh
source /lariat/app/users/jasaadi/pystack/setup_pyqt4.sh
make

To load a specific run/spill file

lariatdaq.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root

with the naming convention dqm_run_[RUN]_spill_[SPILL].root where [RUN] is the 6-digit run number with leading zeros and [SPILL] is the 4-digit spill number with leading zeros. For example, the file for run 666 and spill 3 is dqm_run_000666_spill_0003.root.

To load the auto-updating feature

There exists a text file that is updated by Johnny's DQM code and lives at /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt. To load this feature use the command

lariatdaq.py /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt

In order to stop the auto updating feature

Click the Stop Run button and it should change to Start Run

More features of the event viewer

You can also view the raw wave forms from the wire information by clicking "Wire Drawing" box and then clicking around on the screen, the numbers in the lower left hand side tell you what wire number and time tick you are currently mousing over

You can also save an screen capture by clicking the "Capture Screen" button on the lower right hand side

More Event Viewers

Instructions on how to use the static event and waveform viewers

Log into the lariat-gateway.fnal.gov machine with the lariat account.

ssh -Y lariat-gateway.fnal.gov -l lariat

Set up the environment for the DQM:

source ~johnnyho/setup_dqm

We have a directory set up that the DQM files are being written into:

/lariat/data/users/lariatdqm/dqm-v2/files/**/**/

with the naming convention dqm_run_[RUN]_spill_[SPILL].root where [RUN] is the 6-digit run number with leading zeros and [SPILL] is the 4-digit spill number with leading zeros. For example, the file for run 666 and spill 3 is dqm_run_000666_spill_0003.root.

The event viewer scripts are located in the following directory:

~lariat/dqm

These are the scripts for viewing the TPC readout and the waveforms from the V1751:

python evd/evd.py /lariat/data/users/lariatdqm/dqm-v2/files/dqm_run_[RUN]_spill_[SPILL].root               # for plotting the 2D TPC views of the collection and induction planes with adjustable color bars and wire view
python v1740_readout.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root         # for plotting the waveforms of the TPC events
python plot_v1751_waveforms.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root  # for plotting waveforms from each channel of V1751 boards

Plots can be saved using the display interface (see attached file). Unfortunately, the save function can only save files to the lariat-gateway machine (because you are running the plot maker on lariat-gateway), so you'll have to scp the plots from lariat-gateway to the machine you are using. Taking a screenshot of the plot window will also work. Please resize or maximize the plot window for all the tick labels to be displayed correctly.

evd/evd.py: