Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (152 loc) · 8.17 KB
/
Copy pathindex.html
File metadata and controls
160 lines (152 loc) · 8.17 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>EventViz — LHE & HepMC Event Visualizer</title>
<meta name="description" content="EventViz is a browser-based 3D visualization tool for particle physics collision events. Upload LHE or HepMC files to interactively explore beam collisions, hard-scatter products, and decay chains with full kinematic details.">
<meta name="author" content="A.M.M. Elsayed">
<meta name="language" content="English">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.128.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.128.0/examples/jsm/"
}
}
</script>
</head>
<body>
<nav class="top-nav">
<div class="nav-brand">
<span class="brand-icon">◆</span>
EventViz
</div>
<ul class="nav-links">
<li><a href="#" id="navHome" class="nav-link">Home</a></li>
<li><a href="#" id="navViewer" class="nav-link active">Viewer</a></li>
</ul>
</nav>
<main id="viewport" class="viewport">
<aside class="sidebar">
<div class="panel upload-panel">
<h3>Event File</h3>
<div class="file-area">
<input type="file" id="eventFileInput" accept=".lhe,.hepmc,.lhe.gz,.hepmc.gz" style="display:none;">
<button class="upload-btn" id="uploadBtn">Upload event file</button>
<span id="fileName" class="file-name"></span>
<div id="uploadProgress" class="progress-container" style="display:none;">
<div id="progressLabel" class="progress-label">Loading file...</div>
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div class="progress-text" id="progressText">0%</div>
</div>
<div id="fileInfo" class="info-text">No file loaded.<br>Select a valid LHE or HepMC file.</div>
<div id="warningMsg" class="status warning"></div>
</div>
</div>
<div class="panel samples-panel" id="samplesPanel" hidden>
<h3>Samples</h3>
<div class="samples-list" id="samplesList">
<div class="samples-loading">Loading samples...</div>
</div>
</div>
<div class="panel event-panel" id="eventControlPanel" hidden>
<h3>Event Navigator</h3>
<div class="event-nav">
<label for="eventNumberInput">Event #</label>
<input type="number" id="eventNumberInput" class="event-input" value="1" min="1" step="1">
<div class="nav-buttons">
<button id="prevEventBtn" class="nav-btn" title="Previous event">←</button>
<button id="nextEventBtn" class="nav-btn" title="Next event">→</button>
</div>
</div>
<div id="eventStats" class="status">Select event to visualize</div>
<h3 style="margin-top: 1rem;">View Mode</h3>
<div class="view-buttons">
<button class="view-btn active" id="view3dBtn" data-view="3d">3D View</button>
<button class="view-btn" id="viewTransverseBtn" data-view="transverse">Transverse View</button>
<button class="view-btn" id="viewLongitudinalBtn" data-view="longitudinal">Longitudinal View</button>
</div>
<h3 style="margin-top: 1rem;">Display Options</h3>
<div class="display-options">
<label class="checkbox-label">
<input type="checkbox" id="showAxesCheckbox">
<span>Show Axes</span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="showKinematicsCheckbox">
<span>Show Kinematics</span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="showParticleCoordsCheckbox">
<span>Show (p<sub>T</sub>, φ, η) Coordinates</span>
</label>
</div>
</div>
</aside>
<div id="tooltip" class="tooltip-3d" hidden>
<div class="tooltip-header">
<span id="tooltipName" class="tooltip-name"></span>
<span id="tooltipPid" class="tooltip-pid"></span>
</div>
<div id="tooltipBody" class="tooltip-body"></div>
</div>
</main>
<div id="homeOverlay" class="home-overlay" hidden>
<div class="home-card">
<button id="closeHome" class="home-close" aria-label="Close">×</button>
<header class="home-header">
<h1>EventViz</h1>
<p class="home-tagline">Interactive 3D visualization of Les Houches Event and HepMC files</p>
</header>
<section class="home-section">
<h2>What is EventViz?</h2>
<p>
EventViz is a lightweight, browser-based tool for exploring particle-collision events
stored in Les Houches Event (LHE) or HepMC format. It reads event metadata and per-particle
kinematics directly from your file and renders an interactive three-dimensional, transvere and longtidunal views of
the collision: incoming beams, hard-scatter products, and decay chains with correct angular separation.
</p>
<p>
Visit the <a href="https://github.com/ammelsayed/EventViz" target="_blank" rel="noopener noreferrer">Github page</a> for more information.
</p>
</section>
<section class="home-section">
<h2>How it works</h2>
<ol class="home-steps">
<li><strong>Upload</strong> an uncompressed <code>.lhe</code> or <code>.hepmc</code> file using the panel on the left.</li>
<li><strong>Inspect</strong> generator, process, cross section, PDF, tune parameters, and beam information parsed from the file.</li>
<li><strong>Navigate</strong> events by number or with the arrow buttons — only the selected event is loaded for speed.</li>
<li><strong>Explore</strong> the 3D view: orbit with the mouse, zoom, and hover over particle tracks for full kinematic details.</li>
</ol>
<p>
Particle identities are resolved from PDG ID codes. Decay topology is reconstructed from
mother–daughter indices in the event record, so decay products are drawn branching from
their parent particle's endpoint.
</p>
</section>
<section class="home-section">
<h2>Roadmap</h2>
<p>
Future releases may add histogramming of single-particle kinematics
(pT, η, φ, energy, and mass, if available) and multiparticle variables (ΔR, invariant mass, MET, HT, etc.)
for the final state particles.
</p>
</section>
<footer class="home-footer">
<p>
<strong>Author:</strong> A.M.M. Elsayed
(<a href="mailto:ammelsayed@mail.ustc.edu.cn">ammelsayed@mail.ustc.edu.cn</a>)
</p>
<p class="home-credit">Developed with assistance from Claude (Anthropic).</p>
</footer>
</div>
</div>
<script type="module" src="app.js"></script>
</body>
</html>