Skip to content

Commit

Permalink
general commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSWDavis committed Feb 12, 2024
1 parent 9b7c202 commit 0ff9c33
Show file tree
Hide file tree
Showing 2 changed files with 6,242 additions and 8,955 deletions.
9 changes: 7 additions & 2 deletions SpaceCherenkovSimulator/Cherenkov_run_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_total_photon_inducing_event_count_per_second(self, threshold_photon_valu

return total_photon_inducing_event_count_per_second

def plot(self,**xargs):
def plot(self,return_values=False,**xargs):

# self.pulse_height_values["Si_detection_probability"].hist(bins=100,**xargs)

Expand All @@ -202,6 +202,10 @@ def plot(self,**xargs):
plt.title("pulse height distribution")
plt.legend(loc="center left",bbox_to_anchor=(1.1,0.5))

if return_values == True:
return (normalised_counts / np.diff(hist_values[1]),
hist_values[1])

def plot_differential_parents(self,plot_quantiles=False,**xargs):

# self.pulse_height_values["Si_detection_probability"].hist(bins=100,**xargs)
Expand Down Expand Up @@ -538,7 +542,8 @@ def get_coincidence_tuple(self, id1=1, id2=2, FL_or_RA="FL", thresh=0.):
coincidence_df = self.get_coincidence_DF(id1, id2, FL_or_RA)

coincidence_tuple = Cherenkov_run_tuple(DF_of_output_hits=coincidence_df,
Cherenkov_run_label=f"{self.Cherenkov_run_label}, {FL_or_RA} coincidence")
Cherenkov_run_label=f"{self.Cherenkov_run_label}, {FL_or_RA} coincidence",
use_experiment_PDE=self.use_experiment_PDE)

return coincidence_tuple

Expand Down
Loading

0 comments on commit 0ff9c33

Please sign in to comment.