Project

General

Profile

Event viewers » History » Version 30

Version 29 (Corey Adams, 01/04/2018 02:35 PM) → Version 30/31 (Corey Adams, 01/04/2018 02:37 PM)

{{toc}}

h1. +Instructions on how to use the auto-updating event viewer+

Log onto the %{background:lightgreen}@lariatgpvmXX.fnal.gov@% machine (where XX is a number between 01 and 04) as user lariat.
<pre>
ssh -X lariat@lariatgpvm01.fnal.gov
</pre>

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 LArIAT* which can be run
<pre>
cd /lariat/app/users/EventViewer/
source SETUP_ONLINE_EVENTVIEWER.sh
</pre>

and should load an event viewer that looks like
!{width: 25%}R8518_192_38.png!

For the *%{background:lightgreen}PixLAr display%*, with an updated mapping, use this script:
<pre>
cd /lariat/app/users/cadams/pixlar/
source SETUP_ONLINE_EVENTVIEWER.sh
</pre>

!{width: 25%}PixLArDisplay.png!

To *%{background:lightred}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

<pre>
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
</pre>

In case you run into the following error:
<pre>lost connection
Permission denied (gssapi-keyex,gssapi-with-mic)</pre>
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 lariat@lariatgpvm01.fnal.gov and launch the event viewer as above.
---

{{toc}}

h1. More on the event viewer

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

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

<pre>
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
</pre>

h2. To load a specific run/spill file

<pre>
lariatdaq.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root
</pre>
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@.

h2. 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
<pre>
lariatdaq.py /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt
</pre>

h2. In order to stop the auto updating feature

Click the %{color:red}Stop Run% button and it should change to %{color:red}Start Run%
!{width: 25%}StopRun.png!

h2. 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

!{width: 25%}WireDrawing.png!

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

!{width: 25%}ScreenCapture.png!

h1. More Event Viewers

Instructions on how to use the static event and waveform viewers

Log into the %{background:lightgreen}@lariat-gateway.fnal.gov@% machine with the %{background:lightgreen}@lariat@% account.

<pre>
ssh -Y lariat-gateway.fnal.gov -l lariat
</pre>

Set up the environment for the DQM:

<pre>
source ~johnnyho/setup_dqm
</pre>

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

<pre>
/lariat/data/users/lariatdqm/dqm-v2/files/**/**/
</pre>

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:

<pre>
~lariat/dqm
</pre>

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

<pre>
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
</pre>

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@:
!{width: 100%}evd-latest.png!

!{width: 100%}evd.png!