Skip to content

Commit

Permalink
speed measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Feb 22, 2024
1 parent 97d63a3 commit 5d169b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/FCC/analysis_mH-recoil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ end

myhists = Histograms()

for evt in events
nevts = 0
elaptime = @elapsed for evt in events
nevts += 1
recps = RootIO.get(reader, evt, "ReconstructedParticles");
muons = RootIO.get(reader, evt, "Muon#0"; btype=ObjectID{ReconstructedParticle})
sel_muons = filter(x -> pₜ(x) > 10GeV, muons)
Expand All @@ -61,5 +63,6 @@ for evt in events
end
end
end
println("Events processed: $nevts, elapsed time: $elaptime s, events/s: $(nevts/elaptime)")

do_plot(myhists)

0 comments on commit 5d169b4

Please sign in to comment.