@@ -99,7 +99,7 @@ namespace SpecUtils
99
99
\TODO: move find_gamma_channel, gamma_energy_min/max, gamma_channel_width,
100
100
gamma_channel_lower/upper/center, etc from #SpecUtils::Measurement to #EnergyCalibration
101
101
*/
102
- struct SpecUtils_DLLEXPORT EnergyCalibration
102
+ struct SPECUTILS_EXPORT EnergyCalibration
103
103
{
104
104
/* * @returns the energy calibration type. */
105
105
EnergyCalType type () const ;
@@ -320,7 +320,7 @@ namespace SpecUtils
320
320
321
321
Throws exception if channels to combine is 0.
322
322
*/
323
- SpecUtils_DLLEXPORT
323
+ SPECUTILS_EXPORT
324
324
std::shared_ptr<EnergyCalibration> energy_cal_combine_channels ( const EnergyCalibration &orig_cal,
325
325
const size_t num_channel_combine );
326
326
@@ -341,7 +341,7 @@ namespace SpecUtils
341
341
342
342
Throws exception if an invalid energy calibration (i.e., channel energies not increasing)
343
343
*/
344
- SpecUtils_DLLEXPORT
344
+ SPECUTILS_EXPORT
345
345
std::shared_ptr< const std::vector<float > >
346
346
polynomial_binning ( const std::vector<float > &coeffs,
347
347
const size_t nchannel,
@@ -366,7 +366,7 @@ namespace SpecUtils
366
366
367
367
Throws exception if an invalid energy calibration (i.e., channel energies not increasing)
368
368
*/
369
- SpecUtils_DLLEXPORT
369
+ SPECUTILS_EXPORT
370
370
std::shared_ptr< const std::vector<float > >
371
371
fullrangefraction_binning ( const std::vector<float > &coeffs,
372
372
const size_t nchannel,
@@ -388,7 +388,7 @@ namespace SpecUtils
388
388
Doesnt perform a check that the coefficients or deviation pairs are actually valid.
389
389
Throws exception if deviation pairs are not sorted.
390
390
*/
391
- SpecUtils_DLLEXPORT
391
+ SPECUTILS_EXPORT
392
392
double fullrangefraction_energy ( const double channel_number,
393
393
const std::vector<float > &coeffs,
394
394
const size_t nchannel,
@@ -410,7 +410,7 @@ namespace SpecUtils
410
410
411
411
Throws exception if deviation pairs are not sorted.
412
412
*/
413
- SpecUtils_DLLEXPORT
413
+ SPECUTILS_EXPORT
414
414
double polynomial_energy ( const double channel_number,
415
415
const std::vector<float > &coeffs,
416
416
const std::vector<std::pair<float ,float >> &deviation_pairs );
@@ -447,7 +447,7 @@ namespace SpecUtils
447
447
be set at 1460 keV
448
448
- Deviation pairs set to zero would be defined for 239 keV and 2614 keV
449
449
*/
450
- SpecUtils_DLLEXPORT
450
+ SPECUTILS_EXPORT
451
451
double deviation_pair_correction ( const double polynomial_energy,
452
452
const std::vector<std::pair<float ,float >> &dev_pairs );
453
453
@@ -467,7 +467,7 @@ namespace SpecUtils
467
467
future this should be able to be made exactly accuate (within numerical
468
468
limits anyway).
469
469
*/
470
- SpecUtils_DLLEXPORT
470
+ SPECUTILS_EXPORT
471
471
double correction_due_to_dev_pairs ( const double true_energy,
472
472
const std::vector<std::pair<float ,float >> &dev_pairs );
473
473
@@ -487,7 +487,7 @@ namespace SpecUtils
487
487
Throws exception if resulting energy calibration wont be strictly increasing after applying
488
488
deviation pair.
489
489
*/
490
- SpecUtils_DLLEXPORT
490
+ SPECUTILS_EXPORT
491
491
std::shared_ptr<const std::vector<float >>
492
492
apply_deviation_pair ( const std::vector<float > &binning,
493
493
const std::vector<std::pair<float ,float >> &dev_pairs );
@@ -519,7 +519,7 @@ namespace SpecUtils
519
519
@returns the polynomial coefficients. If input coefficients is empty or
520
520
number of channels is zero, will return empty vector.
521
521
*/
522
- SpecUtils_DLLEXPORT
522
+ SPECUTILS_EXPORT
523
523
std::vector<float >
524
524
fullrangefraction_coef_to_polynomial ( const std::vector<float > &coeffs,
525
525
const size_t nchannel );
@@ -529,7 +529,7 @@ namespace SpecUtils
529
529
the energy given by the equation is the middle of the channel (which is
530
530
non-standard) to standard full range fraction equation coefficients.
531
531
*/
532
- SpecUtils_DLLEXPORT
532
+ SPECUTILS_EXPORT
533
533
std::vector<float >
534
534
mid_channel_polynomial_to_fullrangeFraction ( const std::vector<float > &coeffs,
535
535
const size_t nchannel );
@@ -541,7 +541,7 @@ namespace SpecUtils
541
541
// right. LowerChannelEdge type is check that each bin is increasing over
542
542
// previous, and that it has at least as many bins as nbin.
543
543
// InvalidEquationType always returns false.
544
- SpecUtils_DLLEXPORT
544
+ SPECUTILS_EXPORT
545
545
bool calibration_is_valid ( const EnergyCalType type,
546
546
const std::vector<float > &eqn,
547
547
const std::vector< std::pair<float ,float > > &devpairs,
@@ -564,7 +564,7 @@ namespace SpecUtils
564
564
Changes the polynomial calibration coefficients
565
565
Would probably work for adding channels, but untested.
566
566
*/
567
- SpecUtils_DLLEXPORT
567
+ SPECUTILS_EXPORT
568
568
std::vector<float >
569
569
polynomial_cal_remove_first_channels ( const int num_channels_remove,
570
570
const std::vector<float > &orig_coefs );
@@ -594,7 +594,7 @@ namespace SpecUtils
594
594
\TODO: Use #correction_due_to_dev_pairs to make it so algabraic approach can
595
595
always be used.
596
596
*/
597
- SpecUtils_DLLEXPORT
597
+ SPECUTILS_EXPORT
598
598
double find_fullrangefraction_channel ( const double energy,
599
599
const std::vector<float > &coeffs,
600
600
const size_t nchannel,
@@ -624,7 +624,7 @@ namespace SpecUtils
624
624
Note: that #correction_due_to_dev_pairs is used to correct for deviation pairs when using the,
625
625
algebraic approach, and currently (20200820) may be correct to only 0.01 keV.
626
626
*/
627
- SpecUtils_DLLEXPORT
627
+ SPECUTILS_EXPORT
628
628
double find_polynomial_channel ( const double energy,
629
629
const std::vector<float > &coeffs,
630
630
const size_t nchannel,
@@ -653,7 +653,7 @@ namespace SpecUtils
653
653
654
654
Throw exception if any input has less than four channels.
655
655
*/
656
- SpecUtils_DLLEXPORT
656
+ SPECUTILS_EXPORT
657
657
void rebin_by_lower_edge ( const std::vector<float > &original_energies,
658
658
const std::vector<float > &original_counts,
659
659
const std::vector<float > &new_energies,
@@ -690,7 +690,7 @@ namespace SpecUtils
690
690
#END
691
691
\endverbatim
692
692
*/
693
- SpecUtils_DLLEXPORT
693
+ SPECUTILS_EXPORT
694
694
std::shared_ptr<EnergyCalibration> energy_cal_from_CALp_file ( std::istream &input,
695
695
const size_t num_channels,
696
696
std::string &det_name );
@@ -711,7 +711,7 @@ namespace SpecUtils
711
711
the original FRF coefficients will be written out after the other content - this is a InterSpec/SpecUtils specific extension of CALp file
712
712
format.
713
713
*/
714
- SpecUtils_DLLEXPORT
714
+ SPECUTILS_EXPORT
715
715
bool write_CALp_file ( std::ostream &output,
716
716
const std::shared_ptr<const EnergyCalibration> &cal,
717
717
const std::string &detector_name );
0 commit comments