|
|
| TRefMatch () |
| | Default ctor.
|
| |
| | TRefMatch (const char *fileName, const char *treeName="T", const char *branchVarName="phi") |
| | Regular ctor. More...
|
| |
| void | Init (const char *fileName, const char *treeName, const char *branchVarName) |
| | Setter version of Init() More...
|
| |
|
const char * | GetTestFileName () |
| |
|
const char * | GetTestTreeName () |
| |
|
const char * | GetTestVarName () |
| |
|
TFile * | GetFile () |
| |
|
TTree * | GetTree () |
| |
|
TBranch * | GetBranch () |
| |
|
const char * | GetReferenceTreeName () |
| |
|
TList * | GetReferenceFileList () |
| |
|
TFile * | GetOutFile () |
| |
|
TRegexp | GetReferenceFilePattern () |
| |
|
TSystemDirectory * | GetReferenceFileDir () |
| |
|
Long64_t | GetnTestSampleEvents () |
| |
|
Long64_t | GetnReferenceEvents () |
| |
|
Bool_t | GetAnderson () |
| |
|
Double_t | GetTestSamplePhiTrue () |
| |
|
Double_t | GetProb () |
| |
|
Double_t | GetSig () |
| |
|
TMatrixD | GetResultsMatrix () |
| |
|
TVectorD | GetResults () |
| |
|
TFile * | GetBestMatchFile () |
| |
|
TCanvas * | GetCanvas () |
| |
|
TH1D * | GetTestSampleHist () |
| |
|
TGraph * | GetResultsGraph () |
| |
| void | SetReferenceFileDir (TSystemDirectory *refFileDir) |
| | Set directory (by pointer) to search for reference files. More...
|
| |
| void | SetReferenceFileDir (const char *refFileDirName) |
| | Set directory (by name) to search for reference files. More...
|
| |
| void | SetReferenceFilePattern (TRegexp patternRE) |
| | Set search pattern (by TRegexp object) for reference filenames. More...
|
| |
| void | SetReferenceFilePattern (const char *pattern) |
| | Set search pattern (by string) for reference filenames. More...
|
| |
|
void | SetReferenceFileList (TList *fileList) |
| |
|
void | SetAnderson (Bool_t bAnderson) |
| |
|
void | SetReferenceTreeName (const char *treeName) |
| |
|
void | FillReferenceFileList () |
| | Populate the reference-file list based on the current reference-file directory and pattern.
|
| |
|
void | SetnEvents (Long64_t nTestSampleEvents=0, Long64_t nReferenceEvents=0) |
| |
| Double_t | Prob2Sig (Double_t prob) |
| | Convert probability to significance. More...
|
| |
| Double_t | Sig2Prob (Double_t sig) |
| | Convert significance to probability. More...
|
| |
|
void | ExtractRef (const char *runName, const char *treeName="T", const char *branchName="phi") |
| | Extract distribution from reference run.
|
| |
|
void | ExtractTest (const char *runName, const char *treeName="T_ncap", const char *branchName="phi") |
| | Extract distribution from experimental run.
|
| |
|
Double_t | UnbinnedKSTest (TTree *T1, TTree *T2, const char *branchName1, const char *branchName2="", Long64_t nEvents1=0, Long64_t nEvents2=0) |
| | Apply unbinned Kolmogorov-Smirnov test.
|
| |
| Double_t | AndersonDarlingTest (TTree *T1, TTree *T2, const char *branchName1, const char *branchName2="", Long64_t nEvents1=0, Long64_t nEvents2=0) |
| | Apply (unbinned) Anderson-Darling test. More...
|
| |
|
void | RefCompare () |
| | Perform reference-comparison algorithm.
|
| |
|
void | DrawResults (Bool_t kDrawFit=kFALSE) |
| | Plot sample distribution and algorithm results.
|
| |
|
void | PrintVerbose () |
| | Mostly settings.
|
| |
|
void | PrintResults () |
| | Results summary.
|
| |
|
void | SaveResults () |
| | Print canvas and save object.
|
| |
|
void | Close () |
| | Close pads, files, etc.
|
| |
|
void | Run (Long64_t nTestSampleEvents=0) |
| | Execute a typical analysis.
|
| |
|
|
const char * | fTestFileName |
| | Name of file containing data sample to be tested.
|
| |
|
const char * | fTestTreeName |
| | Name of tree containing data sample to be tested.
|
| |
|
const char * | fTestVarName |
| | Name of branch/variable containing data sample to be tested.
|
| |
|
TFile * | fTestSampleFile |
| | Address of test-sample file.
|
| |
|
TTree * | fTestSampleTree |
| | Address of test-sample tree.
|
| |
|
TBranch * | fTestSampleBranch |
| | Address of test-sample branch.
|
| |
|
const char * | fReferenceTreeName |
| | Name of tree in reference files.
|
| |
|
TList * | fReferenceFileList |
| | List of files containing reference distributions.
|
| |
|
TFile * | fOutFile |
| | Output file.
|
| |
|
TRegexp | fReferenceFilePattern |
| | Regex describing reference files.
|
| |
|
TSystemDirectory * | fReferenceFileDir |
| | Directory containing reference files.
|
| |
|
Long64_t | fnTestSampleEvents |
| | Number of events to use from test-sample tree (default value 0 will use all events)
|
| |
|
Long64_t | fnReferenceEvents |
| | Number of events to use from reference trees (default value 0 will use all events)
|
| |
|
Bool_t | fkAnderson |
| | If true, use Anderson-Darling rather than Kolmogorov-Smirnov.
|
| |
|
Double_t | fTestSamplePhiTrue |
| | The true value of phi for the test sample.
|
| |
|
Double_t | fProb |
| | Match probability (current entry)
|
| |
|
Double_t | fSig |
| | Match significance (current entry)
|
| |
|
TMatrixD | fResultsMatrix |
| | Matrix of comparison results.
|
| |
|
TVectorD | fResults |
| | 3x1 vector containing best match value and corresponding probability and significance
|
| |
|
TFile * | fBestMatchFile |
| | Address of best-match reference file.
|
| |
|
Bool_t | fkHasInit |
| | Status indicator for whether Init has been called yet.
|
| |
|
Bool_t | fkHasRun |
| | Status indicator for whether RefComp has been called yet.
|
| |
|
TCanvas * | fCanvas |
| | Canvas for drawing results.
|
| |
|
TH1D * | fTestSampleHist |
| | TH1 for test-sample data.
|
| |
|
TGraph * | fResultsGraph |
| | TGraph for algorithm results.
|
| |
Class implementing KS/AD-test reference-matching algorithm. //DOC//.
Standard Usage ( [R] = always required ):
- Instantiate (NOTE: must construct with "new") [R]
- Call Init ("setter version") if used default ctor
- Set reference directory / pattern if needed
- Call FillReferenceFileList [R]
- Set tree and branch names if needed
- Set number of events to use from {test-sample, reference-distrib} if desired
- Call RefCompare [R]
- Call DrawResults if desired
- Call Save if desired
- Call Close when finished
| Double_t TRefMatch::AndersonDarlingTest |
( |
TTree * |
T1, |
|
|
TTree * |
T2, |
|
|
const char * |
branchName1, |
|
|
const char * |
branchName2 = "", |
|
|
Long64_t |
nEvents1 = 0, |
|
|
Long64_t |
nEvents2 = 0 |
|
) |
| |
Apply (unbinned) Anderson-Darling test.
Function to execute unbinned TMath::KolmogorovTest on a pair of TTrees containing TBranches with matching names – Usage: Double_t P = AndersonDarlingTest( TTree T1, TTree *T2, const char branchName ) – Branches must be of type Double_t – P is the probability for match – *T1 and *T2 are pointers to the two input trees – branchName{1,2} are the branch/variable names in the respective trees – nEvents{1,2} are the number of entries to use from each tree (default value 0 will use all entries) – See the notes in ROOT::Math::GoFTest for details