-
Notifications
You must be signed in to change notification settings - Fork 22
docs: JOSS paper #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
docs: JOSS paper #337
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
086a78b
init paper
APN-Pucky fbdfdd3
Copy strucutre from vector
APN-Pucky 520bf1f
fix: mixup of files
APN-Pucky 0126fc4
Some sentence
APN-Pucky 56384fd
XML example explain
APN-Pucky 91b303b
put me first
APN-Pucky 274ee42
update tags
APN-Pucky aed69d6
add joss ci
APN-Pucky c17e32d
fix: loc
APN-Pucky cebf3c4
add xml example of format
APN-Pucky 7d79a97
add parameter table
APN-Pucky 9c757b4
separate unit
APN-Pucky 01a89bc
reverse cite
APN-Pucky 4ab8a13
Cite MCs
APN-Pucky 7c4f22b
Statement of need done?
APN-Pucky 70f559d
More text
APN-Pucky 5846c5f
v2 and v3
APN-Pucky a32eb84
++TODO
APN-Pucky a4d15a3
say what we support
APN-Pucky 05976e9
looks complete
APN-Pucky 1eb10f0
review
APN-Pucky 994e4f7
more
APN-Pucky 64c3f2a
ok
APN-Pucky b062c93
rm empty newline
APN-Pucky 7fd25d0
Move structure to sphinx
APN-Pucky d99f70f
link to own LHE format explanation
APN-Pucky 8cdcea8
remvoed table and xml struct
APN-Pucky 1e1dba7
sphinx bibtex
APN-Pucky 1173e88
more sphinx bibtex
APN-Pucky 0db0a14
Link classes
APN-Pucky 67fd26f
clean
APN-Pucky 87d31dc
rm header
APN-Pucky 536c84d
my final
APN-Pucky 1a76f34
Apply suggestions from code review
APN-Pucky f39958f
update readme title
APN-Pucky 9129370
clean unused refs
APN-Pucky f783ed7
Merge branch 'main' into draft
APN-Pucky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| name: Draft PDF | ||
| on: [push] | ||
|
|
||
| jobs: | ||
| paper: | ||
| runs-on: ubuntu-latest | ||
| name: Paper Draft | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Build draft PDF | ||
| uses: openjournals/openjournals-draft-action@master | ||
| with: | ||
| journal: joss | ||
| # This should be the path to the paper within your repo. | ||
| paper-path: paper/paper.md | ||
| - name: Upload | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: paper | ||
| # This is the output path where Pandoc will write the compiled | ||
| # PDF. Note, this should be the same directory as the input | ||
| # paper.md | ||
| path: paper/paper.pdf |
This file contains hidden or 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 hidden or 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 hidden or 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,4 @@ | ||
| Bibliography | ||
| ============ | ||
|
|
||
| .. bibliography:: |
This file contains hidden or 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 hidden or 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 hidden or 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,111 @@ | ||
| Les Houches Event Format | ||
| ======================== | ||
|
|
||
| The Les Houches Event (LHE) format uses an XML-like structure, but the content within the ``<init>` and ``<event>`` blocks consists of whitespace-separated values designed for straightforward parsing in Fortran. | ||
| It's first version was defined in :cite:`Alwall:2006yp`. | ||
| The ``<header>`` block can contain arbitrary XML content, usually metadata or comments explaining how the events were generated. | ||
| The following skeleton example illustrates the overall structure of an LHE file using the ``pylhe`` naming of the attributes | ||
APN-Pucky marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .. code-block:: xml | ||
|
|
||
| <LesHouchesEvents version="1.0"> | ||
eduardo-rodrigues marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <header></header> | ||
| <init> | ||
| beamA beamB energyA energyB PDFgroupA PDFgroupB PDFsetA PDFsetB weightingStrategy numProcesses | ||
| xSection error unitWeight procId | ||
| ... | ||
| # additional hash-commented information can go here | ||
| </init> | ||
| <event> | ||
| nparticles pid weight scale aqed aqcd | ||
| id status mother1 mother2 color1 color2 px py pz e m lifetime spin | ||
| ... | ||
| # additional hash-commented information can go here | ||
| </event> | ||
| ... | ||
| </LesHouchesEvents> | ||
|
|
||
| The table below summarizes the main parameters found in LHE files grouped by their ``dataclass`` representation in ``pylhe``. | ||
|
|
||
| +-------------------+-------+--------------------------------------+------+ | ||
| | Parameter | Type | Description | Unit | | ||
| +===================+=======+======================================+======+ | ||
| | :py:class:`pylhe.LHEInitInfo` | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | beamA | int | PDG ID of first beam particle | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | beamB | int | PDG ID of second beam particle | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | energyA | float | Energy of first beam particle | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | energyB | float | Energy of second beam particle | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | PDFgroupA | int | PDF group ID for first beam | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | PDFgroupB | int | PDF group ID for second beam | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | PDFsetA | int | PDF set ID for first beam | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | PDFsetB | int | PDF set ID for second beam | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | weightingStrategy | int | Weighting strategy | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | numProcesses | int | Number of processes | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | :py:class:`pylhe.LHEProcInfo` | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | xSection | float | Cross section | pb | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | error | float | Cross section uncertainty | pb | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | unitWeight | float | Maximum cross section. | pb | | ||
APN-Pucky marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| +-------------------+-------+--------------------------------------+------+ | ||
| | procId | int | Process ID | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | :py:class:`pylhe.LHEEventInfo` | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | nparticles | int | Number of particles in event | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | pid | int | Process ID for this event | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | weight | float | Event weight | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | scale | float | Factorization/renormalization scale | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | aqed | float | QED coupling constant | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | aqcd | float | QCD coupling constant | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | :py:class:`pylhe.LHEParticle` | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | id | int | PDG particle ID | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | status | int | Particle status code | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | mother1 | int | Index of first mother particle | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | mother2 | int | Index of second mother particle | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | color1 | int | First color line index | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | color2 | int | Second color line index | - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | px | float | x-component of momentum | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | py | float | y-component of momentum | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | pz | float | z-component of momentum | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | e | float | Energy | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | m | float | Mass | GeV | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | lifetime | float | Proper lifetime | mm | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
| | spin | float | Spin information. 9.0 for unpolarized| - | | ||
| +-------------------+-------+--------------------------------------+------+ | ||
|
|
||
| Further details can be found in the original definition of the Les Houches Event file standard. | ||
APN-Pucky marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Besides the original publication there were two extensions to the LHE format, version 2.0 in 2009 :cite:`Butterworth:2010ym` and version 3.0 in 2013 :cite:`Andersen:2014efa`. | ||
| However, ``pylhe`` currently only implements the widely adopted extension from version 1.0, that is the addition of multiple weights via ``<initrwgt>``, ``<rwgt>``, ``<weight>``, ``<weights>``, ``<wgt>``, and ``<weightgroup>``. | ||
| If in the future there is a demand for ``<scales>``, ``<generator>``, ``<pdfinfo>``, or ``<clustering>`` support these can be added as well. | ||
APN-Pucky marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.