# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import numpy as np
import uproot
import matplotlib.pyplot as plt
from tensorflow import keras
from sificc_lib import AI, utils, Event, Simulation, root_files, DataModel

# %matplotlib inline
# -

simulation = Simulation(file_name=root_files.HPC_LLR, clusters_limit=8)

# %%time
DataModel.generate_training_data(simulation=simulation, 
                                 output_name='data-mtx-top-8.npz')

# %%time
# generate training data for event type 2 only
DataModel.generate_training_data(simulation=simulation, 
                                 output_name='data-mtx-top-8-event2.npz', 
                                 event_type=2)

StarcoderdataJupyterScriptsDedupFiltered