#include "QSigExChecks.h"

QSigExChecks


class description - header file - source file - inheritance tree (.pdf)

class QSigExChecks

Inheritance Chart:
QSigExChecks

    public:
QSigExChecks(TFile* aFile = NULL) QSigExChecks(const QSigExChecks&) virtual ~QSigExChecks() void AddEvents(TFile* aFile = NULL, Char_t* aDir = "NULL", Char_t* aTreeName = "NULL") void AddNCDEvents(TFile* aFile = NULL) void AddPMTEvents(TFile* aFile = NULL) Bool_t CheckEigenValues(TMatrixDSym* aMatrix = NULL) Bool_t CheckSum(TMatrixDSym* aMatrix = NULL, Int_t aNoEvents = 0) static TClass* Class() TMatrixDSym* GetCovariance(TFile* aFile = NULL, Char_t* aDir = "NULL", Char_t* aName = "NULL") void GetF2EMaps(TFile* aFile = NULL, Char_t* aDir = "NULL") void GetFitResult(TFile* aFile = NULL, Char_t* aDir = "NULL") void GetNCDF2EMaps(TFile* aFile = NULL) Int_t GetNoEvents() Int_t GetParActive(Int_t i) Double_t GetParameter(Int_t i) void GetParameters(TFile* aFile = NULL, Char_t* aDir = "NULL") Double_t GetParMinusError(Int_t i) Double_t GetParPlusError(Int_t i) void GetPMTF2EMaps(TFile* aFile = NULL) Double_t GetSum(TMatrixDSym* aMatrix = NULL) virtual TClass* IsA() const QSigExChecks& operator=(const QSigExChecks&) Double_t PlotLikelihoodFunction(Int_t ipar, Int_t jpar, Char_t* outbase = "NULL") Double_t PlotLikelihoodFunction(Int_t ipar, Char_t* outbase = "NULL") void PrintCorrelationMatrix() void PrintEventNumbers() void PrintFlux2Events() void PrintParameters() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
static const Int_t fMaxFitPars this is for the quantile calculation static const Double_t fQuantileProbability static const Double_t fQuantile TFile* fFile TString fPMTEventDir TString fPMTF2EDir TString fNCDEventDir TString fNCDF2EDir TString fFitNumbersDir TString fFitMinuitDir TString fFitParametersDir TString fCovarianceName TString fStatusName Long64_t fNoEvents total number of events in data sample TMatrixDSym* fCovariance Int_t fnFluxes Int_t fnActiveFluxes TString* fFluxName Int_t fnF2EMaps QSigExDis** fF2EMap ! TString** fF2EFluxName ! Int_t* fF2EFluxIndex ! TString** fF2EEvtName ! Int_t fnFitPars TString** fFitParName ! Int_t* fFitParActive ! Int_t* fFitParIndexOfActive ! the index of the parameter as function of the active index Double_t* fFitPar ! Double_t* fFitParMErr ! Double_t* fFitParPErr ! Double_t* fFitParErr !

Class Description

 this class implements a number of sanity checks to verify    
 a successful fit. The most useful check is the comparison of 
 the sum of the covariance matrix with the total number of    
 events in the input data.                                    
 the class interfaces with the Fit result via the output file //  
 from the main qsigex classes.                                

QSigExChecks(TFile *theFile)

~QSigExChecks()
 Clean up memory
void AddEvents(TFile *aFile, Char_t* aDir, Char_t* aTreeName)

void GetParameters(TFile *aFile, Char_t* aDir)
  cout << "<QSigExChecks::GetParameters>" << endl;
void GetF2EMaps(TFile *aFile, Char_t* aDir)
 read the flux 2 event mapping functions
void PrintFlux2Events()

void PrintEventNumbers()

void GetFitResult(TFile *aFile, Char_t* aDir)

TMatrixDSym * GetCovariance(TFile *aFile, Char_t* aDir, Char_t* aName)

Bool_t CheckEigenValues(TMatrixDSym *aMatrix)
 check whether the eigenvalues are all positive as they should be for a covariance matrix
 return true if all are positive (>=0), false if at least one is negative.
Double_t GetSum(TMatrixDSym *aMatrix)

Bool_t CheckSum(TMatrixDSym *aMatrix, Int_t aNoEvents)

Double_t PlotLikelihoodFunction(Int_t ipar, Char_t* outbase)
 plot and print the likelihood function for one parameter.
 presently this is done for one parameter
Double_t PlotLikelihoodFunction(Int_t ipar, Int_t jpar, Char_t* outbase)
 plot and print the likelihood function for one parameter.
 presently this is done for one parameter
QSigExChecks(TFile *aFile=NULL)

Double_t GetParameter(Int_t i)


{return fFitPar[i];}
Double_t GetParPlusError(Int_t i)


{return fFitParPErr[i];}
Double_t GetParMinusError(Int_t i)


{return fFitParMErr[i];}
Int_t GetParActive(Int_t i)


{return fFitParActive[i];}
void GetPMTF2EMaps(TFile *aFile=NULL)


{GetF2EMaps(aFile,(Char_t*)fPMTF2EDir.Data());}
void GetNCDF2EMaps(TFile *aFile=NULL)


{GetF2EMaps(aFile,(Char_t*)fNCDF2EDir.Data());}
void AddPMTEvents(TFile *aFile=NULL)


{cout << "<QSigExChecks::AddPMTEvents> " << endl; AddEvents(aFile,(Char_t*)fPMTEventDir.Data());}
void AddNCDEvents(TFile *aFile=NULL)


{cout << "<QSigExChecks::AddNCDEvents> " << endl; AddEvents(aFile,(Char_t*)fNCDEventDir.Data());}
Int_t GetNoEvents()


{return fNoEvents;}
void PrintParameters()

void PrintCorrelationMatrix()


Author: J. Wendland juergen@phas.ubc.ca
Last update: Fri Nov 17 16:35:12 2006


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.