#include <FitHist.h>
Public Types | |
enum | EvalType { kStabilizedGauss, kHistogramMean, kMaximalValue, kQuantile } |
Public Types inherited from CompHist | |
enum | HistFilter { kBeginsWith, kEndsWith, kContains } |
enum | RootOutput { kFirstOnly, kLastOnly, kAll } |
Public Member Functions | |
void | fillTargetHistograms () |
void | fitAndDrawEps () |
void | fitAndDrawPs () |
FitHist () | |
FitHist (bool verbose) | |
void | writeFitOutput () |
virtual | ~FitHist () |
Public Member Functions inherited from CompHist | |
CompHist () | |
CompHist (bool verbose) | |
void | draw (TCanvas &, TLegend &, int &, int &) |
void | drawEps () |
void | drawPs () |
bool | histFilter (TString &, std::vector< std::string > &) |
bool | histFilter (TString &, std::vector< std::string > &, CompHist::HistFilter) |
void | loadHistograms (std::vector< std::string > &, std::vector< TObjArray > &) |
void | loadHistograms () |
virtual void | readConfig (std::string)=0 |
void | setVerbose (bool val) |
bool | verbose () |
std::string | writeAs () |
void | writeOutput (CompHist::RootOutput) |
void | writeOutput () |
virtual | ~CompHist () |
Protected Member Functions | |
void | addBinLabelToFitHist (const TObjArray &, int &, TString &, TString &) |
void | addParLabelToFitHist (const TH1F &) |
bool | checkTargetHistList () |
void | configBlockFit (ConfigFile &) |
void | fillTargetHistogram (std::string &) |
void | fillTargetHistogramBin (TH1F &, TH1F &, int) |
void | fillTargetHistogramBin (TH1F &, TH1F &, int, TString &, Quantile &) |
void | fillTargetHistogramBin (TH1F &, TH1F &, int, TString &, MaximalValue &) |
void | fillTargetHistogramBin (TH1F &, TH1F &, int, TString &, HistogramMean &) |
void | fillTargetHistogramBin (TH1F &, TH1F &, int, TString &, StabilizedGauss &) |
TH1F & | findFitHistogram (const TObjArray &, TString &, TString &, int &) |
TH1F & | findTargetHistogram (const TObjArray &, TString &, TString &, TString &) |
bool | isInFitTargetList (std::string &) |
double | normalize (TString &, double) |
void | setFitHistogramAxes (TH1F &, int) |
Protected Member Functions inherited from CompHist | |
void | configBlockHist (ConfigFile &) |
void | configBlockIO (ConfigFile &) |
double | findMaximum (int) |
bool | isOutputRequested () |
std::string | legend (int) |
void | readHistogramList () |
void | readLabels (std::string, std::vector< std::string > &) |
void | setAxesStyle (TH1 &, const char *, const char *) |
void | setCanvasStyle (TCanvas &) |
void | setCanvGrid (TCanvas &, int) |
void | setCanvLog (TCanvas &, int) |
void | setFillColor (TH1F &, int) |
void | setFillStyle (TH1F &, int) |
void | setHistLabels (TH1F &, int) |
void | setHistMax (TH1F &, int) |
void | setHistMin (TH1F &, int) |
void | setHistScale (TH1F &, int) |
void | setHistStyles (TH1F &, int, int) |
void | setLegendStyle (TLegend &) |
void | setLineColor (TH1F &, int) |
void | setLineStyle (TH1F &, int) |
void | setLineWidth (TH1F &, int) |
void | setMarkerColor (TH1F &, int) |
void | setMarkerSize (TH1F &, int) |
void | setMarkerStyle (TH1F &, int) |
Protected Attributes | |
std::vector< int > | axesIndex_ |
int | evalType_ |
double | fitFuncLowerBound_ |
std::string | fitFuncName_ |
std::string | fitFuncTitle_ |
int | fitFuncType_ |
double | fitFuncUpperBound_ |
std::vector< std::string > | targetHistList_ |
std::vector< std::string > | xAxesFit_ |
std::vector< std::string > | yAxesFit_ |
Protected Attributes inherited from CompHist | |
std::vector< short int > | commonStyle_ |
std::vector< short int > | commonWidth_ |
std::vector< std::string > | dirNameList_ |
std::vector< short int > | errors_ |
std::vector< TFile * > | fileList_ |
std::vector< std::string > | fileNameList_ |
std::string | filterOpt_ |
std::vector< short int > | gridX_ |
std::vector< short int > | gridY_ |
std::vector< short int > | histColor_ |
std::string | histFile_ |
std::vector< std::string > | histFilterList_ |
std::vector< std::string > | histList_ |
std::vector< short int > | histStyle_ |
std::vector< std::string > | legendEntries_ |
double | legXLeft_ |
double | legXRight_ |
double | legYLower_ |
double | legYUpper_ |
std::vector< short int > | logX_ |
std::vector< short int > | logY_ |
std::vector< double > | markerSize_ |
std::vector< short int > | markerStyle_ |
std::vector< double > | max_ |
std::vector< double > | min_ |
std::string | output_ |
std::vector< std::string > | outputLabelList_ |
std::vector< std::string > | plotFilterList_ |
std::string | rootOutDir_ |
std::vector< TObjArray > | sampleList_ |
std::vector< double > | scale_ |
bool | verbose_ |
std::string | writeAs_ |
std::string | writeTo_ |
std::vector< std::string > | xAxes_ |
std::vector< std::string > | yAxes_ |
enum FitHist::EvalType |
Enumerator | |
---|---|
kStabilizedGauss | |
kHistogramMean | |
kMaximalValue | |
kQuantile |
|
inline |
Definition at line 17 of file FitHist.h.
|
protected |
Definition at line 266 of file FitHist.cc.
References filterCSVwithJSON::target, and runonSM::text.
|
protected |
Definition at line 291 of file FitHist.cc.
|
protected |
Definition at line 44 of file FitHist.cc.
|
protected |
Definition at line 9 of file FitHist.cc.
References benchmark_cfg::cerr, cmsRelvalreport::exit, ConfigFile::read(), and readVector().
|
protected |
Definition at line 523 of file FitHist.cc.
References estimatePileup::hist.
|
protected |
Definition at line 199 of file FitHist.cc.
|
protected |
Definition at line 151 of file FitHist.cc.
References FitTarget::Cal, FitTarget::Mean, lumiNorm::norm, FitTarget::Res, FitTarget::Sigma, Quantile::spread(), Quantile::spreadError(), Quantile::value(), and Quantile::valueError().
|
protected |
Definition at line 163 of file FitHist.cc.
References FitTarget::Cal, FitTarget::Mean, lumiNorm::norm, FitTarget::Res, FitTarget::Sigma, MaximalValue::spread(), MaximalValue::spreadError(), MaximalValue::value(), and MaximalValue::valueError().
|
protected |
Definition at line 175 of file FitHist.cc.
References FitTarget::Cal, FitTarget::Mean, lumiNorm::norm, FitTarget::Res, FitTarget::Sigma, HistogramMean::spread(), HistogramMean::spreadError(), HistogramMean::value(), and HistogramMean::valueError().
|
protected |
Definition at line 187 of file FitHist.cc.
References FitTarget::Cal, FitTarget::Mean, lumiNorm::norm, FitTarget::Res, FitTarget::Sigma, StabilizedGauss::spread(), StabilizedGauss::spreadError(), StabilizedGauss::value(), and StabilizedGauss::valueError().
void FitHist::fillTargetHistograms | ( | ) |
|
protected |
Definition at line 77 of file FitHist.cc.
References newFWLiteAna::bin, gather_cfg::cout, and FitTarget::Fit.
|
protected |
void FitHist::fitAndDrawEps | ( | ) |
Definition at line 414 of file FitHist.cc.
References newFWLiteAna::bin, FitTarget::Fit, StabilizedGauss::fit(), estimatePileup::hist, label, MultipleCompare::legend, and convertSQLitetoXML_cfg::output.
Referenced by main().
void FitHist::fitAndDrawPs | ( | ) |
Definition at line 314 of file FitHist.cc.
References newFWLiteAna::bin, gather_cfg::cout, FitTarget::Fit, StabilizedGauss::fit(), estimatePileup::hist, label, MultipleCompare::legend, and convertSQLitetoXML_cfg::output.
Referenced by main().
|
protected |
Definition at line 59 of file FitHist.cc.
References FitTarget::Cal, benchmark_cfg::cerr, FitTarget::Mean, FitTarget::Res, FitTarget::Sigma, and filterCSVwithJSON::target.
|
protected |
|
protected |
Definition at line 242 of file FitHist.cc.
void FitHist::writeFitOutput | ( | ) |
Definition at line 562 of file FitHist.cc.
References mergeVDriftHistosByStation::file, estimatePileup::hist, estimatePileup::histFile, mergeVDriftHistosByStation::name, and dbtoconf::out.
Referenced by main().
|
protected |