16 #ifndef _WM_SPECT_mph_H 17 #define _WM_SPECT_mph_H 107 std::vector<hole_type> holes;
116 std::vector<int> who;
255 bool do_round_cumsum;
256 bool do_square_cumsum;
260 std::string detector_fn;
261 std::string collim_fn;
264 std::vector<detel_type> detel;
311 short int *nx, *ny, *nz;
321 discrf1d_type cr_att;
385 void wm_alloc(
int* Nitems, wm_da_type& wm, wmh_mph_type& wmh);
395 void read_prj_params_mph(wmh_mph_type& wmh);
397 void read_coll_params_mph(wmh_mph_type& wmh);
401 void fill_pcf(wmh_mph_type& wmh, pcf_type& pcf);
405 void calc_cumsum(discrf2d_type* f);
407 void generate_msk_mph(
bool* msk_3d,
float* att, wmh_mph_type& wmh);
411 std::string wm_SPECT_read_value_1d(std::ifstream* stream1,
char DELIMITER);
413 void wm_SPECT_read_hvalues_mph(std::ifstream* stream1,
char DELIMITER,
int* nh,
bool do_cyl, wmh_mph_type& wmh);
419 void error_wmtools_SPECT_mph(
int nerr,
int ip, std::string txt);
int round(const float x)
Implements rounding of floating point numbers.
Definition: round.inl:59
NUMBER square(const NUMBER &x)
returns the square of a number, templated.
Definition: common.h:146
elemT sum(IterT start, IterT end, elemT init)
Compute the sum of a sequence using operator+=(), using an initial value.
Definition: more_algorithms.inl:52
Definition: PinholeSPECTUB_Tools.h:22