Xephyr  0.0
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
XeStat Class Reference

#include <XeStat.h>

Inheritance diagram for XeStat:
errorHandler printTools AsymptoticExclusion Likelihood LKParameter ProfileLikelihood CombinedParameter scaleSys shapeSys SigmaParameter TEfficiencyParameter TGaussParameter TLEffParameter TQyParameter TStatBkgParameter TSystBkgParameter

Public Member Functions

 XeStat (TString name)
 
void setName (TString nam="No_Name")
 helper method to set the name of this instance.
 
TString getName ()
 helper method to return the name of this instance.
 
void setExperiment (int exp)
 set the experiment number, usefull for combination
 
int getExperiment ()
 set the experiment number, usefull for combination
 
- Public Member Functions inherited from errorHandler
 errorHandler (TString name)
 
void Error (TString functionName, TString message)
 Send an Error message to the user. More...
 
void Warning (TString functionName, TString message)
 Send a Warning message to the user. More...
 
void Info (TString functionName, TString message)
 Send an Info message to the user. More...
 
void Debug (TString functionName, TString message)
 Send a Debug message to the user. More...
 
void setPrintLevel (int level)
 Set the local printing level (for this instance only) More...
 
int getPrintLevel ()
 Return the current print level for this instance. remind that if you set with setPrintLevel this will override the global print level.
 
- Public Member Functions inherited from printTools
 printTools ()
 ---------— Print Toools -----------— ///
 

Static Public Member Functions

static void setAnalysisMode (int mode)
 
static int getAnalysisMode ()
 
static bool checkAnalysisMode (TString name, int requested)
 
static bool isAnalysisDefined (bool verbose=false)
 
static bool isCutsBased ()
 
static bool isPL ()
 
static int getSigmaLinLog (int unit)
 
static TString getAnalysisModeName ()
 
static TString getAnalysisModeName (int mode)
 
static TString getSystematicModeName (int syst)
 
static TString getSigmaUnitName (int unit)
 
static TString getSigmaLabel (int unit)
 
static TString getSigmaModeName (int mode)
 
static TString getUpperSigmaLabel (int unit)
 
- Static Public Member Functions inherited from printTools
static TString upperCase (TString s)
 
static TString lowerCase (TString s)
 
static TString trim (TString s)
 
static TString justify (TString s, int w, bool left, bool trim)
 
static TString rightJustify (TString s, int w, bool trim=false)
 
static TString leftJustify (TString s, int w, bool trim=false)
 
static TString format0I (int v, int w=1)
 
static TString formatLI (int v, int w=1, int p=1)
 
static TString formatRI (int v, int w=1, int p=1)
 
static TString formatF (double v, int w=1, int p=1)
 
static TString formatR (double v, int w=1, int p=1)
 
static TString formatLF (double v, int w=1, int p=1)
 
static TString formatRF (double v, int w=1, int p=1)
 
static TString formatG (double v, int w=1, int p=1)
 
static TString formatLG (double v, int w=1, int p=1)
 
static TString formatRG (double v, int w=1, int p=1)
 
static TString formatI (int v, int w=1, int trailer=0)
 
static TString doOrDont (bool b)
 

Protected Attributes

TString name
 
int experiment
 

Static Protected Attributes

static int analysisMode = NO_ANALYSIS
 

Additional Inherited Members

- Public Attributes inherited from errorHandler
int localPrintLevel
 
TString className
 
- Static Public Attributes inherited from errorHandler
static int globalPrintLevel = 1
 

Detailed Description

Collection of static methods defining analysis methods. Relevant flags: PL vs Cls, print Level

Member Function Documentation

◆ checkAnalysisMode()

bool XeStat::checkAnalysisMode ( TString  name,
int  requested 
)
static

Check the anaylsis mode and set it if neccesary

Parameters
nameobject name to be printed in case of error
requestedeither NO_ANALYSIS, CUTS_ANALYSIS or PL_ANALYSIS

◆ getAnalysisMode()

int XeStat::getAnalysisMode ( )
static

Get the analysis mode

Returns
NO_ANALYSIS, CUTS_ANALYSIS or PL_ANALYSIS

◆ getAnalysisModeName() [1/2]

TString XeStat::getAnalysisModeName ( )
static

Return name of current analysis mode

◆ getAnalysisModeName() [2/2]

TString XeStat::getAnalysisModeName ( int  mode)
static

Return name of a given analysis mode

Parameters
modeNO_ANALYSIS , PL_ANALYSIS or CUTS_ANALYSIS

◆ getSigmaLabel()

TString XeStat::getSigmaLabel ( int  unit)
static

Return sigma label for a given sigma unit

Parameters
unitSIGMA_UNIT or EVENT_UNIT

◆ getSigmaLinLog()

int XeStat::getSigmaLinLog ( int  unit)
static

Return defaut Lin/Log mode for sigma unit

Parameters
unitSIGMA_UNIT or EVENT_UNIT

◆ getSigmaModeName()

TString XeStat::getSigmaModeName ( int  mode)
static

Return name a given mode (estimated or upper limit)

Parameters
modeESTIMATED or UPPER_LIMIT

◆ getSigmaUnitName()

TString XeStat::getSigmaUnitName ( int  unit)
static

Return unit name for a given sigma unit

Parameters
unitSIGMA_UNIT or EVENT_UNIT

◆ getSystematicModeName()

TString XeStat::getSystematicModeName ( int  syst)
static

Return systematic error name

Parameters
systONE_SIGMA_BELOW, CENTRAL, or ONE_SIGMA_ABOVE

◆ getUpperSigmaLabel()

TString XeStat::getUpperSigmaLabel ( int  unit)
static

Return sigma limit label for a given sigma unit

Parameters
unitSIGMA_UNIT or EVENT_UNIT

◆ isAnalysisDefined()

bool XeStat::isAnalysisDefined ( bool  verbose = false)
static

Check wether the AnalysisMethod has been defined

Parameters
verboseprint a messae if not

◆ isCutsBased()

bool XeStat::isCutsBased ( )
static

Is the current analysis cut based?

◆ isPL()

bool XeStat::isPL ( )
static

Is the current analysis profile likelihood

◆ setAnalysisMode()

void XeStat::setAnalysisMode ( int  mode)
static

Set the analysis mode

Parameters
modemust be either CUTS_ANALYSIS or PL_ANALYSIS

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