From 7507ad4ab2c7b27c53c8bea1d5fbf70309a0c6e9 Mon Sep 17 00:00:00 2001 From: ViaFerrata <michimoser@onlinehome.de> Date: Thu, 28 Mar 2019 15:51:39 +0100 Subject: [PATCH] Minor. --- .../conf_ORCA_115l_1-5GeV_xyz-c.toml | 0 .../conf_ORCA_115l_1-5GeV_xyz-t.toml | 0 .../conf_ORCA_115l_3-100GeV_xyz-c.toml | 0 .../conf_ORCA_115l_3-100GeV_xyz-t.toml | 0 .../conf_ORCA_115l_mupage_xyz-c.toml | 0 .../conf_ORCA_115l_mupage_xyz-t.toml | 0 .../conf_ORCA_115l_random_noise_xyz-c.toml | 0 .../conf_ORCA_115l_random_noise_xyz-t.toml | 0 .../conf_ORCA_115l_1-5GeV_xyz-c.toml | 0 .../conf_ORCA_115l_1-5GeV_xyz-t.toml | 0 .../conf_ORCA_115l_3-100GeV_xyz-c.toml | 0 .../conf_ORCA_115l_3-100GeV_xyz-t.toml | 0 .../conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml | 0 .../conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml | 0 ...conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml | 0 ...conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml | 0 .../submit_data_to_images.sh | 6 +-- .../utilities/__init__.py | 0 .../count_number_of_events_in_folder.py | 0 .../utilities/dom_binning.py | 0 .../get_func_for_flat_track_shower.py | 41 ++++++++++++------- .../utilities/test_n_evts.py | 0 .../utilities/timecut_test/__init__.py | 0 .../timecut_test/plots/elec-CC/.gitkeep | 0 .../timecut_test/plots/muon-CC/.gitkeep | 0 .../timecut_test/plots/mupage/.gitkeep | 0 .../timecut_test/plots/random_noise/.gitkeep | 0 .../timecut_test/plots/tau-CC/.gitkeep | 0 .../utilities/timecut_test/timecut_test.py | 0 29 files changed, 29 insertions(+), 18 deletions(-) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml (100%) rename {user => scraps/user}/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-t.toml (100%) rename {user => scraps/user}/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml (100%) rename {user => scraps/user}/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml (100%) rename {user => scraps/user}/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml (100%) rename {user => scraps/user}/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml (100%) rename {user => scraps/user}/job_submission_scripts/submit_data_to_images.sh (97%) rename {orcasong_contrib => scraps}/utilities/__init__.py (100%) rename {orcasong_contrib => scraps}/utilities/count_number_of_events_in_folder.py (100%) rename {orcasong_contrib => scraps}/utilities/dom_binning.py (100%) rename {orcasong_contrib => scraps}/utilities/get_func_for_flat_track_shower.py (84%) rename {orcasong_contrib => scraps}/utilities/test_n_evts.py (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/__init__.py (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/plots/elec-CC/.gitkeep (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/plots/muon-CC/.gitkeep (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/plots/mupage/.gitkeep (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/plots/random_noise/.gitkeep (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/plots/tau-CC/.gitkeep (100%) rename {orcasong_contrib => scraps}/utilities/timecut_test/timecut_test.py (100%) diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-c.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-c.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-c.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-c.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-t.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-t.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-t.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_1-5GeV_xyz-t.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-c.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-c.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-c.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-c.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-t.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-t.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-t.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_3-100GeV_xyz-t.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-c.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-c.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-c.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-c.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-t.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-t.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-t.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_mupage_xyz-t.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-c.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-c.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-c.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-c.toml diff --git a/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-t.toml b/scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-t.toml similarity index 100% rename from user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-t.toml rename to scraps/user/config/orca_115l_mupage_rn_neutr_classifier/conf_ORCA_115l_random_noise_xyz-t.toml diff --git a/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-c.toml b/scraps/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-c.toml similarity index 100% rename from user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-c.toml rename to scraps/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-c.toml diff --git a/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-t.toml b/scraps/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-t.toml similarity index 100% rename from user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-t.toml rename to scraps/user/config/orca_115l_regression/conf_ORCA_115l_1-5GeV_xyz-t.toml diff --git a/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml b/scraps/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml similarity index 100% rename from user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml rename to scraps/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml diff --git a/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-t.toml b/scraps/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-t.toml similarity index 100% rename from user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-t.toml rename to scraps/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-t.toml diff --git a/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml b/scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml similarity index 100% rename from user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml rename to scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-1.toml diff --git a/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml b/scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml similarity index 100% rename from user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml rename to scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml diff --git a/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml b/scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml similarity index 100% rename from user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml rename to scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-1.toml diff --git a/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml b/scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml similarity index 100% rename from user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml rename to scraps/user/config/orca_115l_ts_classifier/conf_ORCA_115l_3-100GeV_xyz-t_tight-2.toml diff --git a/user/job_submission_scripts/submit_data_to_images.sh b/scraps/user/job_submission_scripts/submit_data_to_images.sh similarity index 97% rename from user/job_submission_scripts/submit_data_to_images.sh rename to scraps/user/job_submission_scripts/submit_data_to_images.sh index aa70089..65d1761 100644 --- a/user/job_submission_scripts/submit_data_to_images.sh +++ b/scraps/user/job_submission_scripts/submit_data_to_images.sh @@ -25,10 +25,10 @@ python_env_folder=/home/hpc/capn/mppi033h/.virtualenv/python_3_env/ job_logs_folder=/home/woody/capn/mppi033h/logs/orcasong/cout detx_filepath=/home/woody/capn/mppi033h/Code/OrcaSong/orcasong_contrib/detx_files/orca_115strings_av23min20mhorizontal_18OMs_alt9mvertical_v1.detx -config_file=/home/woody/capn/mppi033h/Code/OrcaSong/user/config/orca_115l_regression/conf_ORCA_115l_3-100GeV_xyz-c.toml +config_file=/home/woody/capn/mppi033h/Code/OrcaSong/user/config/orca_115l_ts_classifier/conf_ORCA_115l_1-5GeV_xyz-t_tight-2.toml -particle_type=muon-CC -mc_prod=neutr_3-100GeV +particle_type=elec-NC +mc_prod=neutr_1-5GeV # total number of files per job # For neutrinos 3-100GeV: diff --git a/orcasong_contrib/utilities/__init__.py b/scraps/utilities/__init__.py similarity index 100% rename from orcasong_contrib/utilities/__init__.py rename to scraps/utilities/__init__.py diff --git a/orcasong_contrib/utilities/count_number_of_events_in_folder.py b/scraps/utilities/count_number_of_events_in_folder.py similarity index 100% rename from orcasong_contrib/utilities/count_number_of_events_in_folder.py rename to scraps/utilities/count_number_of_events_in_folder.py diff --git a/orcasong_contrib/utilities/dom_binning.py b/scraps/utilities/dom_binning.py similarity index 100% rename from orcasong_contrib/utilities/dom_binning.py rename to scraps/utilities/dom_binning.py diff --git a/orcasong_contrib/utilities/get_func_for_flat_track_shower.py b/scraps/utilities/get_func_for_flat_track_shower.py similarity index 84% rename from orcasong_contrib/utilities/get_func_for_flat_track_shower.py rename to scraps/utilities/get_func_for_flat_track_shower.py index 44f6240..c7e38da 100644 --- a/orcasong_contrib/utilities/get_func_for_flat_track_shower.py +++ b/scraps/utilities/get_func_for_flat_track_shower.py @@ -58,10 +58,11 @@ def get_energies_for_fpaths(fpath_list, fpath_list_key_ic, cut_e_higher_than_3=F f = h5py.File(fpath, 'r') - tracks = f['mc_tracks'] - tracks_neutr = tracks[tracks['bjorkeny'] != 0] + # tracks = f['mc_tracks'] + # tracks_neutr = tracks[tracks['bjorkeny'] != 0] + # assert f['event_info'].shape == tracks_neutr.shape + tracks_neutr = f['y'] - assert f['event_info'].shape == tracks_neutr.shape energies = tracks_neutr['energy'] if cut_e_higher_than_3 is True: @@ -207,22 +208,23 @@ def plot_e_and_make_flat_func(energies_for_ic): # save e_bins and corresponding fractions # make e_bins with mean center - e_bins = [] - for i in range(bins.shape[0] - 1): - e_mean = (bins[i] + bins[i+1]) / 2 - e_bins.append(e_mean) - e_bins = np.array(e_bins) - - - arr_fract_for_e_bins = np.vstack((e_bins, track_div_shower)) - print(arr_fract_for_e_bins) - - np.save('./arr_fract_for_e_bins.npy', arr_fract_for_e_bins) + # e_bins = [] + # for i in range(bins.shape[0] - 1): + # e_mean = (bins[i] + bins[i+1]) / 2 + # e_bins.append(e_mean) + # + # e_bins = np.array(e_bins) + # + # + # arr_fract_for_e_bins = np.vstack((e_bins, track_div_shower)) + # print(arr_fract_for_e_bins) + # + # np.save('./arr_fract_for_e_bins.npy', arr_fract_for_e_bins) def main(): - dirs = { + dirs_temp = { 'muon_cc_3_100': '/home/saturn/capn/mppi033h/Data/raw_data/ORCA_JTE_NEMOWATER/calibrated/with_jte_times/3-100GeV/muon-CC', 'muon_cc_1_5': '/home/saturn/capn/mppi033h/Data/raw_data/ORCA_JTE_NEMOWATER/calibrated/with_jte_times/1-5GeV/muon-CC', 'elec_cc_3_100': '/home/saturn/capn/mppi033h/Data/raw_data/ORCA_JTE_NEMOWATER/calibrated/with_jte_times/3-100GeV/elec-CC', @@ -231,6 +233,15 @@ def main(): 'elec_nc_1_5': '/home/saturn/capn/mppi033h/Data/raw_data/ORCA_JTE_NEMOWATER/calibrated/with_jte_times/1-5GeV/elec-NC' } + dirs = { + 'muon_cc_3_100': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/muon-CC/3-100GeV/xyzt', + 'muon_cc_1_5': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/muon-CC/1-5GeV/xyzt', + 'elec_cc_3_100': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/elec-CC/3-100GeV/xyzt', + 'elec_cc_1_5': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/elec-CC/1-5GeV/xyzt', + 'elec_nc_3_100': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/elec-NC/3-100GeV/xyzt', + 'elec_nc_1_5': '/home/saturn/capn/mppi033h/Data/input_images/ORCA_2016_115l/tight_1_60b_ts_classifier/elec-NC/1-5GeV/xyzt' + } + if os.path.isfile('./energies_for_ic.npz') is True: energies_for_ic = load_energies_for_ic() diff --git a/orcasong_contrib/utilities/test_n_evts.py b/scraps/utilities/test_n_evts.py similarity index 100% rename from orcasong_contrib/utilities/test_n_evts.py rename to scraps/utilities/test_n_evts.py diff --git a/orcasong_contrib/utilities/timecut_test/__init__.py b/scraps/utilities/timecut_test/__init__.py similarity index 100% rename from orcasong_contrib/utilities/timecut_test/__init__.py rename to scraps/utilities/timecut_test/__init__.py diff --git a/orcasong_contrib/utilities/timecut_test/plots/elec-CC/.gitkeep b/scraps/utilities/timecut_test/plots/elec-CC/.gitkeep similarity index 100% rename from orcasong_contrib/utilities/timecut_test/plots/elec-CC/.gitkeep rename to scraps/utilities/timecut_test/plots/elec-CC/.gitkeep diff --git a/orcasong_contrib/utilities/timecut_test/plots/muon-CC/.gitkeep b/scraps/utilities/timecut_test/plots/muon-CC/.gitkeep similarity index 100% rename from orcasong_contrib/utilities/timecut_test/plots/muon-CC/.gitkeep rename to scraps/utilities/timecut_test/plots/muon-CC/.gitkeep diff --git a/orcasong_contrib/utilities/timecut_test/plots/mupage/.gitkeep b/scraps/utilities/timecut_test/plots/mupage/.gitkeep similarity index 100% rename from orcasong_contrib/utilities/timecut_test/plots/mupage/.gitkeep rename to scraps/utilities/timecut_test/plots/mupage/.gitkeep diff --git a/orcasong_contrib/utilities/timecut_test/plots/random_noise/.gitkeep b/scraps/utilities/timecut_test/plots/random_noise/.gitkeep similarity index 100% rename from orcasong_contrib/utilities/timecut_test/plots/random_noise/.gitkeep rename to scraps/utilities/timecut_test/plots/random_noise/.gitkeep diff --git a/orcasong_contrib/utilities/timecut_test/plots/tau-CC/.gitkeep b/scraps/utilities/timecut_test/plots/tau-CC/.gitkeep similarity index 100% rename from orcasong_contrib/utilities/timecut_test/plots/tau-CC/.gitkeep rename to scraps/utilities/timecut_test/plots/tau-CC/.gitkeep diff --git a/orcasong_contrib/utilities/timecut_test/timecut_test.py b/scraps/utilities/timecut_test/timecut_test.py similarity index 100% rename from orcasong_contrib/utilities/timecut_test/timecut_test.py rename to scraps/utilities/timecut_test/timecut_test.py -- GitLab