Skip to content

Commit

Permalink
Merge pull request #528 from valerioda/enc_optimization
Browse files Browse the repository at this point in the history
pargen routine for ENC optimization
  • Loading branch information
jasondet authored Dec 4, 2023
2 parents 030211b + 1486869 commit 4d05951
Show file tree
Hide file tree
Showing 2 changed files with 395 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pygama/math/peak_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,14 @@ def gauss_pdf(x, mu, sigma, n_sig):
"""
Basic Gaussian pdf args; mu, sigma, n_sig (number of signal events)
"""

return n_sig * gauss_norm(x,mu,sigma)

def extended_gauss_pdf(x, mu, sigma, n_sig):
"""
Basic Gaussian pdf args; mu, sigma, n_sig (number of signal events)
"""
return n_sig, gauss_norm(x,mu,sigma)


def gauss_uniform(x, n_sig, mu, sigma, n_bkg, components = False):
"""
Expand Down
Loading

0 comments on commit 4d05951

Please sign in to comment.