software:analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:analysis [2020/08/31 08:33] – himuser | software:analysis [2022/01/14 18:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
The Novosibirsk function is typically used to fit monoenergetic electromagnetic calorimeter spectra. | The Novosibirsk function is typically used to fit monoenergetic electromagnetic calorimeter spectra. | ||
- | + | Explanations on this function are given here {{ : | |
+ | |||
+ | A C++ code snippet to calculate the function using ROOT classes is given below. The interface is chosen to be usable with the ROOT fitting routines, e.g. '' | ||
+ | |||
+ | #include " | ||
+ | |||
+ | /* p[0] = normalisation constant | ||
+ | p[1] = peak position | ||
+ | p[2] = sigma (energy | ||
+ | p[3] = eta (asymmetry parameter) | ||
+ | p[4] = constant background | ||
+ | */ | ||
+ | double novosibirsk(double *x, double *p) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | } |
software/analysis.1598862817.txt.gz · Last modified: (external edit)