Skip to content

Commit

Permalink
Merge fa7e232 into 1500577
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato authored Feb 6, 2024
2 parents 1500577 + fa7e232 commit a4e079a
Show file tree
Hide file tree
Showing 12 changed files with 363 additions and 46 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ There are a number of issues and problems still to be resolved. We keep track of
- Better handle collectionID in one-to-many relations - *DONE*
- Be able to read RNTuple files in addition to TTree files - *DONE*
- Generate doc string with member information - *DONE*
- Generate accessors for one-to-many relations, vector members
- Generate accessors for one-to-many relations, vector members - *DONE*
- Support latest version (RC2) of RNTuple format (waiting for a file being generated)


Expand Down
9 changes: 5 additions & 4 deletions examples/read_reco_rntuple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ using EDM4hep.RootIO
cd(@__DIR__)

#f = "Output_REC_rntuple.root"
f = "Output_REC.root"
#f = "Output_REC.root"
f = "/Users/mato/cernbox/Data/Dirac-Dst-E250-e2e2h_inv.eL.pR_bg-00001.root"

reader = RootIO.Reader(f)
events = RootIO.get(reader, "events");

evt = events[1];

tracks = RootIO.get(reader, evt, "SiTracks_Refitted");
for t in tracks
println("Track $(t.index) with sum(subdet hit numbers) $(sum(t.subdetectorHitNumbers))")
particles = RootIO.get(reader, evt, "PandoraPFOs");
for p in particles
println("Particle $(p.index) with energy $(p.energy)")
end


Expand Down
16 changes: 8 additions & 8 deletions podio/genComponents.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
struct HitLevelData
HitLevelData
# Fields
- `cellID::UInt64`: cell id
- `N::UInt32`: number of reconstructed ionization cluster.
Expand All @@ -15,7 +15,7 @@ struct HitLevelData <: POD
end

"""
struct Vector3d
Vector3d
# Fields
- `x::Float64`:
- `y::Float64`:
Expand All @@ -29,7 +29,7 @@ struct Vector3d <: POD
end

"""
struct Quantity
Quantity
# Fields
- `type::Int16`: flag identifying how to interpret the quantity
- `value::Float32`: value of the quantity
Expand All @@ -43,7 +43,7 @@ struct Quantity <: POD
end

"""
struct Vector3f
Vector3f
# Fields
- `x::Float32`:
- `y::Float32`:
Expand All @@ -57,7 +57,7 @@ struct Vector3f <: POD
end

"""
struct TrackState
TrackState
# Fields
- `location::Int32`: for use with At{Other|IP|FirstHit|LastHit|Calorimeter|Vertex}|LastLocation
- `D0::Float32`: transverse impact parameter
Expand All @@ -83,7 +83,7 @@ struct TrackState <: POD
end

"""
struct Hypothesis
Hypothesis
# Fields
- `chi2::Float32`: chi2
- `expected::Float32`: expected value
Expand All @@ -97,7 +97,7 @@ struct Hypothesis <: POD
end

"""
struct Vector2i
Vector2i
# Fields
- `a::Int32`:
- `b::Int32`:
Expand Down Expand Up @@ -125,7 +125,7 @@ struct Vector4f <: POD
end

"""
struct Vector2f
Vector2f
# Fields
- `a::Float32`:
- `b::Float32`:
Expand Down
Loading

0 comments on commit a4e079a

Please sign in to comment.