|
musrfit 1.10.0
|
Data container for musrt0 raw run data and histogram information. More...
#include <PMusrT0.h>
Public Member Functions | |
| PMusrT0Data () | |
| Default constructor. | |
| virtual | ~PMusrT0Data () |
| Destructor. | |
| virtual void | InitData () |
| Initializes data structures (currently empty implementation) | |
| virtual Bool_t | IsSingleHisto () |
| Returns true if single histogram fit mode. | |
| virtual UInt_t | GetRawRunDataSize () |
| Returns number of raw run data entries (1 + number of addruns) | |
| virtual PRawRunData * | GetRawRunData (Int_t idx) |
| Returns raw run data for given index (0=main run, >0=addruns) | |
| virtual Int_t | GetRunNo () |
| Returns MSR file run number. | |
| virtual Int_t | GetAddRunIdx () |
| Returns current addrun index. | |
| virtual Int_t | GetHistoNoIdx () |
| Returns current histogram number index. | |
| virtual UInt_t | GetHistoNoSize () |
| Returns number of histogram numbers. | |
| virtual Int_t | GetHistoNo (UInt_t idx) |
| Returns histogram number at given index. | |
| virtual Int_t | GetDetectorTag () |
| Returns detector tag (PMUSRT0_FORWARD or PMUSRT0_BACKWARD) | |
| virtual Int_t | GetCmdTag () |
| Returns command tag (mode for t0/range determination) | |
| virtual UInt_t | GetT0BinSize () |
| Returns number of t0 bins for main run. | |
| virtual Int_t | GetT0Bin (UInt_t idx) |
| Returns t0 bin value at given index. | |
| virtual UInt_t | GetAddT0Entries () |
| Returns number of addrun entries with t0 values. | |
| virtual UInt_t | GetAddT0BinSize (UInt_t idx) |
| Returns number of t0 bins for given addrun. | |
| virtual Int_t | GetAddT0Bin (UInt_t addRunIdx, UInt_t idx) |
| Returns t0 bin for specific addrun and histogram. | |
| virtual Int_t | GetT0BinData () |
| Returns t0 bin found from data file. | |
| virtual void | SetSingleHisto (const Bool_t flag) |
| Sets single histogram fit mode flag. | |
| virtual void | SetRawRunData (const std::vector< PRawRunData * > rawRunData) |
| Sets vector of raw run data pointers. | |
| virtual void | SetRunNo (const UInt_t runNo) |
| Sets MSR file run number. | |
| virtual void | SetAddRunIdx (const UInt_t addRunIdx) |
| Sets current addrun index. | |
| virtual void | SetHistoNoIdx (const UInt_t histoNoIdx) |
| Sets current histogram number index. | |
| virtual void | SetHistoNo (const PIntVector histoNo) |
| Sets vector of histogram numbers. | |
| virtual void | SetDetectorTag (const UInt_t detectorTag) |
| Sets detector tag (forward/backward) | |
| virtual void | SetCmdTag (const UInt_t cmdTag) |
| Sets command/mode tag. | |
| virtual void | SetT0Bin (UInt_t val, UInt_t idx) |
| Sets t0 bin value at given index. | |
| virtual void | SetAddT0Bin (UInt_t val, UInt_t addRunIdx, UInt_t idx) |
| Sets t0 bin value for specific addrun and index. | |
| virtual void | SetT0BinData (UInt_t val) |
| Sets t0 bin value found from data file. | |
Private Attributes | |
| Bool_t | fSingleHisto |
| True for single histogram fit, false for asymmetry fit. | |
| std::vector< PRawRunData * > | fRawRunData |
| Raw data: index 0 = main run, index >0 = addruns. | |
| Int_t | fRunNo |
| MSR file run block number. | |
| Int_t | fAddRunIdx |
| Current addrun index being processed. | |
| Int_t | fHistoNoIdx |
| Current histogram number index. | |
| PIntVector | fHistoNo |
| Histogram numbers (with Red/Green offset applied) | |
| Int_t | fDetectorTag |
| Detector: PMUSRT0_FORWARD (0) or PMUSRT0_BACKWARD (1) | |
| Int_t | fCmdTag |
| Mode: 0=t0 only, 1=ranges only, 2=both t0 and ranges. | |
| PIntVector | fT0 |
| t0 bin values for main run histograms | |
| std::vector< PIntVector > | fAddT0 |
| t0 bin values for addrun histograms | |
| Int_t | fT0Data |
| t0 bin found in current data file | |
Data container for musrt0 raw run data and histogram information.
PMusrT0Data manages the raw histogram data needed for interactive t0 and range determination in the musrt0 tool. It stores:
The class supports both single histogram and asymmetry fit modes, and handles complex run configurations including addrun combinations.
| PMusrT0Data::PMusrT0Data | ( | ) |
Default constructor.
Default constructor that initializes all member variables.
Calls InitData() to set default values for all member variables.
Definition at line 51 of file PMusrT0.cpp.
References InitData().
|
virtual |
Destructor.
Destructor that cleans up all vector containers.
Clears all vectors including raw run data references, histogram numbers, t0 values, and addrun t0 values.
Definition at line 65 of file PMusrT0.cpp.
References fAddT0, fHistoNo, fRawRunData, and fT0.
|
inlinevirtual |
|
virtual |
Returns t0 bin for specific addrun and histogram.
Returns t0 bin value for a specific addrun and histogram index.
| addRunIdx | Addrun index |
| idx | Histogram index within the addrun |
Definition at line 179 of file PMusrT0.cpp.
References fAddT0.
|
virtual |
Returns number of t0 bins for given addrun.
Returns number of t0 bins for the specified addrun.
| idx | Addrun index |
Definition at line 161 of file PMusrT0.cpp.
References fAddT0.
|
inlinevirtual |
|
inlinevirtual |
Returns command tag (mode for t0/range determination)
Definition at line 111 of file PMusrT0.h.
References fCmdTag.
Referenced by musrt0_item().
|
inlinevirtual |
Returns detector tag (PMUSRT0_FORWARD or PMUSRT0_BACKWARD)
Definition at line 109 of file PMusrT0.h.
References fDetectorTag.
|
virtual |
Returns histogram number at given index.
Returns histogram number at the specified index.
| idx | Index into histogram number vector |
Definition at line 127 of file PMusrT0.cpp.
References fHistoNo.
|
inlinevirtual |
Returns current histogram number index.
Definition at line 103 of file PMusrT0.h.
References fHistoNoIdx.
|
inlinevirtual |
|
virtual |
Returns raw run data for given index (0=main run, >0=addruns)
Returns pointer to raw run data at the specified index.
| idx | Index of raw run data (0=main run, >0=addruns) |
Definition at line 110 of file PMusrT0.cpp.
References fRawRunData.
|
inlinevirtual |
Returns number of raw run data entries (1 + number of addruns)
Definition at line 95 of file PMusrT0.h.
References fRawRunData.
|
inlinevirtual |
|
virtual |
Returns t0 bin value at given index.
Returns t0 bin value for the main run at the specified index.
| idx | Index into main run t0 vector |
Definition at line 144 of file PMusrT0.cpp.
References fT0.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Initializes data structures (currently empty implementation)
Initializes all member variables to default values.
Sets all indices to -1, flags to default states, and clears all vectors. This method is called by the constructor and can be used to reset the object.
Definition at line 84 of file PMusrT0.cpp.
References fAddRunIdx, fAddT0, fCmdTag, fDetectorTag, fHistoNo, fHistoNoIdx, fRawRunData, fRunNo, fSingleHisto, fT0, and fT0Data.
Referenced by main(), and PMusrT0Data().
|
inlinevirtual |
Returns true if single histogram fit mode.
Definition at line 93 of file PMusrT0.h.
References fSingleHisto.
|
inlinevirtual |
Sets current addrun index.
Definition at line 132 of file PMusrT0.h.
References fAddRunIdx.
Referenced by main().
|
virtual |
Sets t0 bin value for specific addrun and index.
Sets t0 bin value for a specific addrun and histogram index.
Automatically resizes vectors if indices are beyond current size.
| val | t0 bin value to set |
| addRunIdx | Addrun index (each addrun needs its own t0 values) |
| idx | Histogram index within the addrun |
Definition at line 221 of file PMusrT0.cpp.
References fAddT0.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
Sets detector tag (forward/backward)
Definition at line 138 of file PMusrT0.h.
References fDetectorTag.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
Sets current histogram number index.
Definition at line 134 of file PMusrT0.h.
References fHistoNoIdx.
Referenced by main().
|
inlinevirtual |
Sets vector of raw run data pointers.
Definition at line 128 of file PMusrT0.h.
References fRawRunData.
Referenced by main().
|
inlinevirtual |
|
inlinevirtual |
Sets single histogram fit mode flag.
Definition at line 126 of file PMusrT0.h.
References fSingleHisto.
Referenced by main().
|
virtual |
Sets t0 bin value at given index.
Sets t0 bin value for the main run at the specified index.
Automatically resizes the t0 vector if idx is beyond current size.
| val | t0 bin value to set |
| idx | Index at which to set the t0 value |
Definition at line 201 of file PMusrT0.cpp.
References fT0.
Referenced by main().
|
inlinevirtual |
|
private |
Current addrun index being processed.
Definition at line 152 of file PMusrT0.h.
Referenced by GetAddRunIdx(), InitData(), and SetAddRunIdx().
|
private |
t0 bin values for addrun histograms
Definition at line 158 of file PMusrT0.h.
Referenced by GetAddT0Bin(), GetAddT0BinSize(), GetAddT0Entries(), InitData(), SetAddT0Bin(), and ~PMusrT0Data().
|
private |
Mode: 0=t0 only, 1=ranges only, 2=both t0 and ranges.
Definition at line 156 of file PMusrT0.h.
Referenced by GetCmdTag(), InitData(), and SetCmdTag().
|
private |
Detector: PMUSRT0_FORWARD (0) or PMUSRT0_BACKWARD (1)
Definition at line 155 of file PMusrT0.h.
Referenced by GetDetectorTag(), InitData(), and SetDetectorTag().
|
private |
Histogram numbers (with Red/Green offset applied)
Definition at line 154 of file PMusrT0.h.
Referenced by GetHistoNo(), GetHistoNoSize(), InitData(), SetHistoNo(), and ~PMusrT0Data().
|
private |
Current histogram number index.
Definition at line 153 of file PMusrT0.h.
Referenced by GetHistoNoIdx(), InitData(), and SetHistoNoIdx().
|
private |
Raw data: index 0 = main run, index >0 = addruns.
Definition at line 150 of file PMusrT0.h.
Referenced by GetRawRunData(), GetRawRunDataSize(), InitData(), SetRawRunData(), and ~PMusrT0Data().
|
private |
MSR file run block number.
Definition at line 151 of file PMusrT0.h.
Referenced by GetRunNo(), InitData(), and SetRunNo().
|
private |
True for single histogram fit, false for asymmetry fit.
Definition at line 149 of file PMusrT0.h.
Referenced by InitData(), IsSingleHisto(), and SetSingleHisto().
|
private |
t0 bin values for main run histograms
Definition at line 157 of file PMusrT0.h.
Referenced by GetT0Bin(), GetT0BinSize(), InitData(), SetT0Bin(), and ~PMusrT0Data().
|
private |
t0 bin found in current data file
Definition at line 159 of file PMusrT0.h.
Referenced by GetT0BinData(), InitData(), and SetT0BinData().