Project

General

Profile

Event viewers » History » Version 31

Jason St. John, 01/17/2018 10:37 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 23 Elena Gramellini
10 31 Jason St. John
h3. If you are not running from the ROC-west control room or the VNC, you may log in as yourself.
11 1 Johnny Ho
12 31 Jason St. John
There is a script to setup and run the auto-updating event viewer *for PixLAr* which can be run 
13 31 Jason St. John
<pre>
14 31 Jason St. John
cd /lariat/app/users/cadams/pixlar; source SETUP_ONLINE_EVENTVIEWER3D.sh 
15 31 Jason St. John
</pre>
16 31 Jason St. John
17 31 Jason St. John
18 19 William Badgett
19 27 Jonathan Asaadi
There is a script to setup and run the auto-updating event viewer *for LArIAT* which can be run 
20 5 Jonathan Asaadi
<pre>
21 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
22 5 Jonathan Asaadi
source SETUP_ONLINE_EVENTVIEWER.sh
23 5 Jonathan Asaadi
</pre>
24 1 Johnny Ho
25 27 Jonathan Asaadi
and should load an event viewer that looks like
26 27 Jonathan Asaadi
!{width: 25%}R8518_192_38.png!
27 27 Jonathan Asaadi
28 27 Jonathan Asaadi
For the *%{background:lightgreen}PixLAr display%*, with an updated mapping, use this script:
29 26 Corey Adams
<pre>
30 1 Johnny Ho
cd /lariat/app/users/cadams/pixlar/
31 26 Corey Adams
source SETUP_ONLINE_EVENTVIEWER.sh
32 26 Corey Adams
</pre>
33 5 Jonathan Asaadi
34 27 Jonathan Asaadi
!{width: 25%}PixLArDisplay.png!
35 20 Jason St. John
36 30 Corey Adams
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
37 30 Corey Adams
38 28 Jonathan Asaadi
To load a specific file and not just the most recent DQM file you can run the commands
39 28 Jonathan Asaadi
40 28 Jonathan Asaadi
<pre>
41 28 Jonathan Asaadi
cd /lariat/app/users/cadams/pixlar/
42 28 Jonathan Asaadi
source /grid/fermiapp/lariat/setup_lariat.sh
43 29 Corey Adams
setup larsoft v06_50_00 -q e14:prof
44 28 Jonathan Asaadi
source /lariat/app/users/cadams/pystack/setup.sh
45 28 Jonathan Asaadi
source /lariat/app/users/cadams/pixlar/pixlar-evd/config/setup.sh
46 28 Jonathan Asaadi
pixlar.py /lariat/data/users/lariatdqm/dqm-v2/files/<path to your file>.root
47 28 Jonathan Asaadi
</pre>
48 28 Jonathan Asaadi
49 23 Elena Gramellini
In case you run into the following error:
50 23 Elena Gramellini
<pre>lost connection
51 23 Elena Gramellini
Permission denied (gssapi-keyex,gssapi-with-mic)</pre>
52 24 Elena Gramellini
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.
53 22 Jason St. John
---
54 22 Jason St. John
55 21 Jason St. John
{{toc}}
56 23 Elena Gramellini
57 23 Elena Gramellini
58 22 Jason St. John
59 22 Jason St. John
h1. More on the event viewer
60 1 Johnny Ho
61 21 Jason St. John
h2. If a new release of the event viewer needs to be installed
62 21 Jason St. John
63 21 Jason St. John
Detailed instructions to pull LArLite (fmwk) and EventViewer (Code):
64 21 Jason St. John
65 5 Jonathan Asaadi
<pre>
66 5 Jonathan Asaadi
source /grid/fermiapp/lariat/setup_lariat.sh
67 5 Jonathan Asaadi
setup lariatsoft v01_00_07 -q e6:prof
68 5 Jonathan Asaadi
cd /lariat/app/users/EventViewer/
69 5 Jonathan Asaadi
git clone http://github.com/larlight/larlite LArLite
70 5 Jonathan Asaadi
cd LArLite/
71 5 Jonathan Asaadi
git checkout trunk
72 5 Jonathan Asaadi
source config/setup.sh
73 5 Jonathan Asaadi
make
74 5 Jonathan Asaadi
cd UserDev
75 5 Jonathan Asaadi
git clone https://github.com/coreyjadams/EventViewer.git
76 5 Jonathan Asaadi
cd EventViewer/
77 5 Jonathan Asaadi
source setup_evd.sh
78 5 Jonathan Asaadi
source /lariat/app/users/jasaadi/pystack/setup_pyqt4.sh
79 5 Jonathan Asaadi
make
80 1 Johnny Ho
</pre>
81 1 Johnny Ho
82 21 Jason St. John
83 21 Jason St. John
h2. To load a specific run/spill file
84 21 Jason St. John
85 5 Jonathan Asaadi
<pre>
86 1 Johnny Ho
lariatdaq.py /lariat/data/users/lariatdqm/dqm/dqm_run_[RUN]_spill_[SPILL].root
87 1 Johnny Ho
</pre>
88 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@.
89 5 Jonathan Asaadi
90 21 Jason St. John
h2. To load the auto-updating feature
91 21 Jason St. John
92 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
93 1 Johnny Ho
<pre>
94 1 Johnny Ho
lariatdaq.py /lariat/data/users/lariatdqm/EventViewer/latest_dqm_file_path.txt
95 5 Jonathan Asaadi
</pre>
96 5 Jonathan Asaadi
97 21 Jason St. John
h2. In order to stop the auto updating feature 
98 21 Jason St. John
99 21 Jason St. John
Click the %{color:red}Stop Run% button and it should change to %{color:red}Start Run%
100 5 Jonathan Asaadi
!{width: 25%}StopRun.png!
101 5 Jonathan Asaadi
102 21 Jason St. John
h2. More features of the event viewer
103 21 Jason St. John
104 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
105 6 Jonathan Asaadi
106 1 Johnny Ho
!{width: 25%}WireDrawing.png!
107 1 Johnny Ho
108 1 Johnny Ho
You can also save an screen capture by clicking the "Capture Screen" button on the lower right hand side 
109 6 Jonathan Asaadi
110 6 Jonathan Asaadi
!{width: 25%}ScreenCapture.png!
111 6 Jonathan Asaadi
112 21 Jason St. John
h1. More Event Viewers
113 21 Jason St. John
114 21 Jason St. John
Instructions on how to use the static event and waveform viewers
115 1 Johnny Ho
116 13 Johnny Ho
Log into the  %{background:lightgreen}@lariat-gateway.fnal.gov@% machine with the %{background:lightgreen}@lariat@% account.
117 1 Johnny Ho
118 1 Johnny Ho
<pre>
119 13 Johnny Ho
ssh -Y lariat-gateway.fnal.gov -l lariat
120 1 Johnny Ho
</pre>
121 1 Johnny Ho
122 1 Johnny Ho
Set up the environment for the DQM:
123 1 Johnny Ho
124 1 Johnny Ho
<pre>
125 1 Johnny Ho
source ~johnnyho/setup_dqm
126 1 Johnny Ho
</pre>
127 1 Johnny Ho
128 1 Johnny Ho
We have a directory set up that the DQM files are being written into:
129 1 Johnny Ho
130 1 Johnny Ho
<pre>
131 25 Jonathan Asaadi
/lariat/data/users/lariatdqm/dqm-v2/files/**/**/
132 1 Johnny Ho
</pre>
133 1 Johnny Ho
134 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@.
135 1 Johnny Ho
136 1 Johnny Ho
The event viewer scripts are located in the following directory:
137 1 Johnny Ho
138 1 Johnny Ho
<pre>
139 1 Johnny Ho
~lariat/dqm
140 1 Johnny Ho
</pre>
141 1 Johnny Ho
142 1 Johnny Ho
These are the scripts for viewing the TPC readout and the waveforms from the V1751:
143 1 Johnny Ho
144 1 Johnny Ho
<pre>
145 25 Jonathan Asaadi
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
146 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
147 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
148 1 Johnny Ho
</pre>
149 1 Johnny Ho
150 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.*
151 1 Johnny Ho
152 7 Johnny Ho
@evd/evd.py@:
153 9 Johnny Ho
!{width: 100%}evd-latest.png!
154 13 Johnny Ho
155 13 Johnny Ho
!{width: 100%}evd.png!