93 efficiency_Sig_noMTD_EB , efficiency_Bkg_noMTD_EB , efficiency_Sig_noMTD_EE , efficiency_Bkg_noMTD_EE = [],[],[],[]
95 if self.cut_type ==
True:
97 efficiency_Sig_4sigma_EB , efficiency_Bkg_4sigma_EB , efficiency_Sig_4sigma_EE , efficiency_Bkg_4sigma_EE = [],[],[],[]
98 efficiency_Sig_3sigma_EB , efficiency_Bkg_3sigma_EB , efficiency_Sig_3sigma_EE , efficiency_Bkg_3sigma_EE = [],[],[],[]
99 efficiency_Sig_2sigma_EB , efficiency_Bkg_2sigma_EB , efficiency_Sig_2sigma_EE , efficiency_Bkg_2sigma_EE = [],[],[],[]
101 for i
in range( len(self.Sig_hists[
'Sig_noMTD_EB'][0]) ):
103 efficiency_Sig_noMTD_EB.append( sum(self.Sig_hists[
'Sig_noMTD_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_noMTD_EB'][0]) )
104 efficiency_Sig_4sigma_EB.append( sum(self.Sig_hists[
'Sig_4sigma_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_4sigma_EB'][0]) )
105 efficiency_Sig_3sigma_EB.append( sum(self.Sig_hists[
'Sig_3sigma_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_3sigma_EB'][0]) )
106 efficiency_Sig_2sigma_EB.append( sum(self.Sig_hists[
'Sig_2sigma_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_2sigma_EB'][0]) )
108 efficiency_Bkg_noMTD_EB.append( sum(self.Bkg_hists[
'Bkg_noMTD_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_noMTD_EB'][0]) )
109 efficiency_Bkg_4sigma_EB.append( sum(self.Bkg_hists[
'Bkg_4sigma_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_4sigma_EB'][0]) )
110 efficiency_Bkg_3sigma_EB.append( sum(self.Bkg_hists[
'Bkg_3sigma_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_3sigma_EB'][0]) )
111 efficiency_Bkg_2sigma_EB.append( sum(self.Bkg_hists[
'Bkg_2sigma_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_2sigma_EB'][0]) )
114 efficiency_Sig_noMTD_EE.append( sum(self.Sig_hists[
'Sig_noMTD_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_noMTD_EE'][0]) )
115 efficiency_Sig_4sigma_EE.append( sum(self.Sig_hists[
'Sig_4sigma_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_4sigma_EE'][0]) )
116 efficiency_Sig_3sigma_EE.append( sum(self.Sig_hists[
'Sig_3sigma_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_3sigma_EE'][0]) )
117 efficiency_Sig_2sigma_EE.append( sum(self.Sig_hists[
'Sig_2sigma_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_2sigma_EE'][0]) )
119 efficiency_Bkg_noMTD_EE.append( sum(self.Bkg_hists[
'Bkg_noMTD_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_noMTD_EE'][0]) )
120 efficiency_Bkg_4sigma_EE.append( sum(self.Bkg_hists[
'Bkg_4sigma_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_4sigma_EE'][0]) )
121 efficiency_Bkg_3sigma_EE.append( sum(self.Bkg_hists[
'Bkg_3sigma_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_3sigma_EE'][0]) )
122 efficiency_Bkg_2sigma_EE.append( sum(self.Bkg_hists[
'Bkg_2sigma_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_2sigma_EE'][0]) )
125 self.Sig_iso_eff[
'Sig_noMTD_EB'] , self.Bkg_iso_eff[
'Bkg_noMTD_EB'] = efficiency_Sig_noMTD_EB , efficiency_Bkg_noMTD_EB
126 self.Sig_iso_eff[
'Sig_4sigma_EB'] , self.Bkg_iso_eff[
'Bkg_4sigma_EB'] = efficiency_Sig_4sigma_EB , efficiency_Bkg_4sigma_EB
127 self.Sig_iso_eff[
'Sig_3sigma_EB'] , self.Bkg_iso_eff[
'Bkg_3sigma_EB'] = efficiency_Sig_3sigma_EB , efficiency_Bkg_3sigma_EB
128 self.Sig_iso_eff[
'Sig_2sigma_EB'] , self.Bkg_iso_eff[
'Bkg_2sigma_EB'] = efficiency_Sig_2sigma_EB , efficiency_Bkg_2sigma_EB
130 self.Sig_iso_eff[
'Sig_noMTD_EE'] , self.Bkg_iso_eff[
'Bkg_noMTD_EE'] = efficiency_Sig_noMTD_EE , efficiency_Bkg_noMTD_EE
131 self.Sig_iso_eff[
'Sig_4sigma_EE'] , self.Bkg_iso_eff[
'Bkg_4sigma_EE'] = efficiency_Sig_4sigma_EE , efficiency_Bkg_4sigma_EE
132 self.Sig_iso_eff[
'Sig_3sigma_EE'] , self.Bkg_iso_eff[
'Bkg_3sigma_EE'] = efficiency_Sig_3sigma_EE , efficiency_Bkg_3sigma_EE
133 self.Sig_iso_eff[
'Sig_2sigma_EE'] , self.Bkg_iso_eff[
'Bkg_2sigma_EE'] = efficiency_Sig_2sigma_EE , efficiency_Bkg_2sigma_EE
137 efficiency_Sig_cut1_EB , efficiency_Bkg_cut1_EB , efficiency_Sig_cut1_EE , efficiency_Bkg_cut1_EE = [],[],[],[]
138 efficiency_Sig_cut2_EB , efficiency_Bkg_cut2_EB , efficiency_Sig_cut2_EE , efficiency_Bkg_cut2_EE = [],[],[],[]
139 efficiency_Sig_cut3_EB , efficiency_Bkg_cut3_EB , efficiency_Sig_cut3_EE , efficiency_Bkg_cut3_EE = [],[],[],[]
140 efficiency_Sig_cut5_EB , efficiency_Bkg_cut5_EB , efficiency_Sig_cut5_EE , efficiency_Bkg_cut5_EE = [],[],[],[]
142 for i
in range( len(self.Sig_hists[
'Sig_noMTD_EB'][0]) ):
144 efficiency_Sig_noMTD_EB.append( sum(self.Sig_hists[
'Sig_noMTD_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_noMTD_EB'][0]) )
145 efficiency_Sig_cut1_EB.append( sum(self.Sig_hists[
'Sig_cut1_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut1_EB'][0]) )
146 efficiency_Sig_cut2_EB.append( sum(self.Sig_hists[
'Sig_cut2_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut2_EB'][0]) )
147 efficiency_Sig_cut3_EB.append( sum(self.Sig_hists[
'Sig_cut3_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut3_EB'][0]) )
148 efficiency_Sig_cut5_EB.append( sum(self.Sig_hists[
'Sig_cut5_EB'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut5_EB'][0]) )
150 efficiency_Bkg_noMTD_EB.append( sum(self.Bkg_hists[
'Bkg_noMTD_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_noMTD_EB'][0]) )
151 efficiency_Bkg_cut1_EB.append( sum(self.Bkg_hists[
'Bkg_cut1_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut1_EB'][0]) )
152 efficiency_Bkg_cut2_EB.append( sum(self.Bkg_hists[
'Bkg_cut2_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut2_EB'][0]) )
153 efficiency_Bkg_cut3_EB.append( sum(self.Bkg_hists[
'Bkg_cut3_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut3_EB'][0]) )
154 efficiency_Bkg_cut5_EB.append( sum(self.Bkg_hists[
'Bkg_cut5_EB'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut5_EB'][0]) )
157 efficiency_Sig_noMTD_EE.append( sum(self.Sig_hists[
'Sig_noMTD_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_noMTD_EE'][0]) )
158 efficiency_Sig_cut1_EE.append( sum(self.Sig_hists[
'Sig_cut1_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut1_EE'][0]) )
159 efficiency_Sig_cut2_EE.append( sum(self.Sig_hists[
'Sig_cut2_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut2_EE'][0]) )
160 efficiency_Sig_cut3_EE.append( sum(self.Sig_hists[
'Sig_cut3_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut3_EE'][0]) )
161 efficiency_Sig_cut5_EE.append( sum(self.Sig_hists[
'Sig_cut5_EE'][0][0:i+1])/sum(self.Sig_hists[
'Sig_cut5_EE'][0]) )
163 efficiency_Bkg_noMTD_EE.append( sum(self.Bkg_hists[
'Bkg_noMTD_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_noMTD_EE'][0]) )
164 efficiency_Bkg_cut1_EE.append( sum(self.Bkg_hists[
'Bkg_cut1_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut1_EE'][0]) )
165 efficiency_Bkg_cut2_EE.append( sum(self.Bkg_hists[
'Bkg_cut2_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut2_EE'][0]) )
166 efficiency_Bkg_cut3_EE.append( sum(self.Bkg_hists[
'Bkg_cut3_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut3_EE'][0]) )
167 efficiency_Bkg_cut5_EE.append( sum(self.Bkg_hists[
'Bkg_cut5_EE'][0][0:i+1])/sum(self.Bkg_hists[
'Bkg_cut5_EE'][0]) )
170 self.Sig_iso_eff[
'Sig_noMTD_EB'] , self.Bkg_iso_eff[
'Bkg_noMTD_EB'] = efficiency_Sig_noMTD_EB , efficiency_Bkg_noMTD_EB
171 self.Sig_iso_eff[
'Sig_cut1_EB'] , self.Bkg_iso_eff[
'Bkg_cut1_EB'] = efficiency_Sig_cut1_EB , efficiency_Bkg_cut1_EB
172 self.Sig_iso_eff[
'Sig_cut2_EB'] , self.Bkg_iso_eff[
'Bkg_cut2_EB'] = efficiency_Sig_cut2_EB , efficiency_Bkg_cut2_EB
173 self.Sig_iso_eff[
'Sig_cut3_EB'] , self.Bkg_iso_eff[
'Bkg_cut3_EB'] = efficiency_Sig_cut3_EB , efficiency_Bkg_cut3_EB
174 self.Sig_iso_eff[
'Sig_cut5_EB'] , self.Bkg_iso_eff[
'Bkg_cut5_EB'] = efficiency_Sig_cut5_EB , efficiency_Bkg_cut5_EB
176 self.Sig_iso_eff[
'Sig_noMTD_EE'] , self.Bkg_iso_eff[
'Bkg_noMTD_EE'] = efficiency_Sig_noMTD_EE , efficiency_Bkg_noMTD_EE
177 self.Sig_iso_eff[
'Sig_cut1_EE'] , self.Bkg_iso_eff[
'Bkg_cut1_EE'] = efficiency_Sig_cut1_EE , efficiency_Bkg_cut1_EE
178 self.Sig_iso_eff[
'Sig_cut2_EE'] , self.Bkg_iso_eff[
'Bkg_cut2_EE'] = efficiency_Sig_cut2_EE , efficiency_Bkg_cut2_EE
179 self.Sig_iso_eff[
'Sig_cut3_EE'] , self.Bkg_iso_eff[
'Bkg_cut3_EE'] = efficiency_Sig_cut3_EE , efficiency_Bkg_cut3_EE
180 self.Sig_iso_eff[
'Sig_cut5_EE'] , self.Bkg_iso_eff[
'Bkg_cut5_EE'] = efficiency_Sig_cut5_EE , efficiency_Bkg_cut5_EE
def Calculate_efficiencies(self)