Project

General

Profile

Event viewers » History » Version 22

Jason St. John, 04/12/2016 11:32 AM

1 15 Johnny Ho
{{toc}}
2 15 Johnny Ho
3 6 Jonathan Asaadi
h1. +Instructions on how to use the auto-updating event viewer+
4 5 Jonathan Asaadi
5 20 Jason St. John
Log onto the %{background:lightgreen}@lariatgpvmXX.fnal.gov@% machine (where XX is a number between 01 and 04) as user lariat.
6 5 Jonathan Asaadi
<pre>
7 20 Jason St. John
ssh -X lariat@lariatgpvm01.fnal.gov
8 5 Jonathan Asaadi
</pre>
9 20 Jason St. John
If you are not running from the ROC-west control room or the VNC, you may log in as yourself.
10 19 William Badgett
11 5 Jonathan Asaadi
There is a script to setup and run the auto-updating event viewer which can be run 
12 5 Jonathan Asaadi
<pre>
13 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
14 5 Jonathan Asaadi
source SETUP_ONLINE_EVENTVIEWER.sh
15 5 Jonathan Asaadi
</pre>
16 1 Johnny Ho
17 5 Jonathan Asaadi
and should load an event viewer that looks like
18 5 Jonathan Asaadi
!{width: 25%}R8518_192_38.png!
19 20 Jason St. John
20 22 Jason St. John
---
21 22 Jason St. John
22 21 Jason St. John
{{toc}}
23 22 Jason St. John
24 22 Jason St. John
h1. More on the event viewer
25 1 Johnny Ho
26 21 Jason St. John
h2. If a new release of the event viewer needs to be installed
27 21 Jason St. John
28 21 Jason St. John
Detailed instructions to pull LArLite (fmwk) and EventViewer (Code):
29 21 Jason St. John
30 5 Jonathan Asaadi
<pre>
31 5 Jonathan Asaadi
source /grid/fermiapp/lariat/setup_lariat.sh
32 5 Jonathan Asaadi
setup lariatsoft v01_00_07 -q e6:prof
33 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
34 5 Jonathan Asaadi
git clone http://github.com/larlight/larlite LArLite
35 5 Jonathan Asaadi
cd LArLite/
36 5 Jonathan Asaadi
git checkout trunk
37 5 Jonathan Asaadi
source config/setup.sh
38 5 Jonathan Asaadi
make
39 5 Jonathan Asaadi
cd UserDev
40 5 Jonathan Asaadi
git clone https://github.com/coreyjadams/EventViewer.git
41 5 Jonathan Asaadi
cd EventViewer/
42 5 Jonathan Asaadi
source setup_evd.sh
43 5 Jonathan Asaadi
source /lariat/app/users/jasaadi/pystack/setup_pyqt4.sh
44 5 Jonathan Asaadi
make
45 1 Johnny Ho
</pre>
46 1 Johnny Ho
47 21 Jason St. John
48 21 Jason St. John
h2. To load a specific run/spill file
49 21 Jason St. John
50 5 Jonathan Asaadi
<pre>
51 1 Johnny Ho
lariatdaq.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root
52 1 Johnny Ho
</pre>
53 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@.
54 5 Jonathan Asaadi
55 21 Jason St. John
h2. To load the auto-updating feature
56 21 Jason St. John
57 21 Jason St. John
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
58 1 Johnny Ho
<pre>
59 1 Johnny Ho
lariatdaq.py /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt
60 5 Jonathan Asaadi
</pre>
61 5 Jonathan Asaadi
62 21 Jason St. John
h2. In order to stop the auto updating feature 
63 21 Jason St. John
64 21 Jason St. John
Click the %{color:red}Stop Run% button and it should change to %{color:red}Start Run%
65 5 Jonathan Asaadi
!{width: 25%}StopRun.png!
66 5 Jonathan Asaadi
67 21 Jason St. John
h2. More features of the event viewer
68 21 Jason St. John
69 1 Johnny Ho
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
70 6 Jonathan Asaadi
71 1 Johnny Ho
!{width: 25%}WireDrawing.png!
72 1 Johnny Ho
73 1 Johnny Ho
You can also save an screen capture by clicking the "Capture Screen" button on the lower right hand side 
74 6 Jonathan Asaadi
75 6 Jonathan Asaadi
!{width: 25%}ScreenCapture.png!
76 6 Jonathan Asaadi
77 21 Jason St. John
h1. More Event Viewers
78 21 Jason St. John
79 21 Jason St. John
Instructions on how to use the static event and waveform viewers
80 1 Johnny Ho
81 13 Johnny Ho
Log into the  %{background:lightgreen}@lariat-gateway.fnal.gov@% machine with the %{background:lightgreen}@lariat@% account.
82 1 Johnny Ho
83 1 Johnny Ho
<pre>
84 13 Johnny Ho
ssh -Y lariat-gateway.fnal.gov -l lariat
85 1 Johnny Ho
</pre>
86 1 Johnny Ho
87 1 Johnny Ho
Set up the environment for the DQM:
88 1 Johnny Ho
89 1 Johnny Ho
<pre>
90 1 Johnny Ho
source ~johnnyho/setup_dqm
91 1 Johnny Ho
</pre>
92 1 Johnny Ho
93 1 Johnny Ho
We have a directory set up that the DQM files are being written into:
94 1 Johnny Ho
95 1 Johnny Ho
<pre>
96 1 Johnny Ho
/lariat/data/users/lariatdqm/dqm
97 1 Johnny Ho
</pre>
98 1 Johnny Ho
99 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@.
100 1 Johnny Ho
101 1 Johnny Ho
The event viewer scripts are located in the following directory:
102 1 Johnny Ho
103 1 Johnny Ho
<pre>
104 1 Johnny Ho
~lariat/dqm
105 1 Johnny Ho
</pre>
106 1 Johnny Ho
107 1 Johnny Ho
These are the scripts for viewing the TPC readout and the waveforms from the V1751:
108 1 Johnny Ho
109 1 Johnny Ho
<pre>
110 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
111 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
112 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
113 1 Johnny Ho
</pre>
114 1 Johnny Ho
115 14 Johnny Ho
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.*
116 1 Johnny Ho
117 7 Johnny Ho
@evd/evd.py@:
118 9 Johnny Ho
!{width: 100%}evd-latest.png!
119 13 Johnny Ho
120 13 Johnny Ho
!{width: 100%}evd.png!