Go to the documentation of this file.
12 template <
class TC,
class TO,
class TN,
class TW,
class TH>
13 class h2 :
public b2<TC,TO,TN,TW,TH> {
42 bool fill(TC aX,TC aY,TW aWeight = 1) {
46 if(!
parent::m_axes[0].coord_to_absolute_index(aX,ibin))
return false;
47 if(!
parent::m_axes[1].coord_to_absolute_index(aY,jbin))
return false;
65 if(ibin==0) inRange =
false;
66 else if(ibin==(
parent::m_axes[0].m_number_of_bins+1)) inRange =
false;
68 if(jbin==0) inRange =
false;
69 else if(jbin==(
parent::m_axes[1].m_number_of_bins+1)) inRange =
false;
91 TN a_entries,TW a_Sw,TW a_Sw2,
92 TC a_Sxw,TC a_Sx2w,TC a_Syw,TC a_Sy2w) {
98 if(a_ibin==0) inRange =
false;
99 else if(a_ibin==(
parent::m_axes[0].m_number_of_bins+1)) inRange =
false;
100 if(a_jbin==0) inRange =
false;
101 else if(a_jbin==(
parent::m_axes[1].m_number_of_bins+1)) inRange =
false;
143 TN& a_entries,TW& a_Sw,TW& a_Sw2,
144 TC& a_Sxw,TC& a_Sx2w,
145 TC& a_Syw,TC& a_Sy2w) {
147 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
148 a_Sxw = 0;a_Sx2w = 0;
149 a_Syw = 0;a_Sy2w = 0;
153 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
154 a_Sxw = 0;a_Sx2w = 0;
155 a_Syw = 0;a_Sy2w = 0;
159 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
160 a_Sxw = 0;a_Sx2w = 0;
161 a_Syw = 0;a_Sy2w = 0;
196 bool equals_TH(
const h2& a_from,
const TW& a_prec,TW(*a_fabs)(TW))
const {
204 bool Fill(TC aX,TC aY,TW aWeight = 1) {
return fill(aX,aY,aWeight);}
207 h2(
const std::string& a_title,
bn_t aXnumber,TC aXmin,TC aXmax,
bn_t aYnumber,TC aYmin,TC aYmax)
208 :
parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax)
210 h2(
const std::string& a_title,
const std::vector<TC>& a_edges_x,
const std::vector<TC>& a_edges_y)
211 :
parent(a_title,a_edges_x,a_edges_y)