| musrfit
    1.9.2
    | 
#include <PFitter.h>
| Public Member Functions | |
| PSectorChisq (UInt_t noOfRuns) | |
| void | SetRunFirstTime (Double_t first, UInt_t idx) | 
| void | SetSectorTime (Double_t last) | 
| void | SetChisq (Double_t chisq) | 
| void | SetChisq (Double_t chisq, UInt_t idx) | 
| void | SetExpectedChisq (Double_t expChisq) | 
| void | SetExpectedChisq (Double_t chisq, UInt_t idx) | 
| void | SetNDF (UInt_t ndf) | 
| void | SetNDF (UInt_t ndf, UInt_t idx) | 
| Double_t | GetTimeRangeFirst (UInt_t idx) | 
| Double_t | GetTimeRangeLast () | 
| Double_t | GetChisq () | 
| Double_t | GetChisq (UInt_t idx) | 
| Double_t | GetExpectedChisq () | 
| Double_t | GetExpectedChisq (UInt_t idx) | 
| UInt_t | GetNDF () | 
| UInt_t | GetNDF (UInt_t idx) | 
| UInt_t | GetNoRuns () | 
| Private Attributes | |
| UInt_t | fNoOfRuns | 
| number of runs presesent  More... | |
| Double_t | fLast | 
| requested time stamp  More... | |
| Double_t | fChisq | 
| chisq or maxLH for the sector  More... | |
| Double_t | fExpectedChisq | 
| keep the expected chisq or maxLH for the sector  More... | |
| UInt_t | fNDF | 
| NDF for the sector.  More... | |
| PDoubleVector | fFirst | 
| time stamp for fgb for a given run  More... | |
| PDoubleVector | fChisqRun | 
| chisq or maxLH for the sector and run  More... | |
| PDoubleVector | fExpectedChisqRun | 
| expected chisq or maxLH for the sector and run  More... | |
| PUIntVector | fNDFRun | 
| NDF for the sector and run.  More... | |
The PSectorChisq class is needed to store the chisq/maxLH of a sector. A sector is a time window from fgb to fLast (fLast < lgb). It also stores these information for each run of the msr-file.
| PSectorChisq::PSectorChisq | ( | UInt_t | noOfRuns | ) | 
Constructor.
Definition at line 79 of file PFitter.cpp.
References fChisq, fChisqRun, fExpectedChisq, fExpectedChisqRun, fFirst, fLast, fNDF, fNDFRun, and fNoOfRuns.
| 
 | inline | 
| Double_t PSectorChisq::GetChisq | ( | UInt_t | idx | ) | 
Get chisq/maxLH of the run with index idx
| idx | index of the run | 
return: chisq/maxLH of the requested run or -1.0 if the idx is out-of-range.
Definition at line 211 of file PFitter.cpp.
| 
 | inline | 
Definition at line 89 of file PFitter.h.
References fExpectedChisq.
| Double_t PSectorChisq::GetExpectedChisq | ( | UInt_t | idx | ) | 
Get expected chisq/maxLH of the run with index idx
| idx | index of the run | 
return: chisq/maxLH of the requested run or -1.0 if the idx is out-of-range.
Definition at line 229 of file PFitter.cpp.
References fExpectedChisqRun, and fNoOfRuns.
| UInt_t PSectorChisq::GetNDF | ( | UInt_t | idx | ) | 
Get NDF of the run with index idx
| idx | index of the run | 
return: NDF of the requested run or 0.0 if the idx is out-of-range.
Definition at line 247 of file PFitter.cpp.
| 
 | inline | 
| Double_t PSectorChisq::GetTimeRangeFirst | ( | UInt_t | idx | ) | 
Get the fgb time of RUN with index idx. If idx is out-of-range PMUSR_UNDEFINED is returned.
| idx | index of the RUN | 
return: return the fgb time of RUN with index idx.
Definition at line 193 of file PFitter.cpp.
References fFirst, fNoOfRuns, and PMUSR_UNDEFINED.
| 
 | inline | 
| 
 | inline | 
| void PSectorChisq::SetChisq | ( | Double_t | chisq, | 
| UInt_t | idx | ||
| ) | 
Set the chisq/maxLH for a given detector with index idx.
| chisq | chisq/maxLH to be set | 
| idx | index of the run to be set | 
Definition at line 128 of file PFitter.cpp.
| 
 | inline | 
Definition at line 80 of file PFitter.h.
References fExpectedChisq.
| void PSectorChisq::SetExpectedChisq | ( | Double_t | chisq, | 
| UInt_t | idx | ||
| ) | 
Set the expected chisq/maxLH for a given detector with index idx.
| chisq | expected chisq/maxLH to be set | 
| idx | index of the run to be set | 
Definition at line 149 of file PFitter.cpp.
References fExpectedChisqRun, and fNoOfRuns.
| 
 | inline | 
| void PSectorChisq::SetNDF | ( | UInt_t | ndf, | 
| UInt_t | idx | ||
| ) | 
Set the NDF for a given detector with index idx.
| ndf | to be set | 
| idx | index of the run to be set | 
Definition at line 170 of file PFitter.cpp.
| void PSectorChisq::SetRunFirstTime | ( | Double_t | first, | 
| UInt_t | idx | ||
| ) | 
Set the time of the fgb of a given RUN
| first | time stamp of the fgb | 
| idx | index of the RUN | 
Definition at line 107 of file PFitter.cpp.
| 
 | inline | 
| 
 | private | 
chisq or maxLH for the sector
Definition at line 98 of file PFitter.h.
Referenced by GetChisq(), PSectorChisq(), and SetChisq().
| 
 | private | 
chisq or maxLH for the sector and run
Definition at line 102 of file PFitter.h.
Referenced by GetChisq(), PSectorChisq(), and SetChisq().
| 
 | private | 
keep the expected chisq or maxLH for the sector
Definition at line 99 of file PFitter.h.
Referenced by GetExpectedChisq(), PSectorChisq(), and SetExpectedChisq().
| 
 | private | 
expected chisq or maxLH for the sector and run
Definition at line 103 of file PFitter.h.
Referenced by GetExpectedChisq(), PSectorChisq(), and SetExpectedChisq().
| 
 | private | 
time stamp for fgb for a given run
Definition at line 101 of file PFitter.h.
Referenced by GetTimeRangeFirst(), PSectorChisq(), and SetRunFirstTime().
| 
 | private | 
requested time stamp
Definition at line 97 of file PFitter.h.
Referenced by GetTimeRangeLast(), PSectorChisq(), and SetSectorTime().
| 
 | private | 
NDF for the sector.
Definition at line 100 of file PFitter.h.
Referenced by GetNDF(), PSectorChisq(), and SetNDF().
| 
 | private | 
NDF for the sector and run.
Definition at line 104 of file PFitter.h.
Referenced by GetNDF(), PSectorChisq(), and SetNDF().
| 
 | private | 
number of runs presesent
Definition at line 96 of file PFitter.h.
Referenced by GetChisq(), GetExpectedChisq(), GetNDF(), GetNoRuns(), GetTimeRangeFirst(), PSectorChisq(), SetChisq(), SetExpectedChisq(), SetNDF(), and SetRunFirstTime().