musrfit  1.9.2
PSectorChisq Class Reference

#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...
 

Detailed Description

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.

Definition at line 71 of file PFitter.h.

Constructor & Destructor Documentation

◆ PSectorChisq()

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.

Member Function Documentation

◆ GetChisq() [1/2]

Double_t PSectorChisq::GetChisq ( )
inline

Definition at line 87 of file PFitter.h.

References fChisq.

◆ GetChisq() [2/2]

Double_t PSectorChisq::GetChisq ( UInt_t  idx)

Get chisq/maxLH of the run with index idx

Parameters
idxindex 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.

References fChisqRun, and fNoOfRuns.

◆ GetExpectedChisq() [1/2]

Double_t PSectorChisq::GetExpectedChisq ( )
inline

Definition at line 89 of file PFitter.h.

References fExpectedChisq.

◆ GetExpectedChisq() [2/2]

Double_t PSectorChisq::GetExpectedChisq ( UInt_t  idx)

Get expected chisq/maxLH of the run with index idx

Parameters
idxindex 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.

◆ GetNDF() [1/2]

UInt_t PSectorChisq::GetNDF ( )
inline

Definition at line 91 of file PFitter.h.

References fNDF.

◆ GetNDF() [2/2]

UInt_t PSectorChisq::GetNDF ( UInt_t  idx)

Get NDF of the run with index idx

Parameters
idxindex 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.

References fNDFRun, and fNoOfRuns.

◆ GetNoRuns()

UInt_t PSectorChisq::GetNoRuns ( )
inline

Definition at line 93 of file PFitter.h.

References fNoOfRuns.

◆ GetTimeRangeFirst()

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.

Parameters
idxindex 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.

◆ GetTimeRangeLast()

Double_t PSectorChisq::GetTimeRangeLast ( )
inline

Definition at line 86 of file PFitter.h.

References fLast.

◆ SetChisq() [1/2]

void PSectorChisq::SetChisq ( Double_t  chisq)
inline

Definition at line 78 of file PFitter.h.

References fChisq.

◆ SetChisq() [2/2]

void PSectorChisq::SetChisq ( Double_t  chisq,
UInt_t  idx 
)

Set the chisq/maxLH for a given detector with index idx.

Parameters
chisqchisq/maxLH to be set
idxindex of the run to be set

Definition at line 128 of file PFitter.cpp.

References fChisqRun, and fNoOfRuns.

◆ SetExpectedChisq() [1/2]

void PSectorChisq::SetExpectedChisq ( Double_t  expChisq)
inline

Definition at line 80 of file PFitter.h.

References fExpectedChisq.

◆ SetExpectedChisq() [2/2]

void PSectorChisq::SetExpectedChisq ( Double_t  chisq,
UInt_t  idx 
)

Set the expected chisq/maxLH for a given detector with index idx.

Parameters
chisqexpected chisq/maxLH to be set
idxindex of the run to be set

Definition at line 149 of file PFitter.cpp.

References fExpectedChisqRun, and fNoOfRuns.

◆ SetNDF() [1/2]

void PSectorChisq::SetNDF ( UInt_t  ndf)
inline

Definition at line 82 of file PFitter.h.

References fNDF.

◆ SetNDF() [2/2]

void PSectorChisq::SetNDF ( UInt_t  ndf,
UInt_t  idx 
)

Set the NDF for a given detector with index idx.

Parameters
ndfto be set
idxindex of the run to be set

Definition at line 170 of file PFitter.cpp.

References fNDFRun, and fNoOfRuns.

◆ SetRunFirstTime()

void PSectorChisq::SetRunFirstTime ( Double_t  first,
UInt_t  idx 
)

Set the time of the fgb of a given RUN

Parameters
firsttime stamp of the fgb
idxindex of the RUN

Definition at line 107 of file PFitter.cpp.

References fFirst, and fNoOfRuns.

◆ SetSectorTime()

void PSectorChisq::SetSectorTime ( Double_t  last)
inline

Definition at line 77 of file PFitter.h.

References fLast.

Member Data Documentation

◆ fChisq

Double_t PSectorChisq::fChisq
private

chisq or maxLH for the sector

Definition at line 98 of file PFitter.h.

Referenced by GetChisq(), PSectorChisq(), and SetChisq().

◆ fChisqRun

PDoubleVector PSectorChisq::fChisqRun
private

chisq or maxLH for the sector and run

Definition at line 102 of file PFitter.h.

Referenced by GetChisq(), PSectorChisq(), and SetChisq().

◆ fExpectedChisq

Double_t PSectorChisq::fExpectedChisq
private

keep the expected chisq or maxLH for the sector

Definition at line 99 of file PFitter.h.

Referenced by GetExpectedChisq(), PSectorChisq(), and SetExpectedChisq().

◆ fExpectedChisqRun

PDoubleVector PSectorChisq::fExpectedChisqRun
private

expected chisq or maxLH for the sector and run

Definition at line 103 of file PFitter.h.

Referenced by GetExpectedChisq(), PSectorChisq(), and SetExpectedChisq().

◆ fFirst

PDoubleVector PSectorChisq::fFirst
private

time stamp for fgb for a given run

Definition at line 101 of file PFitter.h.

Referenced by GetTimeRangeFirst(), PSectorChisq(), and SetRunFirstTime().

◆ fLast

Double_t PSectorChisq::fLast
private

requested time stamp

Definition at line 97 of file PFitter.h.

Referenced by GetTimeRangeLast(), PSectorChisq(), and SetSectorTime().

◆ fNDF

UInt_t PSectorChisq::fNDF
private

NDF for the sector.

Definition at line 100 of file PFitter.h.

Referenced by GetNDF(), PSectorChisq(), and SetNDF().

◆ fNDFRun

PUIntVector PSectorChisq::fNDFRun
private

NDF for the sector and run.

Definition at line 104 of file PFitter.h.

Referenced by GetNDF(), PSectorChisq(), and SetNDF().

◆ fNoOfRuns

UInt_t PSectorChisq::fNoOfRuns
private

The documentation for this class was generated from the following files: