-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add ptype * add index fiting * add test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * rm unneccessary test * fix bug when ptype is None * reduce complexity... * make pre-commit happy * add index morpher to speed up * use index morpher * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * shape_index -> index * Further simplify * Minor change --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dacheng Xu <dx2227@columbia.edu>
- Loading branch information
1 parent
1ea26c9
commit 152b11e
Showing
5 changed files
with
189 additions
and
20 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
alea/examples/configs/unbinned_wimp_statistical_model_index_fitting.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
parameter_definition: | ||
wimp_mass: | ||
nominal_value: 50 | ||
fittable: false | ||
description: WIMP mass in GeV/c^2 | ||
|
||
livetime: | ||
nominal_value: 2. | ||
ptype: livetime | ||
fittable: false | ||
description: Livetime in years | ||
|
||
wimp_rate_multiplier: | ||
nominal_value: 1.0 | ||
ptype: rate | ||
fittable: true | ||
fit_limits: | ||
- 0 | ||
- null | ||
parameter_interval_bounds: | ||
- 0 | ||
- 50 | ||
|
||
er_rate_multiplier: | ||
nominal_value: 1.0 | ||
ptype: rate | ||
uncertainty: 0.2 | ||
relative_uncertainty: true | ||
fittable: true | ||
fit_limits: | ||
- 0 | ||
- null | ||
fit_guess: 1.0 | ||
|
||
er_band_shift: | ||
nominal_value: 0 | ||
ptype: index | ||
uncertainty: null | ||
fittable: true | ||
blueice_anchors: | ||
- -2 | ||
- -1 | ||
- 0 | ||
- 1 | ||
- 2 | ||
fit_limits: | ||
- -2 | ||
- 2 | ||
description: ER band shape parameter (shifts the ER band up and down) | ||
|
||
likelihood_config: | ||
template_folder: null # will try to find the templates in alea | ||
likelihood_terms: | ||
- name: science_run | ||
default_source_class: alea.template_source.TemplateSource | ||
likelihood_type: blueice.likelihood.UnbinnedLogLikelihood | ||
likelihood_config: {"morpher": "IndexMorpher"} | ||
analysis_space: | ||
- cs1: np.arange(0, 102, 2) | ||
- cs2: np.geomspace(100, 100000, 51) | ||
in_events_per_bin: true | ||
livetime_parameter: livetime | ||
slice_args: {} | ||
sources: | ||
- name: er | ||
histname: er_template | ||
parameters: | ||
- er_rate_multiplier | ||
- er_band_shift | ||
named_parameters: | ||
- er_band_shift | ||
template_filename: er_template_{er_band_shift}.ii.h5 | ||
|
||
- name: wimp | ||
histname: wimp_template | ||
parameters: | ||
- wimp_rate_multiplier | ||
- wimp_mass | ||
template_filename: wimp50gev_template.ii.h5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters