Xephyr  0.0
Public Member Functions | Public Attributes | List of all members
histoCompare Class Reference

This class is supposed to compare a "base" histo with a set of other histogram. One can choose for ratio plot, stack plot of different component, one can set the projected axis and the slice on which do the projection, one can also rebin the histo. the histo are supposed to be TH2F. More...

#include <XePdfObjects.h>

Inheritance diagram for histoCompare:
errorHandler

Public Member Functions

void setBaseHisto (TH2F b, TString n="")
 set histo with wich one one to compare the rest
 
void addHistoToList (TH2F h, TString n="")
 set the comparison histos
 
void setNameofComponent (unsigned int i, TString n)
 set Name of component
 
void compare ()
 draw just a normal comparison plot
 
void printModels ()
 print model content in csv format
 
void compareWithRatio ()
 add a ratio plot to compare()
 
void drawLegend (TH1D *baseH, vector< TH1D *> list)
 
TString projectionInfo ()
 
- 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

int rebinX
 
int rebinY
 
bool projectionX
 
double projectionMin
 
double projectionMax
 
int binMin
 
int binMax
 
bool doStack
 
TString titleX
 
TString titleY
 
TH2F base
 
vector< TString > names
 
vector< TH2F > compareList
 
TH1D * projectedBase
 
vector< TH1D * > projectedList
 
- Public Attributes inherited from errorHandler
int localPrintLevel
 
TString className
 

Additional Inherited Members

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

Detailed Description

This class is supposed to compare a "base" histo with a set of other histogram. One can choose for ratio plot, stack plot of different component, one can set the projected axis and the slice on which do the projection, one can also rebin the histo. the histo are supposed to be TH2F.

Member Data Documentation

◆ binMax

int histoCompare::binMax

same but in bin nuber

◆ binMin

int histoCompare::binMin

maximum value on the projected axis

◆ projectionMax

double histoCompare::projectionMax

minimum value on the projected axis

◆ titleX

TString histoCompare::titleX

True if you want to sum up histo in compareList


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