def plot_hist_sbil(self):
     sbil_hist = plotting.hist_from_pandas_frame(data_frame=self.__lin_data,
                                                 col_label=self.__sbil_label,
                                                 nbins=setts.nbins,
                                                 xlabel=self.__ratios.det2.name +
                                                        " SBIL [hz/" + r'$\mu$' + "b]",
                                                 ylabel='Counts',
                                                 # title='by Nls Detectors Ratios Histogram',
                                                 # xmin=setts.ratio_min, xmax=setts.ratio_max,
                                                 mean=self.__sbil_mean, stdv=self.__sbil_stdv,
                                                 energy_year_label=self.__year_energy_label)
     self.__plt_plots.append(['sbil_hist', sbil_hist[0][0].get_figure()])
예제 #2
0
 def plot_ratio_hist(self):
     ratio_hist = plotting.hist_from_pandas_frame(
         data_frame=self.__common_data_filtered,
         col_label=self.label_ratio,
         nbins=setts.nbins,
         xlabel=self.__label_ratio + " ratio",
         ylabel='Counts',
         # title='Detectors Ratios Histogram',
         xmin=setts.ratio_min,
         xmax=setts.ratio_max,
         mean=self.__ratios_mean,
         stdv=self.__ratios_stdv,
         energy_year_label=self.__year_energy_label)
     self.__plt_plots.append(['ratio_hist', ratio_hist[0][0].get_figure()])
예제 #3
0
 def plot_ratio_hist_weighted(self):
     ratio_hist_lumi2_w = plotting.hist_from_pandas_frame(
         data_frame=self.__common_data_filtered,
         col_label=self.label_ratio,
         nbins=setts.nbins,
         xlabel=self.__label_ratio + " ratio",
         ylabel="Integrated luminosity [$" + self.lumi_unit + "^{-1}$]",
         # title='Detectors Ratios Histogram (lumi weighted)',
         xmin=setts.ratio_min,
         xmax=setts.ratio_max,
         mean=self.__ratios_lw_mean,
         stdv=self.__ratios_lw_stdv,
         energy_year_label=self.__year_energy_label,
         weight_label=self.det2.lumi_rec_label)
     self.__plt_plots.append(
         ['ratio_hist_lw', ratio_hist_lumi2_w[0][0].get_figure()])
예제 #4
0
 def plot_nls_ratio_hist_weighted_normalized(self):
     ratio_hist_lumi2_w = plotting.hist_from_pandas_frame(
         data_frame=self.__common_data_filtered_no_nan,
         col_label=self.__label_ratio_nls_normalized,
         nbins=setts.nbins,
         xlabel=self.__ratios.label_ratio + " ratios in " +
         str(self.__ratios.nls) + ' LS',
         ylabel="Integrated luminosity [$" + self.__ratios.lumi_unit +
         "^{-1}$]",
         # title='Detectors Ratios Histogram (lumi weighted)',
         xmin=setts.ratio_min,
         xmax=setts.ratio_max,
         #mean=self.__nls_ratios_lw_mean,
         stdv=self.__nls_ratios_lw_stdv_dof_corr,
         energy_year_label=self.__ratios.year_energy_label,
         weight_label=self.__ratios.by_nls_lumi_label)
     self.__sns_plots['nls_ratio_hist_lw_normalized'] = ratio_hist_lumi2_w[
         0][0].get_figure()