Skip to content

Commit 5c03549

Browse files
committed
Increment version, and update notes.
1 parent b95a263 commit 5c03549

File tree

5 files changed

+30
-42
lines changed

5 files changed

+30
-42
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.1...3.20 FATAL_ERROR)
22

3-
project(InterSpec VERSION 1.0.11)
3+
project(InterSpec VERSION 1.0.12)
44

55
set(CMAKE_CXX_STANDARD 14)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -168,7 +168,7 @@ if( CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 )
168168
message( FATAL_ERROR, "GCC less than 5 not supported." )
169169
endif()
170170

171-
# Make a cached variable avaiable to parent cmake projects
171+
# Make a cached variable available to parent cmake projects
172172
set( INTERSPEC_VERSION "${PROJECT_VERSION}" CACHE STRING "InterSpec version" )
173173

174174
if(NOT CMAKE_BUILD_TYPE)

InterSpec/RelActCalcAuto.h

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -62,40 +62,22 @@ namespace RelActCalc
6262

6363

6464
/*
65-
We need to take in:
66-
67-
foreground_spectrum;
68-
background_spectrum; //optional
69-
70-
struct RoiRanges{ double lower_energy, upper_energy; continuum_type; bool force_full_range; }
71-
vector<RoiRanges>: roi_ranges;
72-
73-
struct NucInputInfo{ const SandiaDecay::Nuclide *nuc; double age; bool fit_age; vector<double> gammas_to_release; }
74-
vector<NucInputInfo> nuclides;
75-
76-
struct FreeFloatPeak{ double energy; bool release_fwhm; }
77-
vector<FreeFloatPeak> free_floating_peaks;
78-
79-
options{ bool fit_energy_cal; RelEffEqnType; size_t RelEffEqnOrder; FwhmFcnForm/Order; }
80-
81-
82-
For deciding peak ROIs:
83-
- First use whole specified ROI, and fit for a solution
84-
- Eliminate statistically insignificant gamma lines; then use remaining gammas to decide peak ROI widths (and if should be further broken up?)
85-
86-
To get rid of the degeneracy of rel-eff and rel-act:
87-
- Add an extra term to the Chi2 that forces the rel-act equation to be 1.0 at the lowest energy; maybe multiple difference of current rel-eff equation from 1.0 by the area of the largest peak in any of the ROIs
88-
89-
Parameters to fit:
90-
- Energy offset; Energy gain adjust //will be fixed to begin with
91-
- Fwhm Parameters // Will be `num_parameters(FwhmForm)` number of these
92-
- RelEff coefs // There will be one more than the "order" of relative eff eqn
93-
- {Activity,Age} // One pair for each nuclide. Age will be mostly fixed, but can also be tied to another nuclide of the same elements age
94-
- Free float peaks {amplitude, width-multiple} // The width multiple is of what the Fwhm Parameters predict (e.g., 1.0 says use parameter value).
95-
96-
9765
Further things to consider:
98-
- Sum peaks - not totally sure how to handle - can there just be one parameter that controls strength of peak random summing, and then another for cascade?
66+
- For the relative efficiency chart, currently all markers for peaks info fall exactly on the
67+
RelEff line. What we should do is, after finding the solution, cluster the peaks together
68+
(similar to Act/Shield fit), and then make a template for each clustered peak (sum all peaks into
69+
a channel count array, with separate array for each clustered peak), with some threshold (like
70+
99% detection threshold) that if the clustered peaks area is less than, it just gets subtracted
71+
from the data, unless its the only peak for that ROI.
72+
Then fit the templates to data, and use the fit values to make the markers on the RelEff plot.
73+
I think the plotting JS can handle showing info for multiple nuclides in a single plots
74+
mouse-over. We will need to create new variable that is analogous to
75+
#RelActAutoSolution::m_fit_peaks, but maps multiple source nuclides to a single peak.
76+
- Sum peaks - not totally sure how to handle - can there just be one parameter that controls
77+
strength of peak random summing, and then another for cascade? For cascades we dont have
78+
gamma-x-ray coincidences (or is it the case we can just assume constant fraction between any
79+
gamma and any nuclide?), so we might need two parameters, one for gamams, one for gamma-neutrons
80+
and I guess maybe xray-xray?
9981
*/
10082

10183
namespace RelActCalcAuto
@@ -298,7 +280,13 @@ struct Options
298280
RelActCalc::PuCorrMethod pu242_correlation_method;
299281

300282

301-
/** Under development */
283+
/** Peak skew to apply to the entire spectrum.
284+
285+
Under development: currently, if total energy range being fit is less than 100 keV, then all peaks will share the same skew.
286+
Otherwise a linear energy dependance will be assumed, where the fitting parameters will be for the spectrums lower
287+
energy, and the spectrums upper energy; not all skew parameters are allowed to vary with energy; e.g., the Crystal Ball
288+
power law is not allowed to have an energy dependence (see `PeakDef::is_energy_dependent(...)`).
289+
*/
302290
PeakDef::SkewType skew_type;
303291

304292
static const int sm_xmlSerializationVersion = 0;

src/PeakDef.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,10 +1353,10 @@ bool PeakDef::skew_parameter_range( const SkewType skew_type, const CoefficientT
13531353
if( coef != CoefficientType::SkewPar0 )
13541354
return false;
13551355

1356-
starting_value = 0.2;
1357-
step_size = 0.05;
1356+
starting_value = 2.0;
1357+
step_size = 1.0;
13581358
lower_value = 0.0; //Below 0.005 would be numerically bad, but the Bortel function should protect against it.
1359-
upper_value = 10;
1359+
upper_value = 15;
13601360

13611361
break;
13621362
}//case SkewType::Bortel:

target/osx/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

3-
project( InterSpecApp VERSION 1.0.11 )
3+
project( InterSpecApp VERSION 1.0.12 )
44

55
set(BUILD_AS_OSX_APP ON CACHE INTERNAL "Build a OSX native app" )
66
set(USE_OSX_NATIVE_MENU ON CACHE INTERNAL "Use macOS native menu-system" )
@@ -20,7 +20,7 @@ SET(MACOSX_BUNDLE_BUNDLE_VERSION "0" )
2020
SET(MACOSX_BUNDLE_COPYRIGHT "Sandia National Labs, Will Johnson" )
2121
SET(MACOSX_BUNDLE_GUI_IDENTIFIER "gov.sandia.macOS.InterSpec" )
2222
#set MACOS_BUNDLE_VERSION_NUMBER for Info.plist.template to populate corresponding value in Xcode
23-
set(MACOS_BUNDLE_VERSION_NUMBER 36)
23+
set(MACOS_BUNDLE_VERSION_NUMBER 37)
2424

2525

2626
SET( ${PRODUCT_NAME} "InterSpec" )

target/osx/en.lproj/MainMenu.xib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</menuItem>
101101
</items>
102102
</menu>
103-
<window title="InterSpec OSX" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" frameAutosaveName="MainWindow" animationBehavior="default" id="371" userLabel="MainWindow">
103+
<window title="InterSpec" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" frameAutosaveName="MainWindow" animationBehavior="default" id="371" userLabel="MainWindow">
104104
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
105105
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
106106
<rect key="contentRect" x="335" y="390" width="1214" height="734"/>

0 commit comments

Comments
 (0)