|
musrfit 1.10.0
|
Dead time correction calculator for muon detector data. More...
#include <PNeXus.h>


Public Member Functions | |
| PNeXusDeadTime (const PNeXus *nxs, bool debug=false) | |
| Constructor - initializes dead time calculator from NeXus data. | |
| bool | IsValid () |
| Check if the dead time calculator was initialized successfully. | |
| double | Up () const |
| Get the error definition for the minimizer (FCNBase requirement) | |
| double | operator() (const std::vector< double > &par) const |
| Function call operator - calculates chi-square for given parameters. | |
| void | Minimize (const int i) |
| Minimize dead time for a specific detector spectrum. | |
| const std::vector< uint32_t > & | GetDimensions () const |
| Get the dimensions of the count dataset. | |
Private Attributes | |
| bool | fDebug {false} |
| Debug flag - if true, print additional diagnostic information. | |
| bool | fValid |
| Validity flag - true if required data was loaded successfully. | |
| int | fGoodFrames {-1} |
| Number of good time frames for analysis. | |
| float | fTimeResolution {0.0} |
| Time resolution in picoseconds. | |
| std::vector< uint32_t > | fDims = {0, 0, 0} |
| Dimensions of count data [periods, spectra, bins]. | |
| int | fT0Bin {-1} |
| T0 bin number (time zero reference) | |
| int | fFgbBin {-1} |
| First good bin for analysis. | |
| int | fLgbBin {-1} |
| Last good bin for analysis. | |
| std::vector< float > | fDeadTime |
| Dead time values per detector (microseconds) | |
| std::vector< int > | fCounts |
| Count data for minimization. | |
| double | fUp {0.5} |
| UP parameter for Minuit2 (0.5 for chi-square) | |
| unsigned int | fIdx {0} |
| Current spectrum index being minimized. | |
Dead time correction calculator for muon detector data.
The PNeXusDeadTime class calculates dead time corrections for muon detector count data using ROOT Minuit2 minimization. It inherits from ROOT::Minuit2::FCNBase to implement a chi-square minimization function.
Dead time is the period after detecting an event during which the detector cannot register another event. This class estimates the dead time parameter for each detector spectrum by minimizing the deviation from expected count rates.
Typical Usage:
| nxH4::PNeXusDeadTime::PNeXusDeadTime | ( | const PNeXus * | nxs, |
| bool | debug = false ) |
Constructor - initializes dead time calculator from NeXus data.
| nxs | Pointer to PNeXus object containing the detector data |
| debug | If true, print additional debug information during calculations |
Definition at line 163 of file PNeXus.cpp.
References fCounts, fDebug, fDims, fFgbBin, fGoodFrames, fLgbBin, fT0Bin, fTimeResolution, and fValid.
|
inline |
|
inline |
| void nxH4::PNeXusDeadTime::Minimize | ( | const int | i | ) |
Minimize dead time for a specific detector spectrum.
| i | Spectrum index to minimize (0-based index into second dimension) |
Definition at line 300 of file PNeXus.cpp.
| double nxH4::PNeXusDeadTime::operator() | ( | const std::vector< double > & | par | ) | const |
Function call operator - calculates chi-square for given parameters.
| par | Vector of parameters (dead time values in microseconds) |
Definition at line 268 of file PNeXus.cpp.
References fCounts, fDims, fFgbBin, fGoodFrames, fIdx, fLgbBin, and fTimeResolution.
|
inline |
Get the error definition for the minimizer (FCNBase requirement)
Definition at line 278 of file PNeXus.h.
References fUp.
|
private |
Count data for minimization.
Definition at line 318 of file PNeXus.h.
Referenced by operator()(), and PNeXusDeadTime().
|
private |
|
private |
Debug flag - if true, print additional diagnostic information.
Definition at line 309 of file PNeXus.h.
Referenced by PNeXusDeadTime().
|
private |
Dimensions of count data [periods, spectra, bins].
Definition at line 313 of file PNeXus.h.
Referenced by GetDimensions(), Minimize(), operator()(), and PNeXusDeadTime().
|
private |
First good bin for analysis.
Definition at line 315 of file PNeXus.h.
Referenced by operator()(), and PNeXusDeadTime().
|
private |
Number of good time frames for analysis.
Definition at line 311 of file PNeXus.h.
Referenced by operator()(), and PNeXusDeadTime().
|
private |
Current spectrum index being minimized.
Definition at line 320 of file PNeXus.h.
Referenced by Minimize(), and operator()().
|
private |
Last good bin for analysis.
Definition at line 316 of file PNeXus.h.
Referenced by operator()(), and PNeXusDeadTime().
|
private |
T0 bin number (time zero reference)
Definition at line 314 of file PNeXus.h.
Referenced by PNeXusDeadTime().
|
private |
Time resolution in picoseconds.
Definition at line 312 of file PNeXus.h.
Referenced by operator()(), and PNeXusDeadTime().
|
private |
|
private |
Validity flag - true if required data was loaded successfully.
Definition at line 310 of file PNeXus.h.
Referenced by IsValid(), and PNeXusDeadTime().