Project

General

Profile

Event viewers » History » Version 12

Johnny Ho, 06/25/2015 12:56 AM

1 6 Jonathan Asaadi
h1. +Instructions on how to use the auto-updating event viewer+
2 5 Jonathan Asaadi
3 5 Jonathan Asaadi
Log onto the %{background:lightgreen}@lariatgpvm02.fnal.gov@% machine with your username account
4 5 Jonathan Asaadi
<pre>
5 5 Jonathan Asaadi
ssh -X <yourusername>@lariatgpvm02.fnal.gov
6 5 Jonathan Asaadi
</pre>
7 5 Jonathan Asaadi
There is a script to setup and run the auto-updating event viewer which can be run 
8 5 Jonathan Asaadi
<pre>
9 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
10 5 Jonathan Asaadi
source SETUP_ONLINE_EVENTVIEWER.sh
11 5 Jonathan Asaadi
</pre>
12 5 Jonathan Asaadi
13 5 Jonathan Asaadi
and should load an event viewer that looks like
14 5 Jonathan Asaadi
!{width: 25%}OnlineEventViewer.png!
15 5 Jonathan Asaadi
16 5 Jonathan Asaadi
If a new release of the event viewer needs to be installed the detailed instructions to pull LArLite (fmwk) and EventViewer (Code) is
17 5 Jonathan Asaadi
<pre>
18 5 Jonathan Asaadi
source /grid/fermiapp/lariat/setup_lariat.sh
19 5 Jonathan Asaadi
setup lariatsoft v01_00_07 -q e6:prof
20 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
21 5 Jonathan Asaadi
git clone http://github.com/larlight/larlite LArLite
22 5 Jonathan Asaadi
cd LArLite/
23 5 Jonathan Asaadi
git checkout trunk
24 5 Jonathan Asaadi
source config/setup.sh
25 5 Jonathan Asaadi
make
26 5 Jonathan Asaadi
cd UserDev
27 5 Jonathan Asaadi
git clone https://github.com/coreyjadams/EventViewer.git
28 5 Jonathan Asaadi
cd EventViewer/
29 5 Jonathan Asaadi
source setup_evd.sh
30 5 Jonathan Asaadi
source /lariat/app/users/jasaadi/pystack/setup_pyqt4.sh
31 5 Jonathan Asaadi
make
32 5 Jonathan Asaadi
</pre>
33 5 Jonathan Asaadi
34 5 Jonathan Asaadi
*To load a specific run/spill file*
35 5 Jonathan Asaadi
<pre>
36 5 Jonathan Asaadi
lariatdaq.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root
37 5 Jonathan Asaadi
</pre>
38 5 Jonathan Asaadi
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@.
39 5 Jonathan Asaadi
40 5 Jonathan Asaadi
*To load the auto-updating feature*
41 5 Jonathan Asaadi
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:
42 5 Jonathan Asaadi
<pre>
43 5 Jonathan Asaadi
lariatdaq.py /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt
44 5 Jonathan Asaadi
</pre>
45 5 Jonathan Asaadi
46 5 Jonathan Asaadi
In order to stop the auto updating feature click the %{color:red}Stop Run% button and it should change to %{color:red}Start Run%
47 5 Jonathan Asaadi
!{width: 25%}StopRun.png!
48 1 Johnny Ho
49 6 Jonathan Asaadi
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
50 1 Johnny Ho
51 6 Jonathan Asaadi
!{width: 25%}WireDrawing.png!
52 6 Jonathan Asaadi
53 6 Jonathan Asaadi
You can also save an screen capture by clicking the "Capture Screen" button on the lower right hand side 
54 6 Jonathan Asaadi
55 6 Jonathan Asaadi
!{width: 25%}ScreenCapture.png!
56 6 Jonathan Asaadi
57 10 Johnny Ho
h1. Instructions on how to use the static event and waveform viewers
58 1 Johnny Ho
59 4 Johnny Ho
Log into the  %{background:lightgreen}@lariat-daq01.fnal.gov@% machine with the %{background:lightgreen}@lariat@% account.
60 1 Johnny Ho
61 1 Johnny Ho
<pre>
62 1 Johnny Ho
ssh -Y lariat@lariat-daq01.fnal.gov
63 1 Johnny Ho
</pre>
64 1 Johnny Ho
65 1 Johnny Ho
Set up the environment for the DQM:
66 1 Johnny Ho
67 1 Johnny Ho
<pre>
68 1 Johnny Ho
source ~johnnyho/setup_dqm
69 1 Johnny Ho
</pre>
70 1 Johnny Ho
71 1 Johnny Ho
We have a directory set up that the DQM files are being written into:
72 1 Johnny Ho
73 1 Johnny Ho
<pre>
74 1 Johnny Ho
/lariat/data/users/lariatdqm/dqm
75 1 Johnny Ho
</pre>
76 1 Johnny Ho
77 1 Johnny Ho
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@.
78 1 Johnny Ho
79 1 Johnny Ho
The event viewer scripts are located in the following directory:
80 1 Johnny Ho
81 1 Johnny Ho
<pre>
82 1 Johnny Ho
~lariat/dqm
83 1 Johnny Ho
</pre>
84 1 Johnny Ho
85 1 Johnny Ho
These are the scripts for viewing the TPC readout and the waveforms from the V1751:
86 1 Johnny Ho
87 1 Johnny Ho
<pre>
88 7 Johnny Ho
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
89 1 Johnny Ho
python v1740_readout.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root         # for plotting the waveforms of the TPC events
90 1 Johnny Ho
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
91 1 Johnny Ho
</pre>
92 1 Johnny Ho
93 1 Johnny Ho
Plots can be saved using the display interface (see attached file). Unfortunately, the save function can only save files to the @lariat-daq01@ machine (because you are running the plot maker on @lariat-daq01@), so you'll have to @scp@ the plots from @lariat-daq01@ 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.*
94 2 Johnny Ho
95 7 Johnny Ho
@evd/evd.py@:
96 9 Johnny Ho
!{width: 100%}evd.png!
97 7 Johnny Ho
98 12 Johnny Ho
!{width: 100%}evd-latest.png!