-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods that return the true rapidity of LorentzVectors (E, p) these are defined for both cartesian and cylindrical cases as rap() Add methods for the square of mass and the square of momentum as these can be useful for more specialist calculations (but not exported)
- Loading branch information
1 parent
759f031
commit 1672128
Showing
6 changed files
with
48 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/Manifest.toml | ||
.vscode/* |
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,23 +1,32 @@ | ||
# LorentzVectorHEP | ||
|
||
Provides two types (and the conversion between the two): | ||
|
||
- `LorentzVector` (energy, px, py, pz) (from [LorentzVectors.jl](https://github.com/JLTastet/LorentzVectors.jl)) | ||
- `LorentzVectorCyl` (pt, eta, phi, mass) | ||
|
||
you can also use `fromPtEtaPhiE(pt, eta, phi, energy) --> LorentzVectorCyl`. | ||
|
||
and these functions for both of them: | ||
|
||
```julia | ||
px, py, pz, energy, pt, eta, phi, mass | ||
px, py, pz, energy, pt, rap, eta, phi, mass | ||
``` | ||
|
||
as well as these utility functions: | ||
|
||
```julia | ||
deltar, deltaphi, deltaeta, mt, mt2 | ||
``` | ||
(some of them have alias, `ΔR, Δϕ, Δη`) | ||
|
||
(some of them have aliases, `ΔR, Δϕ, Δη`) | ||
|
||
There are some unexported methods which are useful for more specialist use cases: | ||
|
||
```julia | ||
mass2, pt2, mt, mt2, mag | ||
``` | ||
|
||
## LHC coordinate system | ||
|
||
![](https://cds.cern.ch/record/1699952/files/Figures_T_Coordinate.png) | ||
![LHC Coordinate System](https://cds.cern.ch/record/1699952/files/Figures_T_Coordinate.png) |
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
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