Project

General

Profile

Event viewers » History » Version 15

Version 14 (Johnny Ho, 06/26/2015 03:30 PM) → Version 15/31 (Johnny Ho, 06/26/2015 03:31 PM)

{{toc}}

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

Log onto the %{background:lightgreen}@lariatgpvm02.fnal.gov@% machine with your username account
<pre>
ssh -X <yourusername>@lariatgpvm02.fnal.gov
</pre>
There is a script to setup and run the auto-updating event viewer 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%}OnlineEventViewer.png!

If a new release of the event viewer needs to be installed the detailed instructions to pull LArLite (fmwk) and EventViewer (Code) is
<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>

*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@.

*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>

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!

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. 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
</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/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!