Skip to content

Commit 3d69b46

Browse files
authored
Use concrete int type in HepMC3 Particle struct (#180)
1 parent 56badf1 commit 3d69b46

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/HepMC3.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ A struct representing a particle in the HepMC3 library.
5252
5353
# Fields
5454
- `momentum::LorentzVector{T}`: The momentum of the particle.
55-
- `status::Integer`: The status code of the particle.
56-
- `pdgid::Integer`: The PDG ID of the particle.
57-
- `barcode::Integer`: The barcode of the particle.
58-
- `vertex::Integer`: The vertex ID of the particle.
55+
- `status::Int`: The status code of the particle.
56+
- `pdgid::Int`: The PDG ID of the particle.
57+
- `barcode::Int`: The barcode of the particle.
58+
- `vertex::Int`: The vertex ID of the particle.
5959
6060
"""
6161
struct Particle{T}
6262
momentum::LorentzVector{T}
63-
status::Integer
64-
pdgid::Integer
65-
barcode::Integer
66-
vertex::Integer
63+
status::Int
64+
pdgid::Int
65+
barcode::Int
66+
vertex::Int
6767
end
6868

6969
Particle{T}() where {T} = Particle(LorentzVector{T}(0.0, 0.0, 0.0, 0.0), 0, 0, 0, 0)

0 commit comments

Comments
 (0)