Skip to content

Commit

Permalink
Added some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Feb 20, 2024
1 parent c118cc3 commit c4efca0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Documentation for `EDM4hep.jl` public interface.
## Index - Types
```@index
Pages = ["api.md"]
Modules = [EDM4hep, EDM4hep.RootIO]
Modules = [EDM4hep, EDM4hep.RootIO, EDM4hep.Histograms]
Order = [:type]
```
## Index - Functions
```@index
Pages = ["api.md"]
Modules = [EDM4hep, EDM4hep.RootIO]
Modules = [EDM4hep, EDM4hep.RootIO, EDM4hep.Histograms]
Order = [:function]
```

Expand All @@ -24,12 +24,12 @@ Order = [:module]
This is the list of all types defined for EDM4hep using the PODIO yaml file.

```@autodocs
Modules = [EDM4hep, EDM4hep.RootIO]
Modules = [EDM4hep, EDM4hep.RootIO, EDM4hep.Histograms]
Order = [:type]
```
## Functions
```@autodocs
Modules = [EDM4hep, EDM4hep.RootIO]
Modules = [EDM4hep, EDM4hep.RootIO, EDM4hep.Histograms]
Order = [:function]
```

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
```
### examples/FCC/analysis_mH-recoil.jl
This is basically the example `higgs/mH-recoil/mumu` from [FCCAnalyses](https://github.com/HEP-FCC/FCCAnalyses). It shows in a realistic manner hoe to develop analysis functions using the Data Types from EDM4hep to created high-level analysis functions.
The Jupyter notebook [analysis_mH-recoil.ipynb](../../examples/FCC/analysis_mH-recoil.pdf) shows the same example in form of a notebook.
The Jupyter notebook [analysis_mH-recoil.ipynb](./assets/analysis_mH-recoil.pdf) shows the same example in form of a notebook.

## EDM4hep Data Model
This is the diagram for the EDM4hep datamodel including relationships.
Expand Down
8 changes: 3 additions & 5 deletions test/testRootReaderLegacy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ using EDM4hep.RootIO
recps = RootIO.get(reader, evt, "ReconstructedParticles");
tracks = RootIO.get(reader, evt, "EFlowTrack")
pids = RootIO.get(reader, evt, "ParticleIDs")
if VERSION >= v"1.10" # Seems to be working only for >= 1.10
muons = RootIO.get(reader, evt, "Muon#0")
if length(muons) == 2
@test abs(sum(muons.charge)) <= 2.0f0
end
muons = RootIO.get(reader, evt, "Muon#0", btype=ObjectID{ReconstructedParticle})
if length(muons) == 2
@test abs(sum(muons.charge)) <= 2.0f0
end
end

Expand Down

0 comments on commit c4efca0

Please sign in to comment.