-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ng] User config storage, service and UI are done
- Loading branch information
Showing
6 changed files
with
146 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 91 additions & 42 deletions
133
firebird-ng/src/app/input-config/input-config.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,104 @@ | ||
<!-- event-display-source.component.html --> | ||
<div class="container mt-3"> | ||
<h3>Event display source control</h3> | ||
<h2>Configure geometry pipeline</h2> | ||
|
||
<img src="assets/diagrams/geometry-pipeline.svg" alt="geometry-pipeline"> | ||
|
||
<form > | ||
<div class="mt-4"> | ||
<h5>Geometry source</h5> | ||
<select class="form-control" [formControl]="selectedGeometry"> | ||
<option value="epic-central-optimized">EIC ePIC Central Detector optimized</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_bhcal.root">epic_bhcal.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_calorimeters.root">epic_calorimeters.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake.root">epic_craterlake.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_10x100.root">epic_craterlake_10x100.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_10x275.root">epic_craterlake_10x275.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_18x110_Au.root">epic_craterlake_18x110_Au.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_18x275.root">epic_craterlake_18x275.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_5x41.root">epic_craterlake_5x41.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_material_map.root">epic_craterlake_material_map.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_no_bhcal.root">epic_craterlake_no_bhcal.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_tracking_only.root">epic_craterlake_tracking_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_dirc_only.root">epic_dirc_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_drich_only.root">epic_drich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_forward_detectors.root">epic_forward_detectors.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_forward_detectors_with_inserts.root">epic_forward_detectors_with_inserts.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_full.root">epic_full.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_imaging_only.root">epic_imaging_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_inner_detector.root">epic_inner_detector.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_ip6.root">epic_ip6.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_ip6_extended.root">epic_ip6_extended.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_lfhcal_only.root">epic_lfhcal_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_lfhcal_with_insert.root">epic_lfhcal_with_insert.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_mrich_only.root">epic_mrich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_pfrich_only.root">epic_pfrich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_pid_only.root">epic_pid_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_tof_endcap_only.root">epic_tof_endcap_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_tof_only.root">epic_tof_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_vertex_only.root">epic_vertex_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_zdc_lyso_sipm.root">epic_zdc_lyso_sipm.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_zdc_sipm_on_tile_only.root">epic_zdc_sipm_on_tile_only.root</option> | ||
</select> | ||
<div class="card mt-4"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Geometry Source</h5> | ||
<div class="form-group"> | ||
Geometry file sources are taken from <a href="https://eic.github.io/epic/">https://eic.github.io/epic/</a> | ||
<select class="form-control" [formControl]="selectedGeometry"> | ||
<option value="epic-central-optimized">EIC ePIC Central Detector optimized</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_bhcal.root">epic_bhcal.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_calorimeters.root">epic_calorimeters.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake.root">epic_craterlake.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_10x100.root">epic_craterlake_10x100.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_10x275.root">epic_craterlake_10x275.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_18x110_Au.root">epic_craterlake_18x110_Au.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_18x275.root">epic_craterlake_18x275.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_5x41.root">epic_craterlake_5x41.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_material_map.root">epic_craterlake_material_map.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_no_bhcal.root">epic_craterlake_no_bhcal.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_craterlake_tracking_only.root">epic_craterlake_tracking_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_dirc_only.root">epic_dirc_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_drich_only.root">epic_drich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_forward_detectors.root">epic_forward_detectors.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_forward_detectors_with_inserts.root">epic_forward_detectors_with_inserts.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_full.root">epic_full.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_imaging_only.root">epic_imaging_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_inner_detector.root">epic_inner_detector.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_ip6.root">epic_ip6.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_ip6_extended.root">epic_ip6_extended.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_lfhcal_only.root">epic_lfhcal_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_lfhcal_with_insert.root">epic_lfhcal_with_insert.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_mrich_only.root">epic_mrich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_pfrich_only.root">epic_pfrich_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_pid_only.root">epic_pid_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_tof_endcap_only.root">epic_tof_endcap_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_tof_only.root">epic_tof_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_vertex_only.root">epic_vertex_only.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_zdc_lyso_sipm.root">epic_zdc_lyso_sipm.root</option> | ||
<option value="https://eic.github.io/epic/artifacts/tgeo/epic_zdc_sipm_on_tile_only.root">epic_zdc_sipm_on_tile_only.root</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card mt-4"> | ||
<div class="card-body"> | ||
<h5 class="card-title">ROOT Geometry optimization</h5> | ||
<div class="mt-4"> | ||
<h6>Leave only central detector (Remove Beamline, Far Froward and Backward)</h6> | ||
<div class="form-check custom-control custom-switch"> | ||
<input class="custom-control-input" type="checkbox" id="geoPostEnabled" [formControl]="onlyCentralDetector"> | ||
<label class="custom-control-label" for="geoPostEnabled">Enabled</label> | ||
</div> | ||
</div> | ||
<div class="mt-4"> | ||
<h6>Optimize detectors (remove parts such as glue, pixels, some layers, etc)</h6> | ||
<div class="form-check custom-control custom-switch"> | ||
<input class="custom-control-input" type="checkbox" checked="checked" disabled> | ||
<label class="custom-control-label" for="geoPostEnabled">Enabled</label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="mt-4"> | ||
<h5>Selected events</h5> | ||
<select class="form-control mt-2" REMformControlName="selectedEvent"> | ||
<option value="Central detector">Central detector</option> | ||
<option value="Far forward">Far forward</option> | ||
</select> | ||
<div class="card mt-4"> | ||
<div class="card-body"> | ||
<h5 class="card-title">WebGL Geometry optimization</h5> | ||
<div class="mt-4"> | ||
<h6>Merge geometries if possible</h6> | ||
Merging geometries allows to significantly improve the performance by reducing the number of | ||
<a href="https://discourse.threejs.org/t/webgl-drawcalls/24476">drawcalls</a>. | ||
<div class="form-check custom-control custom-switch"> | ||
<input class="custom-control-input" type="checkbox" checked="checked" disabled> | ||
<label class="custom-control-label" for="geoPostEnabled">Enabled</label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- <div class="card mt-4">--> | ||
<!-- <div class="card-body">--> | ||
<!-- <h5 class="card-title">Rendering</h5>--> | ||
<!-- <div class="mt-4">--> | ||
<!-- <h6>Debug menu</h6>--> | ||
<!-- <a href="https://discourse.threejs.org/t/webgl-drawcalls/24476">drawcalls</a> significantly improving the performance.--> | ||
<!-- <div class="form-check custom-control custom-switch">--> | ||
<!-- <input class="custom-control-input" type="checkbox" checked="checked" disabled>--> | ||
<!-- <label class="custom-control-label" for="geoPostEnabled">Enabled</label>--> | ||
<!-- </div>--> | ||
<!-- </div>--> | ||
<!-- </div>--> | ||
<!-- </div>--> | ||
|
||
<div class="mt-4 text-center"> | ||
<button type="button" class="btn btn-lg btn-primary" [routerLink]="['/display']">DISPLAY</button> | ||
</div> | ||
|
||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<mxfile host="app.diagrams.net" modified="2024-05-26T19:33:56.009Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" etag="CbRi9kmq4VcUYhB2oYRe" version="24.4.8" type="device"> | ||
<diagram name="Page-1" id="22VLPHBLLeuIhvIN_V5i"> | ||
<mxGraphModel dx="1600" dy="1053" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0" /> | ||
<mxCell id="1" parent="0" /> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-1" value="Geometry Source" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;gradientColor=#b3b3b3;" vertex="1" parent="1"> | ||
<mxGeometry width="120" height="70" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-2" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;" edge="1" parent="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="130" y="34.5" as="sourcePoint" /> | ||
<mxPoint x="170" y="34.5" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-3" value="ROOT <br>geometry <br>optimization" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;gradientColor=#7ea6e0;" vertex="1" parent="1"> | ||
<mxGeometry x="180" width="120" height="70" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-5" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;" edge="1" parent="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="310" y="34.5" as="sourcePoint" /> | ||
<mxPoint x="350" y="34.5" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-6" value="" style="shape=flexArrow;endArrow=classic;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;" edge="1" parent="1"> | ||
<mxGeometry width="50" height="50" relative="1" as="geometry"> | ||
<mxPoint x="490" y="34.5" as="sourcePoint" /> | ||
<mxPoint x="530" y="34.5" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-7" value="WebGL/Three.js<br>Optimization<br>Prettification" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e6d0de;strokeColor=#996185;gradientColor=#d5739d;" vertex="1" parent="1"> | ||
<mxGeometry x="360" width="120" height="70" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="kljRtqIGl1iEmk1v1EDj-9" value="Render!" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;gradientColor=#97d077;" vertex="1" parent="1"> | ||
<mxGeometry x="540" width="120" height="70" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
Oops, something went wrong.