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/04/21 06:17] – himuser | software:analysis [2022/01/14 18:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Analysis | + | ===== Analysis |
- | There are already several files which help you to analyse root files from primasoft: | + | ===Novosibirsk function=== |
- | - PrimaSimAnalysis (can be found here: / | + | The Novosibirsk function is typically used to fit monoenergetic electromagnetic calorimeter spectra. |
- | - Config file for Analysis (examples can be found here: / | + | Explanations on this function are given here {{ :software: |
- | - Rootmacros (examples can be found 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 " | |
- | This is what they do: | + | |
- | + | / | |
- | == PrimaSimAnalysis | + | p[1] = peak position |
- | * Sorts hits into clusters | + | |
- | * Single crystal threshold is applied. The value van be set in the config file, default is 2 MeV. This is analogue the to hit detection threshold in a measurement. | + | |
- | * Different crystal setups can be used: | + | |
- | | + | */ |
- | | + | |
- | * * the inner 640 crystals are used in an oval shape (640_oval) | + | { |
- | * | + | |
+ | double Y=(x[0]-p[1])*p[3]/p[2]; | ||
+ | | ||
+ | if(Y>=1) return p[4]; | ||
+ | | ||
+ | | ||
+ | double s0 = 2/xi*TMath:: | ||
+ | double s02 = s0*s0; | ||
+ | |||
+ | | ||
+ | return f; | ||
+ | } |
software/analysis.1587449840.txt.gz · Last modified: (external edit)