117 if(a_header)
p_header(a_writer,a_class,a_prof,a_hc);
119 {a_writer <<
"entries" << a_sep <<
"Sw" << a_sep <<
"Sw2" << a_sep <<
"Svw" << a_sep <<
"Sv2w";
120 for(
unsigned int iaxis=0;iaxis<a_prof.dimension();iaxis++) {
121 a_writer << a_sep <<
"Sxw" << iaxis << a_sep <<
"Sx2w" << iaxis;
123 a_writer << std::endl;}
125 typedef typename PROF::coordinate_t coordinate_t;
126 typedef typename PROF::dim_t dim_t;
127 typedef typename PROF::offset_t offset_t;
128 typedef typename PROF::num_entries_t num_entries_t;
129 typedef typename PROF::weight_t weight_t;
131 dim_t _dim = a_prof.dimension();
132 offset_t _bins = a_prof.get_bins();
134 const std::vector<num_entries_t>& _bin_entries = a_prof.bins_entries();
135 const std::vector<weight_t>& _bin_Sw = a_prof.bins_sum_w();
136 const std::vector<weight_t>& _bin_Sw2 = a_prof.bins_sum_w2();
137 const std::vector< std::vector<coordinate_t> >& _bin_Sxw = a_prof.bins_sum_xw();
138 const std::vector< std::vector<coordinate_t> >& _bin_Sx2w = a_prof.bins_sum_x2w();
140 typedef typename PROF::vs_t vs_t;
141 const vs_t& _bin_Svw = a_prof.bins_sum_vw();
142 const vs_t& _bin_Sv2w = a_prof.bins_sum_v2w();
144 for(
unsigned int i=0;i<_bins;i++) {
145 a_writer << _bin_entries[i] << a_sep << _bin_Sw[i] << a_sep << _bin_Sw2[i]
146 << a_sep << _bin_Svw[i] << a_sep << _bin_Sv2w[i];
147 for(
unsigned int iaxis=0;iaxis<_dim;iaxis++) {
148 a_writer << a_sep << _bin_Sxw[i][iaxis] << a_sep << _bin_Sx2w[i][iaxis];
150 a_writer << std::endl;