Go to the documentation of this file.
12 template <
class TC,
class TO,
class TN,
class TW,
class TH>
13 class h3 :
public b3<TC,TO,TN,TW,TH> {
42 bool fill(TC aX,TC aY,TC aZ,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;
48 if(!
parent::m_axes[2].coord_to_absolute_index(aZ,kbin))
return false;
71 if(ibin==0) inRange =
false;
72 else if(ibin==(
parent::m_axes[0].m_number_of_bins+1)) inRange =
false;
74 if(jbin==0) inRange =
false;
75 else if(jbin==(
parent::m_axes[1].m_number_of_bins+1)) inRange =
false;
77 if(kbin==0) inRange =
false;
78 else if(kbin==(
parent::m_axes[2].m_number_of_bins+1)) inRange =
false;
105 TN a_entries,TW a_Sw,TW a_Sw2,
106 TC a_Sxw,TC a_Sx2w,TC a_Syw,TC a_Sy2w,TC a_Szw,TC a_Sz2w) {
113 if(a_ibin==0) inRange =
false;
114 else if(a_ibin==(
parent::m_axes[0].m_number_of_bins+1)) inRange =
false;
115 if(a_jbin==0) inRange =
false;
116 else if(a_jbin==(
parent::m_axes[1].m_number_of_bins+1)) inRange =
false;
117 if(a_kbin==0) inRange =
false;
118 else if(a_kbin==(
parent::m_axes[2].m_number_of_bins+1)) inRange =
false;
166 TN& a_entries,TW& a_Sw,TW& a_Sw2,
167 TC& a_Sxw,TC& a_Sx2w,
168 TC& a_Syw,TC& a_Sy2w,
169 TC& a_Szw,TC& a_Sz2w) {
171 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
172 a_Sxw = 0;a_Sx2w = 0;
173 a_Syw = 0;a_Sy2w = 0;
174 a_Szw = 0;a_Sz2w = 0;
178 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
179 a_Sxw = 0;a_Sx2w = 0;
180 a_Syw = 0;a_Sy2w = 0;
181 a_Szw = 0;a_Sz2w = 0;
185 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
186 a_Sxw = 0;a_Sx2w = 0;
187 a_Syw = 0;a_Sy2w = 0;
188 a_Szw = 0;a_Sz2w = 0;
192 a_entries = 0;a_Sw = 0;a_Sw2 = 0;
193 a_Sxw = 0;a_Sx2w = 0;
194 a_Syw = 0;a_Sy2w = 0;
195 a_Szw = 0;a_Sz2w = 0;
232 bool equals_TH(
const h3& a_from,
const TW& a_prec,TW(*a_fabs)(TW))
const {
240 bool Fill(TC aX,TC aY,TC aZ,TW aWeight = 1) {
return fill(aX,aY,aZ,aWeight);}
250 h3(
const std::string& a_title,
251 bn_t aXnumber,TC aXmin,TC aXmax,
252 bn_t aYnumber,TC aYmin,TC aYmax,
253 bn_t aZnumber,TC aZmin,TC aZmax)
254 :
parent(a_title,aXnumber,aXmin,aXmax,
255 aYnumber,aYmin,aYmax,
256 aZnumber,aZmin,aZmax)
259 h3(
const std::string& a_title,
260 const std::vector<TC>& a_edges_x,
261 const std::vector<TC>& a_edges_y,
262 const std::vector<TC>& a_edges_z)
263 :
parent(a_title,a_edges_x,a_edges_y,a_edges_z)