|
musrfit 1.10.0
|
#include <PMusr.h>
Public Member Functions | |
| PRawRunDataVector () | |
| virtual | ~PRawRunDataVector () |
| virtual UInt_t | Size () |
| Returns the number of histogram data sets in this vector. | |
| virtual Bool_t | IsPresent (UInt_t histoNo) |
| virtual PRawRunDataSet * | GetSet (UInt_t idx) |
| virtual PRawRunDataSet * | Get (UInt_t histoNo) |
| virtual PRawRunDataSet * | operator[] (UInt_t histoNo) |
| virtual PDoubleVector * | GetData (UInt_t histoNo) |
| virtual Double_t | GetT0Bin (UInt_t histoNo) |
| virtual Double_t | GetT0BinEstimated (UInt_t histoNo) |
| virtual PIntPair | GetBkgBin (UInt_t histoNo) |
| virtual PIntPair | GetGoodDataBin (UInt_t histoNo) |
| virtual void | Set (PRawRunDataSet dataSet, Int_t idx=-1) |
Private Attributes | |
| std::vector< PRawRunDataSet > | fDataVec |
Vector container for multiple PRawRunDataSet objects with flexible indexing.
This class manages a collection of raw histogram data sets, providing both sequential indexing (0, 1, 2, ...) and histogram-number-based access. The flexible indexing is necessary because histogram numbers in data files (especially MusrRoot files with Red/Green options) may not be contiguous.
Example: A MusrRoot file might contain histograms numbered [1, 2, 5, 6] (Red group) and [21, 22, 25, 26] (Green group with offset).
|
inlinevirtual |
|
virtual |
Gets histogram data set by histogram number.
| histoNo | Histogram number from data file |
Get the raw data set with histogram number histoNo.
return:
| histoNo | histogram number requested |
Definition at line 341 of file PMusr.cpp.
References fDataVec.
Referenced by operator[]().
|
virtual |
Gets background bin range for specified histogram.
| histoNo | Histogram number |
Get the background bins (start, end).
return:
| histoNo | histogram number requested |
Definition at line 462 of file PMusr.cpp.
References fDataVec.
|
virtual |
Gets histogram data vector by histogram number.
| histoNo | Histogram number |
Get the raw data set data with histogram number histoNo.
return:
| histoNo | histogram number requested |
Definition at line 384 of file PMusr.cpp.
References fDataVec.
|
virtual |
Gets good data bin range for specified histogram.
| histoNo | Histogram number |
Get the first/last good data bin (fgb, lgb).
return:
| histoNo | histogram number requested |
Definition at line 489 of file PMusr.cpp.
References fDataVec.
|
virtual |
Gets histogram data set by sequential index (0, 1, 2, ...).
| idx | Sequential index in vector |
Get the raw data set with the index idx. This routine is different to PRawRunDataVector::Get(UInt_t histoNo) where the internal saved histogram number is used.
return:
| idx | data set index |
Definition at line 319 of file PMusr.cpp.
References fDataVec.
|
virtual |
Gets time-zero bin for specified histogram.
| histoNo | Histogram number |
Get the T0 bin of raw run data with histogram number histoNo.
return:
| histoNo | histogram number requested |
Definition at line 410 of file PMusr.cpp.
References fDataVec.
|
virtual |
Gets estimated time-zero bin for specified histogram.
| histoNo | Histogram number |
Get the estimated T0 bin of raw run data with histogram number histoNo.
return:
| histoNo | histogram number requested |
Definition at line 436 of file PMusr.cpp.
References fDataVec, and PMUSR_UNDEFINED.
|
virtual |
Checks if a histogram with given number exists in the vector.
| histoNo | Histogram number to search for |
Checks if the histogram set with histgram number histoNo is present.
return:
| histoNo | histogram number requested |
Definition at line 291 of file PMusr.cpp.
References fDataVec.
|
virtual |
Operator overload for histogram-number-based access.
| histoNo | Histogram number from data file |
Get the raw data set with histogram number histoNo.
return:
| histoNo | histogram number requested |
Definition at line 367 of file PMusr.cpp.
References Get().
|
virtual |
Adds or updates a histogram data set in the vector.
| dataSet | Histogram data set to add |
| idx | Optional index; if -1 (default), appends to end |
Set a data set at idx. If idx == -1 append it at the end (default), otherwise check if idx is within bounds and if yes, place it there, otherwise resize the data vector and place it where requested.
| dataSet | data set to be set |
| idx | index at which to place the data set. |
Definition at line 515 of file PMusr.cpp.
References fDataVec.
|
inlinevirtual |
|
private |
Definition at line 804 of file PMusr.h.
Referenced by Get(), GetBkgBin(), GetData(), GetGoodDataBin(), GetSet(), GetT0Bin(), GetT0BinEstimated(), IsPresent(), Set(), Size(), and ~PRawRunDataVector().