Xephyr  0.0
Public Member Functions | Public Attributes | List of all members
pdfComponent Class Reference
Inheritance diagram for pdfComponent:
errorHandler

Public Member Functions

 pdfComponent (TString name, TString filename)
 Contructor that uses histogram name as the component name.
 
 pdfComponent (TString component_name, TString filename, TString hist_name)
 Contructor for explicitly setting component name that differs from histogram name.
 
void autoLoad (TString tag="", char dd='_')
 load automatically all histograms and associate them to shape uncertainty the "tag" is the histogram prefix, the points in parameter space must be equally separated.
 
vector< shapeSys *> scanFile (TString tag="", char dd='_')
 
void addScaleSys (scaleSys *addMe)
 
void addShapeSys (shapeSys *addMe)
 
void loadHistos ()
 load histogram according to the current value of the parameters
 
void loadDefaultHisto ()
 load default histogram, no sys.
 
double getNormalizedDensity (double s1, double s2)
 returns the interpolated pdf over shape sys computed in (s1,s2). More...
 
double getDefaultDensity (double s1, double s2)
 returns the (s1,s2) bin content of the default histo, no shape nor scale sys is applied
 
double getNormalizedEvents ()
 Returns the total integrated number of events taking into account shape sys and scale sys.
 
double getDefaultEvents ()
 returns total integral of the default histo, no shape nor scale sys is applied
 
TH2F getInterpolatedHisto ()
 Returns a copy of the interpolated histogram according to the "currentValue" of the shapeSys associated with it. More...
 
TH2F getDefaultHisto ()
 Returns a copy of the default histogram, no shape nor scale sys is applied.
 
TString getNearestHistoName (vector< bool > setOfVal)
 returns the grid points in histogram space that needs to be loaded. this method need to be modified for arbitrary number of shape sys.
 
TString getDefaultHistoName ()
 returns the default name of the histogram
 
TString getParamValueString ()
 returns a string with current values of parameters
 
TString getParamValueWritable ()
 
double getDefaultPdfIntegral (double s1_min, double s1_max, double s2_min, double s2_max)
 returns the integral of the square between points (not bins). More...
 
void plotInterpolatedSpace (bool doProjectionX, double min, double max, int Nsteps, bool legend_left=false, double y_max=0.)
 This scans the parameter space given a number of steps for each parameter. More...
 
void setScaleFactor (double val)
 scale the pdf by VAL, this happend for the methods:
 
void setEvents (double nevents)
 Normalize the pdf in a way that its integral is nevents.
 
scaleSysgetScaleSys (TString name)
 
shapeSysgetShapeSys (TString name)
 
void replaceUncertainty (TString name, scaleSys *newScale)
 
void replaceUncertainty (TString name, shapeSys *newShape)
 
TString getName ()
 Returns the histogram name.
 
TString getComponentName ()
 Returns the component name.
 
- 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 Attributes

vector< scaleSys * > myScaleUnc
 
vector< shapeSys * > myShapeUnc
 container of scale sys
 
TString suffix
 container of shape sys
 
bool doExtend
 
- Public Attributes inherited from errorHandler
int localPrintLevel
 
TString className
 

Additional Inherited Members

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

Member Function Documentation

◆ getDefaultPdfIntegral()

double pdfComponent::getDefaultPdfIntegral ( double  s1_min,
double  s1_max,
double  s2_min,
double  s2_max 
)

returns the integral of the square between points (not bins).

linearly interpolates the area if desn't correspond to an integer number of bins. Uses the default histo, does not consider shape or scale uncertainty.

◆ getInterpolatedHisto()

TH2F pdfComponent::getInterpolatedHisto ( )

Returns a copy of the interpolated histogram according to the "currentValue" of the shapeSys associated with it.

The current value of each uncertainty can be set simply by shapeSys::setCurrentValue(val) method.

◆ getNormalizedDensity()

double pdfComponent::getNormalizedDensity ( double  s1,
double  s2 
)

returns the interpolated pdf over shape sys computed in (s1,s2).

it is normalized to number of events and scale uncertainty are also taken into account

◆ plotInterpolatedSpace()

void pdfComponent::plotInterpolatedSpace ( bool  doProjectionX,
double  min,
double  max,
int  Nsteps,
bool  legend_left = false,
double  y_max = 0. 
)

This scans the parameter space given a number of steps for each parameter.

produce a projection given min and max, produce a PDF file for comparison of all interpolation and saves also the TH2F to file.


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