|
musrWiz 0.1.0
|
The PSetup class represents a measurement setup configuration. More...
#include <PInstrumentDef.h>
Public Member Functions | |
| PSetup () | |
| Constructor. Initializes all values to -1/empty. | |
| ~PSetup () | |
| Destructor. | |
| void | setName (QString str) |
| Sets the setup name. | |
| void | setNoOfDetectors (int no) |
| Sets the total number of physical detectors. | |
| void | setFgbOffset (int fgbOffset) |
| Sets the first good bin offset from t0. | |
| void | setLgb (int lgb) |
| Sets the last good bin. | |
| void | setBkgRange (int start, int end) |
| Sets the background range for asymmetry fits. | |
| void | addDetector (PDetector detector) |
| Adds a logical detector for single-histogram fits. | |
| void | addAsymDetector (PDetector detector) |
| Adds a logical detector for asymmetry fits. | |
| QString | getName () |
| Returns the setup name. | |
| int | getNoOfDetectors () |
| Returns the total number of physical detectors. | |
| int | getNoOfLogicalDetectors () |
| Returns the number of logical detectors for single-histogram fits. | |
| int | getNoOfLogicalAsymDetectors () |
| Returns the number of logical detectors for asymmetry fits. | |
| int | getFgbOffset () |
| Returns the first good bin offset. | |
| int | getLgb () |
| Returns the last good bin. | |
| int | getBkgStartBin () |
| Returns the background range start bin. | |
| int | getBkgEndBin () |
| Returns the background range end bin. | |
| PDetector * | getDetector (int idx) |
| Returns a pointer to a single-histogram logical detector. | |
| PDetector * | getAsymDetector (int idx) |
| Returns a pointer to an asymmetry logical detector. | |
Private Attributes | |
| QString | fName |
| setup name | |
| int | fNoOfDetectors |
| total number of physical detectors | |
| int | fFgbOffset |
| first good bin offset from t0 | |
| int | fLgb |
| last good bin | |
| int | fBkgStartBin |
| background range start bin | |
| int | fBkgEndBin |
| background range end bin | |
| QVector< PDetector > | fLogicDetectors |
| logical detectors for single-histogram fits | |
| QVector< PDetector > | fLogicAsymDetectors |
| logical detectors for asymmetry fits | |
The PSetup class represents a measurement setup configuration.
This class defines a specific detector setup for a measurement type (ZF, TF, or LF). It includes information about the number of detectors, good bin ranges, background ranges, and logical detector groupings for both single-histogram and asymmetry fits.
| PSetup::PSetup | ( | ) |
Constructor. Initializes all values to -1/empty.
PSetup::PSetup constructor initializes all values to -1/empty.
|
inline |
Destructor.
|
inline |
Adds a logical detector for asymmetry fits.
| detector | Detector configuration to add (with forward/backward groups). |
|
inline |
Adds a logical detector for single-histogram fits.
| detector | Detector configuration to add. |
| PDetector * PSetup::getAsymDetector | ( | int | idx | ) |
Returns a pointer to an asymmetry logical detector.
PSetup::getAsymDetector returns a pointer to an asymmetry logical detector.
| idx | Index of the detector. |
| idx | Index of the detector in the asymmetry detector list. |
|
inline |
Returns the background range end bin.
|
inline |
Returns the background range start bin.
| PDetector * PSetup::getDetector | ( | int | idx | ) |
Returns a pointer to a single-histogram logical detector.
PSetup::getDetector returns a pointer to a single-histogram logical detector.
| idx | Index of the detector. |
| idx | Index of the detector in the logical detector list. |
|
inline |
Returns the first good bin offset.
|
inline |
Returns the last good bin.
|
inline |
Returns the setup name.
|
inline |
Returns the total number of physical detectors.
|
inline |
Returns the number of logical detectors for asymmetry fits.
|
inline |
Returns the number of logical detectors for single-histogram fits.
|
inline |
Sets the background range for asymmetry fits.
| start | Start bin for background estimation. |
| end | End bin for background estimation. |
|
inline |
Sets the first good bin offset from t0.
| fgbOffset | Offset in bins from t0 to first good bin. |
|
inline |
Sets the last good bin.
| lgb | Last good bin number. |
|
inline |
Sets the setup name.
| str | Setup name (e.g., "Default", "Veto"). |
|
inline |
Sets the total number of physical detectors.
| no | Number of detectors. |
|
private |
background range end bin
|
private |
background range start bin
|
private |
first good bin offset from t0
|
private |
last good bin
|
private |
logical detectors for asymmetry fits
|
private |
logical detectors for single-histogram fits
|
private |
setup name
|
private |
total number of physical detectors