-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
496 lines (482 loc) · 27.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<!DOCTYPE html>
<html lang="en">
<head>
<title>Three.js CMS Track Visualiser v0.4</title>
<meta charset="utf-8">
<!-- Application styles -->
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet"
href="lib/bootstrap-3.3.5-mod/css/bootstrap.min.css" />
<!--
<link rel="stylesheet" href="lib/tablesorter/css/theme.bootstrap.css" /> -->
<!--
<link rel="stylesheet" href="lib/tablesorter/css/theme.default.css" /> -->
<!-- jQuery -->
<script type="text/javascript" src="lib/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
src="lib/tablesorter/js/jquery.tablesorter.combined.js"></script>
<!-- Bootstrap library -->
<script type="text/javascript"
src="lib/bootstrap-3.3.5-mod/js/bootstrap.min.js"></script>
<script type="text/javascript"
src="lib/bootstrap-waitingfor.js"></script>
<!-- Third party libraries -->
<!-- Three.js library and controls -->
<script type="text/javascript" src="lib/three.min.js"></script>
<script type="text/javascript" src="lib/TrackballControls.js"></script>
<script type="text/javascript"
src="lib/helvetiker_regular.typeface.js"></script>
<script type="text/javascript"
src="lib/three.js/examples/js/cameras/CombinedCamera.js"></script>
<script type="text/javascript" src="lib/Projector.js"></script>
<!-- Application code -->
<script type="text/javascript" src="js/candidate.js"></script>
<script type="text/javascript" src="js/events.js"></script>
<script type="text/javascript" src="js/uploader.js"></script>
<script type="text/javascript" src="js/geometry.js"></script>
<script type="text/javascript" src="js/camera.js"></script>
<script type="text/javascript" src="js/controls.js"></script>
<script type="text/javascript" src="js/handlers.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body>
<div class="modal bs-example-modal-sm" tabindex="-1" role="dialog"
aria-labelledby="mySmallModalLabel" id="cuts-modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="gridSystemModalLabel">
Data Cuts
</h4>
</div>
<div class="modal-body">
<form id="cuts-form" class="form-horizontal">
<div class="col-sm-6">
<h3>Candidate Requirements</h3>
<div class="form-group">
<label for="track-pt-min"
class="control-label col-sm-2">
p<sub>T</sub>
</label>
<div class="col-sm-4">
<input id="track-pt-min" type="text"
class="form-control"
name="track-pt-min"
placeholder="min pt"/>
</div>
<div class="col-sm-4">
<input id="track-pt-max" type="text"
class="form-control"
name="track-pt-max"
placeholder="max pt"/>
</div>
<div class="col-sm-2">
<p class="form-control-static">GeV</p>
</div>
</div>
<div class="form-group">
<label for="track-eta-min"
class="control-label col-sm-2">
η
</label>
<div class="col-sm-4">
<input id="track-eta-min" type="text"
class="form-control"
name="track-eta-min"
placeholder="min η"/>
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-eta-max"
name="track-eta-max"
placeholder="max η"/>
</div>
</div>
<div class="form-group">
<label for="track-stubs-min" class="control-label col-sm-2">
N<sub>stubs</sub>
</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-stubs-min"
name="track-stubs-min"
placeholder="min stubs"/>
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-stubs-max"
name="track-stubs-max"
placeholder="max stubs"/>
</div>
</div>
<div class="form-group">
<label for="track-tp" class="control-label col-sm-2"
title="Do you require the fitted candidate to have a corresponding true particle?">
TP?
</label>
<div class="col-sm-4">
<select class="form-control" name="track-tp" id="track-tp">
<option selected="selected">-</option>
<option>Yes</option>
<option>No</option>
</select>
</div>
</div>
<div class="form-group">
<label for="track-sphi-min" class="control-label col-sm-2"
title="Detector sector in φ">
S<sub>φ</sub>
</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-sphi-min"
name="track-sphi-min" placeholder="min S_phi"/>
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-sphi-max"
name="track-sphi-max" placeholder="max S_phi"/>
</div>
</div>
<div class="form-group">
<label for="track-reta-min" class="control-label col-sm-2"
title="Detector region in η">
R<sub>η</sub>
</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-reta-min"
name="track-reta-min" placeholder="min R_eta"/>
</div>
<div class="col-sm-4">
<input type="text" class="form-control" id="track-reta-max"
name="track-reta-max" placeholder="max R_eta"/>
</div>
</div>
</div>
<div class="col-sm-6">
<h3>True particle Requirements</h3>
<div class="form-group">
<label for="tp-pt-min"
class="control-label col-sm-2">
p<sub>T</sub>
</label>
<div class="col-sm-4">
<input id="tp-pt-min" type="text"
class="form-control"
name="tp-pt-min"
placeholder="min pt"/>
</div>
<div class="col-sm-4">
<input id="tp-pt-max" type="text"
class="form-control"
name="tp-pt-max"
placeholder="max pt"/>
</div>
<div class="col-sm-2">
<p class="form-control-static">GeV</p>
</div>
</div>
<div class="form-group">
<label for="tp-eta-min"
class="control-label col-sm-2">
η
</label>
<div class="col-sm-4">
<input id="tp-eta-min" type="text"
class="form-control"
name="tp-eta-min"
placeholder="min η"/>
</div>
<div class="col-sm-4">
<input id="tp-eta-max" type="text"
class="form-control"
name="tp-eta-max"
placeholder="max η"/>
</div>
</div>
</div>
<div class="clear"></div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary"
onclick="applyCuts()">
Apply cuts
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<div id="data-man-dialog" class="modal bs-data-man-modal-sm"
tabindex="-1" role="dialog"
aria-labelledby="mySmallModalLabel2">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="gridSystemModalLabel">
Data Config
</h4>
</div>
<div class="modal-body" role="group">
<!-- nav tabs -->
<ul id="data-tabs" class="nav nav-pills" role="tablist">
<li role="presentation" class="active">
<a href="#local" role="tab"
aria-controls="local">Local</a>
</li>
<li role="presentation" class="">
<a href="#remote" role="tab"
aria-controls="remote">Remote</a>
</li>
</ul>
<hr />
<!-- tab panes -->
<div class="tab-content">
<div id="local" "role="tabpanel"
class="tab-pane active">
<div id="upload-area">
Drop files or click to select local files.
</div>
<div class="hide">
<input id="data-file" type="file"
name="files[]" multiple />
</div>
<h5>Available files</h5>
<div id="local-event-files-list-container"></div>
</div>
<div id="remote" "role="tabpanel" class="tab-pane">
<div>
Available files at [remote-location]:
<div id="remote-event-files-list-container"></div>
</div>
</div>
</div>
<hr/>
<output id="upload-result"></output>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default"
data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary"
id="load-data-btn">Load Data</button>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div id="pleaseWaitDialog" class="modal hide" data-backdrop="static"
data-keyboard="false">
<div class="modal-header">
<h1>Processing...</h1>
</div>
<div class="modal-body">
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
</div>
</div>
<div id="app-container">
<!-- <h4>CMS Track Visualiser v0.4</h4> -->
<div id="ui-container" id="control-tabs">
<ul class="nav nav-pills">
<li role="presentation" class="active">
<a href="#event-controls" role="tab"
data-toggle="tab">Event</a>
</li>
<li role="presentation">
<a href="#geometry-controls" role="tab"
data-toggle="tab">Geometry</a>
</li>
</ul>
<hr/>
<div class="tab-content">
<div id="event-controls" role="tabpanel"
class="tab-pane active">
<div class="">
<button id="prev-event-btn" type="button"
disabled="disabled"
class="btn btn-default">
Prev Event
</button>
<span id="current-event-container"> - </span>
<button id="next-event-btn" type="button"
disabled="disabled"
class="btn btn-default">
Next Event
</button>
</div>
<hr />
<div id="cand-panel" class="panel panel-default">
<div class="panel-heading">
Candidates List<span id="cands-no"></span>
</div>
<div class="panel-body">
<button type="button" data-toggle="modal"
class="btn btn-sm btn-default"
data-target=".bs-example-modal-sm">
Data cuts
</button>
<button id="manage-data-btn"
type="button" data-toggle="modal"
class="btn btn-sm btn-default pull-right"
data-target=".bs-data-man-modal-sm">
Manage Data
</button>
<!--
<input type="button"
class="btn btn-default btn-sm pull-right"
value="Load Data" onclick="loadData();"/>
-->
</div>
<div id="cand-table-container">
<table id="candidates-table"
class="table table-condensed table-hover tablesorter">
<thead>
<tr>
<th></th>
<th title="Particle ID (in list)">#</th>
<th title="Transverse momentum, GeV">p<sub>T</sub></th>
<th title="Charge in units of e">q</th>
<th title="Pseudo-rapidity">η</th>
<th>φ<sub>0</sub></th>
<th title="φ segment">S<sub>Φ</sub></th>
<th title="η region">R<sub>η</sub></th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th title="Particle ID (in list)">#</th>
<th title="Transverse momentum, GeV">p<sub>T</sub></th>
<th title="Charge in units of e">q</th>
<th title="Pseudo-rapidity">η</th>
<th>φ<sub>0</sub></th>
<th title="φ segment">S<sub>Φ</sub></th>
<th title="η region">R<sub>η</sub></th>
</tr>
</tfoot>
<tbody></tbody>
</table>
</div>
<div id="visibility-controls-container" class="panel-body">
<input type="button" value="Hide All"
class="btn btn-default btn-sm"
onclick="hideAll();"/>
<input type="button" value="Show All"
class="btn btn-default btn-sm"
onclick="showAll();"/>
<input type="button" value="Show Selected"
class="btn btn-default btn-sm"
onclick="showHighlighted();"/>
</div>
</div>
</div>
<div id="geometry-controls"
role="tabpanel" class="tab-pane" >
<h4>View Controls:</h4>
<div class="btn-group btn-group-sm">
<input type="button" class="btn btn-default"
value="x-y" onclick="lookXY();"/>
<input type="button" class="btn btn-default"
value="x-z" onclick="lookXZ();"/>
<input type="button" class="btn btn-default"
value="y-z" onclick="lookYZ();"/>
</div>
<div>
Zoom:
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default" onclick="zoomIn()"s>
<span class="glyphicon glyphicon-plus"></span>
</button>
<button type="button" class="btn btn-default" onclick="zoomOut()">
<span class="glyphicon glyphicon-minus"></span>
</button>
</div>
</div>
<div>
<div>
Pan:
<div class="btn-group btn-group-sm">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-arrow-left"></span>
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-arrow-right"></span>
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-arrow-up" onclick="moveUp()""></span>
</button>
<button type="button" class="btn btn-default" onclick="moveDown()">
<span class="glyphicon glyphicon-arrow-down" ></span>
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-home"></span>
</button>
</div>
</div>
<div>
Camera:
<div class="btn-group btn-group-sm">
<button id="ortho-btn" type="button" class="btn btn-default" onclick="setOrthographic()">
Orthographic
</button>
<button id="persp-btn" type="button" class="btn btn-default active" onclick="setPerspective()">
Perspective
</button>
</div>
</div>
</div>
<hr />
<div class="geom-controls">
<h4>Geometry Controls:</h4>
<div class="btn-group btn-group-sm">
<input class="btn btn-default" type="button" value="B1"/>
<input class="btn btn-default" type="button" value="B2" />
<input class="btn btn-default" type="button" value="B3" />
<input class="btn btn-default" type="button" value="B4" />
<input class="btn btn-default" type="button" value="B5" />
<input class="btn btn-default" type="button" value="B6" />
</div>
<div class="btn-group btn-group-sm">
<input class="btn btn-default" type="button" value="E1" />
<input class="btn btn-default" type="button" value="E2" />
<input class="btn btn-default" type="button" value="E3" />
<input class="btn btn-default" type="button" value="E4" />
<input class="btn btn-default" type="button" value="E5" />
</div>
<div class="btn-group btn-group-sm">
<input class="btn btn-default" type="button" value="E-1" />
<input class="btn btn-default" type="button" value="E-2" />
<input class="btn btn-default" type="button" value="E-3" />
<input class="btn btn-default" type="button" value="E-4" />
<input class="btn btn-default" type="button" value="E-5" />
</div>
</div>
<div>
<input class="btn btn-default btn-sm" type="button" value="Load Geometry" onclick="loadGeometry();"/>
</div>
</div>
</div>
<!-- <p>Note: Inset Axes correspond to x - red, y - green and z - blue</p> -->
</div>
<div id="display">
<div id="canvas-container"></div>
<div id="inset"></div>
</div>
<div id="focus-panel" class="panel panel-default pull-left">
<div class="panel-heading">Focus Information</div>
<div class="panel-body">
Focus: <span id="highlighted-tr">Information about the currently focused element will apper once you hover over it.</span><br/><br/>
Selected: <span id="selected-tr"></span>
</div>
</div>
<div class="clear"></div>
</div>
</body>
</html>