Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Nov 5, 2024
1 parent 4ab2745 commit 9fcbd1f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ostap/fitting/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-06-07
# =============================================================================
"""Module with decoration for RooAbsData and related RooFit classes
""" Module with decoration for RooAbsData and related RooFit classes
- see RooAbsData
- see RooDataSet
"""
Expand Down Expand Up @@ -52,7 +52,7 @@
if '__main__' == __name__ : logger = getLogger( 'ostap.fitting.dataset' )
else : logger = getLogger( __name__ )
# =============================================================================
logger.debug( 'Some useful decorations for RooAbsData object')
logger.debug ( 'Some useful decorations for RooAbsData object')
# =============================================================================
from ostap.logger.colorized import allright, attention
_new_methods_ = []
Expand Down
14 changes: 7 additions & 7 deletions ostap/fitting/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
# @author Vanya BELYAEV Ivan.Belyaeve@itep.ru
# @date 2011-07-25
class Gauss_pdf(PEAK) :
"""Trivial Gaussian function:
""" Trivial Gaussian function:
http://en.wikipedia.org/wiki/Normal_distribution
"""
def __init__ ( self ,
Expand Down Expand Up @@ -237,7 +237,7 @@ def __init__ ( self ,
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-07-25
class CrystalBall_pdf(PEAK) :
"""Crystal Ball function
""" Crystal Ball function
http://en.wikipedia.org/wiki/Crystal_Ball_function
- T. Skwarnicki,
Expand Down Expand Up @@ -353,7 +353,7 @@ def nL ( self, value ) :
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-07-25
class CrystalBallRS_pdf(PEAK) :
"""Right-side CrystalBall
""" Right-side CrystalBall
"""
def __init__ ( self ,
name ,
Expand Down Expand Up @@ -448,7 +448,7 @@ def nR ( self, value ) :
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-07-25
class CB2_pdf(PEAK) :
"""Double sided Crystal Ball function with both left and rigth sides
""" Double sided Crystal Ball function with both left and rigth sides
It appears to be very powerful and is used for many LHCb papers to describe
B-hadron mass signals, especially for B->J/psi X final states
Expand Down Expand Up @@ -586,7 +586,7 @@ def alphaR ( self, value ) :
# @author Vanya BELYAEV Ivan.Belyaeve@itep.ru
# @date 2011-07-25
class Needham_pdf(PEAK) :
"""Needham function: specific parameterisation of Crystal Ball function with
""" Needham function: specific parameterisation of Crystal Ball function with
- n = 1
- alpha(sigma) = a_0 + sigma*(a_1+sigma*a_2)
Expand Down Expand Up @@ -690,7 +690,7 @@ def a2 ( self, value ) :
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2011-07-25
class Apollonios_pdf(PEAK) :
"""Apollonios function
""" Apollonios function
http://arxiv.org/abs/1312.5000
The function is proposed by Diego Martinez Santos
Expand Down Expand Up @@ -804,7 +804,7 @@ def b ( self, value ) :
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2014-08-20
class Apollonios2_pdf(PEAK) :
"""Bifurcated Apollonios:
""" Bifurcated Apollonios:
Gaussian with exponential (asymmetrical) tails
f(x; mu, sigma_l, sigma_r, beta) ~ exp( |beta|(|\beta| - sqrt( beta^2+( delta x)^2 ))
Expand Down
6 changes: 3 additions & 3 deletions source/include/Ostap/Peaks.h
Original file line number Diff line number Diff line change
Expand Up @@ -1169,10 +1169,10 @@ namespace Ostap
* \f[ f(x;\alpha,n,x_0,\sigma) = \frac{1}{ \sqrt{2\pi\sigma^2} } \left\{
* \begin{array}{ll}
* \mathrm{e}^{-\frac{1}{2}\left(\frac{x-x_0}{\sigma}\right)^2}
* & \text{for}~\frac{x-x_0}\ge-\alpha\sigma \\
* \mathrm{- \frac{\alpha^2}{2}} \times
* & \text{for}~\frac{x-x_0}{\sigma}\ge-\alpha \\
* \mathrm{e}^{-\frac{\alpha^2}{2}} \times
* \left( \frac{n+1}{ n+1 - \alpha^2 - \left|\alpha\right|\frac{x-x_0}{\sigma}}\right)^{n+1}
* & \text{for}~\frac{x-x_0}\le-\alpha\sigma
* & \text{for}~\frac{x-x_0}{\sigma}\le-\alpha
* \end{array}
* \right.\f]
*
Expand Down

0 comments on commit 9fcbd1f

Please sign in to comment.