Skip to content

Commit 1f9f09b

Browse files
committed
Merge branch 'feature/documentation-updates' into 'main'
Update of the documentation and links See merge request belle2/software/display!1
2 parents 090b9a8 + 6d9629d commit 1f9f09b

File tree

16 files changed

+43
-66
lines changed

16 files changed

+43
-66
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Belle2 GSoC 2023
1+
# Belle II Event Display with Phoenix - GSoC 2023
22

3-
This Angular CLI web app displays a Belle2 event using Phoenix, a TypeScript-based event display framework.
3+
This Angular CLI web app displays Belle II events using Phoenix, a TypeScript-based event display framework.
44
<br>
5-
The web app has been deployed and can be accessed through [belle2-gsoc-2023-hieu-gsoc-draft.netlify.app](https://belle2-gsoc-2023-hieu-gsoc-draft.netlify.app/#/)
5+
The web app has been deployed and can be accessed through [display.belle2.org](https://display.belle2.org)
66

77
In order to run the application on your local machine, please perform the following steps.
88
<br>
@@ -26,7 +26,7 @@ In order to run the application on your local machine, please perform the follow
2626

2727
The web application serves as a tool that allows scientists and physicists to import events from mdst `.root` files, which contain data, and then view them directly in a web browser. By leveraging the Phoenix framework and adding custom features, the application provides a user-friendly environment for event display, complete with intuitive user interface controls.
2828

29-
For more detailed instructions on how to use and develop the app, please refer to the [documentation](https://belle2-gsoc-2023-hieu-docs.netlify.app/).
29+
For more detailed instructions on how to use and develop the app, please refer to the [documentation](https://display.belle2.org/documentation).
3030

3131
*The documentation is created using Sphinx and its source file is located in the `docs/` folder.*
3232

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sys
1111
sys.path.insert(0, pathlib.Path(__file__).parents[2].resolve().as_posix())
1212

13-
project = 'Belle II Event Display'
13+
project = 'Belle II Event Display with Phoenix'
1414
copyright = '2023, Hieu Le Cong Minh'
1515
author = 'Hieu Le Cong Minh'
1616
release = '0.1'
@@ -31,5 +31,5 @@
3131
# -- Options for HTML output -------------------------------------------------
3232
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3333

34-
html_theme = 'sphinx_rtd_theme'
35-
html_static_path = ['_static']
34+
html_theme = 'sphinx_book_theme'
35+
# html_static_path = ['_static']

docs/source/developer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Developer Documentation
33

44
The deployed web application can be accessed through this `link`_.
55

6-
.. _link: https://belle2-gsoc-2023-hieu-gsoc-draft.netlify.app/
6+
.. _link: https://display.belle2.org
77

88
For usage and manipulation, please refer to the :doc:`user` section.
99

10-
The source code for the Belle II event display project is stored in the `GitHub repository`_.
10+
The source code for the Belle II Event Display with Phoenix project is stored in the `GitHub repository`_.
1111

1212
.. _GitHub repository: https://github.com/belle2/display
1313

docs/source/developer/event_display.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This documentation assumes you already possess a basic understanding of Phoenix
66
Customized Event Objects
77
------------------------
88

9-
Within the Belle II event display, four types of objects are presented: Tracks, MCParticles, ECLClusters, and KLMClusters. While Phoenix's existing design represents Tracks, the others are directly rendered using ThreeJS. This approach ensures seamless visualization alignment with the context of Belle II.
9+
Within the event display, four types of objects are presented: Tracks, MCParticles, ECLClusters, and KLMClusters. While Phoenix's existing design represents Tracks, the others are directly rendered using ThreeJS. This approach ensures seamless visualization alignment with the context of Belle II.
1010

11-
To create customized event objects (e.g., Hits), please refer to the Phoenix `event-data-loader`_ documentation. The custom object files within the Belle II display repository are stored in the ``display/src/loaders/objects/`` folder. You can adjust the visualization characteristics (thickness, default color, etc.) of objects using ThreeJS framework syntax.
11+
To create customized event objects (e.g., Hits), please refer to the Phoenix `event-data-loader`_ documentation. The custom object files within the event display repository are stored in the ``display/src/loaders/objects/`` folder. You can adjust the visualization characteristics (thickness, default color, etc.) of objects using ThreeJS framework syntax.
1212

1313
.. _event-data-loader: https://github.com/HSF/phoenix/blob/main/guides/developers/event-data-loader.md
1414

@@ -21,7 +21,7 @@ Additionally, Phoenix offers some `default objects`_ in its codebase. If they me
2121
UI Modification
2222
---------------
2323

24-
The frontend of the Belle II display web application is built on the Angular framework. Therefore, to modify the user interface for this project, Angular knowledge is required.
24+
The frontend of the event display application is built on the Angular framework. Therefore, to modify the user interface for this project, Angular knowledge is required.
2525

2626
By default, the components for the web application are stored in the ``display/src/app/`` folder.
2727

@@ -42,5 +42,5 @@ By default, the components for the web application are stored in the ``display/s
4242
4343
Essentially, three main pages exist: the homepage, event display, and detector display, corresponding to the ``home/``, ``event-display/``, and ``detector/`` folders respectively in the ``display/src/app/`` folder. Additionally, the ``customized-components`` folder contains all customized Phoenix components.
4444

45-
As this project is built on Phoenix, most UI components used here are obtained from ``phoenix-ui-components``, such as **Display Options** or the tools in the **UI Menu**. However, due to the unique characteristics of the Belle II event display, some tools (e.g., event selector, event import/export) need customization. To create customized components, it is essential to study existing Phoenix UI components and their usage. This is necessary because, when developing new components, you will need to seamlessly integrate them into the web framework built on Phoenix. In short, skills in handling both Angular and Phoenix are required.
45+
As this project is built on Phoenix, most UI components used here are obtained from ``phoenix-ui-components``, such as **Display Options** or the tools in the **UI Menu**. However, due to the unique characteristics of the event display, some tools (e.g., event selector, event import/export) need customization. To create customized components, it is essential to study existing Phoenix UI components and their usage. This is necessary because, when developing new components, you will need to seamlessly integrate them into the web framework built on Phoenix. In short, skills in handling both Angular and Phoenix are required.
4646

docs/source/developer/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _developer_installation:
2+
13
Installation
24
============
35

docs/source/developer/modules.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Framework and Tools
44
Phoenix
55
-------
66

7-
The Belle II display web application is built based on Phoenix, a TypeScript-based event display framework. If you are starting to contribute to or modify the web application for the Belle II event display, it is strongly recommended to familiarize yourself with the Phoenix framework and how to use it.
7+
The Belle II Event Display with Phoenix application is built based on Phoenix, a TypeScript-based event display framework. If you are starting to contribute to or modify the event display, it is strongly recommended to familiarize yourself with the Phoenix framework and how to use it.
88

99
You can access the Phoenix documentation by following this `link`_. Additionally, developers can find more `specialized guidance`_ available.
1010

@@ -16,12 +16,12 @@ You can access the Phoenix documentation by following this `link`_. Additionally
1616
JSROOT
1717
------
1818

19-
Currently, the mdst data is stored in the .root file. To utilize the Phoenix framework and display the event in the browser, it is required to extract the data from the .root file and convert it into the form of a TypeScript object. For this task, JSRoot is used.
19+
Currently, the mdst data is stored in the *.root* file. To utilize the Phoenix framework and display the event in the browser, it is required to extract the data from the *.root* file and convert it into the form of a TypeScript object. For this task, JSRoot is used.
2020

2121
You can find information on how to use JSRoot in its `documentation`_.
2222

2323
.. _documentation: https://github.com/root-project/jsroot/blob/master/docs/JSROOT.md
2424

25-
In this project, you can see the application of JSRoot in the file `event-loader.ts`_ for extracting event information from the mdst .root file.
25+
In this project, you can see the application of JSRoot in the file `event-loader.ts`_ for extracting event information from the mdst *.root* file.
2626

2727
.. _event-loader.ts: https://github.com/belle2/display/blob/main/src/app/event-display/event-loader.ts

docs/source/developer/server.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Server Integration
22
------------------
33

4-
The Belle II event display web application is built using the Angular CLI. To integrate the app with the Apache server, follow these steps.
4+
The event display web application is built using the Angular CLI. To integrate the app with the Apache server, follow these steps.
55

66
1. **Build the App:**
77
Run the following command from the project directory to build the app:
@@ -49,4 +49,4 @@ The Belle II event display web application is built using the Angular CLI. To in
4949

5050
.. code-block:: console
5151
52-
$ sudo service apache2 restart
52+
$ sudo service apache2 restart

docs/source/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Belle II Event Display
7-
======================
6+
Belle II Event Display with Phoenix
7+
===================================
88

9-
**Belle II Event Display with Phoenix** is a project conducted during the Google Summer of Code 2023, aimed at providing a web-based tool for event display. The project's main objective is to enhance the usability and accessibility of Belle II results by allowing users to upload the *mdst .root* file and display the events on their browser. Both user documentation and developer documentation are included on this page.
9+
**Belle II Event Display with Phoenix** is a project conducted during the `Google Summer of Code 2023`_, aimed at providing a web-based tool for event display. The project's main objective is to enhance the usability and accessibility of Belle II results by allowing users to upload the mdst *.root* file and display the events on their browser. Both user documentation and developer documentation are included on this page.
10+
11+
.. _Google Summer of Code 2023: https://hepsoftwarefoundation.org/gsoc/blogs/2023/blog_Belle2_HieuLeCongMinh.html
1012

1113
.. toctree::
1214
:maxdepth: 2
@@ -16,4 +18,4 @@ Belle II Event Display
1618
developer
1719

1820
Check out the :doc:`user` section for further information, including how to
19-
:ref:`manipulate <usage>` the application.
21+
:ref:`manipulate <usage>` the application.

docs/source/user.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ User Documentation
33

44
A deployed web application can be accessed through the `link`_.
55

6-
.. _link: https://belle2-gsoc-2023-hieu-gsoc-draft.netlify.app/
6+
.. _link: https://display.belle2.org
77

88

99
.. toctree::
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
./user/installation.rst
1413
./user/usage.rst
14+
./user/installation.rst
15+

docs/source/user/event_display.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Import Events
223223

224224
Fig 17. Import Events
225225

226-
Clicking on the *Upload* icon will open a dialog where you can choose to import either an *mdst .root* file or a *json* file.
226+
Clicking on the *Upload* icon will open a dialog where you can choose to import either an mdst *.root* file or a *.json* file.
227227

228228
Importing a *.root* file requires some calculations before the events can be displayed, which could take a long time if the file contains a large number of events and objects. If you need to display the same file multiple times, you have the option to convert the *.root* file to a *.json* file (by an external tool) and import the *.json* file instead.
229229

0 commit comments

Comments
 (0)