Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-18 08:05:34

0001 <app-shell>
0002   <div centralPane class="fixed-width-page-content">
0003     <mat-card class="config-card">
0004       <mat-card-title>Configure Geometry Pipeline</mat-card-title>
0005       <mat-card-content>
0006         <img src="assets/diagrams/geometry-pipeline.svg" alt="Geometry Pipeline" style="width:100%;"/>
0007       </mat-card-content>
0008     </mat-card>
0009 
0010     <form>
0011 
0012       <mat-card class="config-card">
0013         <mat-card-title>Data Sources</mat-card-title>
0014         <mat-card-content>
0015           <div class="section">
0016             <h3>Geometry</h3>
0017             <p>Select file with the geometry</p>
0018             <firebird-resource-select
0019               #geometrySelect
0020               [options]="geometryOptions"
0021               label="Geometry source">
0022             </firebird-resource-select>
0023           </div>
0024 
0025           <div class="section">
0026             <h3>Event Source: JSON</h3>
0027             <firebird-resource-select
0028               #dexJsonSelect
0029               [options]="trajectoryOptions"
0030               label="Load events from JSON files. Such files can be generated with 'pyrobird convert', merge or other tools">
0031             </firebird-resource-select>
0032           </div>
0033 
0034           <div class="section">
0035             <h3>Event Source: EDM4EIC</h3>
0036             <p>Select file with EDM4EIC data</p>
0037             <firebird-resource-select
0038               #edm4eicSelect
0039               [options]="edm4eicOptions"
0040               label="Load EDM4EIC .root Edm4Eic (this operation requires backend to be running)">
0041             </firebird-resource-select>
0042           </div>
0043         </mat-card-content>
0044       </mat-card>
0045 
0046       <mat-card class="config-card">
0047         <mat-card-title>ROOT Geometry Optimization</mat-card-title>
0048         <mat-card-content>
0049           <div class="section">
0050             <h4>Leave only central detector</h4>
0051             <p>(Remove Beamline, Far Forward and Backward)</p>
0052             <mat-slide-toggle [formControl]="onlyCentralDetector">Enabled</mat-slide-toggle>
0053           </div>
0054           <div class="section">
0055             <h4>Optimize detectors</h4>
0056             <p>(Remove parts such as glue, pixels, some layers, etc)</p>
0057             <!-- Disabled toggle -->
0058             <mat-slide-toggle checked disabled>Enabled</mat-slide-toggle>
0059           </div>
0060         </mat-card-content>
0061       </mat-card>
0062 
0063       <mat-card class="config-card">
0064         <mat-card-title>Geometry Config</mat-card-title>
0065         <mat-card-content>
0066           Config selector placeholder
0067         </mat-card-content>
0068       </mat-card>
0069 
0070       <mat-card class="config-card">
0071         <mat-card-title>WebGL Geometry Optimization</mat-card-title>
0072         <mat-card-content>
0073           <div class="section">
0074             <h4>Merge geometries if possible</h4>
0075             <p>
0076               Merging geometries significantly improves performance by reducing the number of
0077               <a href="https://discourse.threejs.org/t/webgl-drawcalls/24476" target="_blank">drawcalls</a>.
0078             </p>
0079             <mat-slide-toggle checked disabled>Enabled</mat-slide-toggle>
0080           </div>
0081         </mat-card-content>
0082       </mat-card>
0083 
0084       <mat-card class="config-card">
0085         <mat-card-title>Server API Configuration</mat-card-title>
0086         <mat-card-content>
0087           <mat-slide-toggle [formControl]="serverUseApi">Use specific backend</mat-slide-toggle>
0088           <div class="api-url">
0089             <mat-form-field appearance="fill" class="full-width">
0090               <mat-label>Base API URL</mat-label>
0091               <input matInput type="text" placeholder="Enter API URL: http://localhost:5454"
0092                      [formControl]="serverApiUrl" [disabled]="!serverUseApi.value">
0093             </mat-form-field>
0094           </div>
0095         </mat-card-content>
0096       </mat-card>
0097 
0098       <div class="action-buttons">
0099         <button mat-raised-button color="primary" [routerLink]="['/display']">DISPLAY</button>
0100       </div>
0101 
0102       <mat-accordion class="details-accordion">
0103         <mat-expansion-panel>
0104           <mat-expansion-panel-header>
0105             <mat-panel-title>
0106               Backend Details
0107             </mat-panel-title>
0108           </mat-expansion-panel-header>
0109           <table class="details-table">
0110             <thead>
0111             <tr>
0112               <th>Property</th>
0113               <th>Value</th>
0114             </tr>
0115             </thead>
0116             <tbody>
0117             <tr>
0118               <td>Served by Pyrobird</td>
0119               <td>{{ firebirdConfig.servedByPyrobird ? 'Yes' : 'No' }}</td>
0120             </tr>
0121             <tr>
0122               <td>API Available</td>
0123               <td>{{ firebirdConfig.apiAvailable ? 'Yes' : 'No' }}</td>
0124             </tr>
0125             <tr>
0126               <td>API Base URL</td>
0127               <td>{{ firebirdConfig.apiBaseUrl }}</td>
0128             </tr>
0129             <tr>
0130               <td>Log Level</td>
0131               <td>{{ firebirdConfig.logLevel }}</td>
0132             </tr>
0133             </tbody>
0134           </table>
0135         </mat-expansion-panel>
0136       </mat-accordion>
0137 
0138     </form>
0139   </div>
0140 </app-shell>