Skip to content

added eff area and background rates#20

Open
TjarkMiener wants to merge 3 commits into
mainfrom
polish_plotting
Open

added eff area and background rates#20
TjarkMiener wants to merge 3 commits into
mainfrom
polish_plotting

Conversation

@TjarkMiener

Copy link
Copy Markdown
Collaborator

also return data points from the benchmark plotting functions

also return data points from the benchmark plotting functions
@TjarkMiener TjarkMiener marked this pull request as ready for review December 9, 2025 14:55
Comment on lines +2973 to +2982
import uproot
root_irf_file = "/users/tmiener/software/CTLearn-Manager/Prod5-North-20deg-SouthAz-4LSTs.180000s-v0.1.root"
ile = uproot.open(root_irf_file)
# Get energy bin edges and calculate bin centers
energy_edges = 10**(ile["ERes"].axis().edges())
# Calculate bin centers as the geometric mean of consecutive edges (appropriate for log-scale data)
energy_centers = (energy_edges[:-1] + energy_edges[1:]) / 2.0
#ax.plot(energy_centers[1:], ile["ERes"].values()[1:], label='4LSTs - CTAO Prod5 reference', color='black', ls='--')
ax.plot(energy_centers[1:], ile["ERes"].values()[1:], color='black', ls='--')

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those stuff should be deleted. Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant