13 #include "dataHandler.h" 38 double getNearestLow();
41 double getNearestHigh();
50 scaleSys(TString name,
double relativeUncertainty);
55 double getNormModifier();
60 void setNull(){ isNull =
true; setMinimum(0.);};
77 pdfComponent(TString component_name, TString filename, TString hist_name);
85 void autoLoad(TString tag=
"",
char dd=
'_') {myShapeUnc=(scanFile(tag,dd));};
87 vector< shapeSys * > scanFile(TString tag=
"",
char dd=
'_');
89 void addScaleSys(
scaleSys *addMe) { myScaleUnc.push_back(addMe); };
91 void addShapeSys(
shapeSys *addMe) { myShapeUnc.push_back(addMe); };
97 void loadDefaultHisto();
103 double getNormalizedDensity(
double s1,
double s2);
106 double getDefaultDensity(
double s1,
double s2);
109 double getNormalizedEvents();
112 double getDefaultEvents();
119 TH2F getInterpolatedHisto();
122 TH2F getDefaultHisto();
125 TString getNearestHistoName(vector<bool> setOfVal);
128 TString getDefaultHistoName();
131 TString getParamValueString();
133 TString getParamValueWritable();
140 double getDefaultPdfIntegral(
double s1_min,
double s1_max,
double s2_min,
double s2_max);
147 void plotInterpolatedSpace(
bool doProjectionX,
double min,
double max,
int Nsteps,
bool legend_left =
false,
double y_max = 0.);
156 void setEvents(
double nevents);
158 scaleSys* getScaleSys(TString name);
159 shapeSys* getShapeSys(TString name);
160 void replaceUncertainty(TString name,
scaleSys* newScale);
161 void replaceUncertainty(TString name,
shapeSys* newShape);
169 vector<scaleSys*> myScaleUnc;
178 vector<TH2F*> histos;
179 vector<double> InterpFactors;
181 TString component_name;
182 vector<double> old_t_val;
186 void extendHisto(TH2F &h);
211 double projectionMin;
223 void addHistoToList(TH2F h, TString n =
"") {compareList.push_back(h); names.push_back(n);};
225 void setNameofComponent(
unsigned int i, TString n);
233 void compareWithRatio();
235 void drawLegend(TH1D *baseH, vector <TH1D*> list );
238 TString projectionInfo();
242 vector <TString> names;
243 vector <TH2F> compareList;
246 vector <TH1D*> projectedList;
250 void setOptions(TH1D *h,
bool dataLike =
true,
bool isBottom =
false);
TString titleX
Definition: XePdfObjects.h:216
int binMin
Definition: XePdfObjects.h:213
vector< shapeSys * > myShapeUnc
container of scale sys
Definition: XePdfObjects.h:170
void setBaseHisto(TH2F b, TString n="")
set histo with wich one one to compare the rest
Definition: XePdfObjects.h:221
it represents a Shape Systematic. It inherits from LKParameter. Here you can use the LKParameter func...
Definition: XePdfObjects.h:26
Helper Class to send consistently formatted messages. It allows different levels of severity for the ...
Definition: XeUtils.h:22
void autoLoad(TString tag="", char dd='_')
load automatically all histograms and associate them to shape uncertainty the "tag" is the histogram ...
Definition: XePdfObjects.h:85
int binMax
Definition: XePdfObjects.h:214
double projectionMax
Definition: XePdfObjects.h:212
void addHistoToList(TH2F h, TString n="")
set the comparison histos
Definition: XePdfObjects.h:223
void setScaleFactor(double val)
scale the pdf by VAL, this happend for the methods:
Definition: XePdfObjects.h:153
Definition: XePdfObjects.h:46
TString suffix
container of shape sys
Definition: XePdfObjects.h:172
TString getName()
Returns the histogram name.
Definition: XePdfObjects.h:164
This class is supposed to compare a "base" histo with a set of other histogram. One can choose for ra...
Definition: XePdfObjects.h:200
Definition: XePdfObjects.h:70
TString getComponentName()
Returns the component name.
Definition: XePdfObjects.h:167