#include <SideBandSubtraction.h>
Public Member Functions | |
void | addSideBandRegion (Double_t min, Double_t max) |
void | addSignalRegion (Double_t min, Double_t max) |
void | doFastSubtraction (TH1F &Total, TH1F &Result, SbsRegion &leftRegion, SbsRegion &rightRegion) |
int | doGlobalFit () |
int | doSubtraction (RooRealVar *variable, Double_t stsratio, Int_t index) |
std::vector< TH1F * > | getBaseHistos () |
RooFitResult * | getFitResult () |
std::vector< TH1F > | getRawHistos () |
std::vector< TH1F > | getSBSHistos () |
Double_t | getSTSRatio () |
void | printResults (std::string prefix="") |
void | resetSBSProducts () |
void | saveResults (std::string outname) |
void | setDataSet (RooDataSet *newData) |
SideBandSubtract () | |
SideBandSubtract (RooAbsPdf *model_shape, RooAbsPdf *bkg_shape, RooDataSet *data, RooRealVar *sep_var, const std::vector< TH1F * > &base, bool verb) | |
~SideBandSubtract () | |
Private Member Functions | |
Double_t | getYield (const std::vector< SbsRegion > &Regions, RooAbsPdf *PDF) |
void | print_plot (RooRealVar *printVar, std::string outname) |
Private Attributes | |
RooAbsPdf * | BackgroundPDF |
TH1F * | base_histo |
std::vector< TH1F * > | BaseHistos |
RooDataSet * | Data |
RooFitResult * | fit_result |
RooAbsPdf * | ModelPDF |
std::vector< TH1F > | RawHistos |
std::vector< TH1F > | SBSHistos |
RooRealVar * | SeparationVariable |
std::vector< TH1F > | SideBandHistos |
std::vector< SbsRegion > | SideBandRegions |
std::vector< SbsRegion > | SignalRegions |
Double_t | SignalSidebandRatio |
bool | verbose |
Definition at line 20 of file SideBandSubtraction.h.
SideBandSubtract::SideBandSubtract | ( | ) |
Definition at line 317 of file SideBandSubtraction.cc.
SideBandSubtract::SideBandSubtract | ( | RooAbsPdf * | model_shape, |
RooAbsPdf * | bkg_shape, | ||
RooDataSet * | data, | ||
RooRealVar * | sep_var, | ||
const std::vector< TH1F * > & | base, | ||
bool | verb | ||
) |
Definition at line 334 of file SideBandSubtraction.cc.
SideBandSubtract::~SideBandSubtract | ( | ) |
void SideBandSubtract::addSideBandRegion | ( | Double_t | min, |
Double_t | max | ||
) |
Definition at line 432 of file SideBandSubtraction.cc.
References SbsRegion::max, bookConverter::max, SbsRegion::min, min(), NULL, SbsRegion::RegionName, SeparationVariable, SideBandRegions, and stringify().
void SideBandSubtract::addSignalRegion | ( | Double_t | min, |
Double_t | max | ||
) |
Definition at line 421 of file SideBandSubtraction.cc.
References SbsRegion::max, bookConverter::max, SbsRegion::min, min(), NULL, SbsRegion::RegionName, SeparationVariable, SignalRegions, and stringify().
void SideBandSubtract::doFastSubtraction | ( | TH1F & | Total, |
TH1F & | Result, | ||
SbsRegion & | leftRegion, | ||
SbsRegion & | rightRegion | ||
) |
Definition at line 490 of file SideBandSubtraction.cc.
References SbsRegion::max, and SbsRegion::min.
int SideBandSubtract::doGlobalFit | ( | ) |
Definition at line 443 of file SideBandSubtraction.cc.
References BackgroundPDF, BaseHistos, dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, doSubtraction(), fit_result, getYield(), i, getDQMSummary::iter, ModelPDF, NULL, resetSBSProducts(), SeparationVariable, SideBandRegions, SignalRegions, SignalSidebandRatio, and AlCaHLTBitMon_QueryRunRegistry::string.
int SideBandSubtract::doSubtraction | ( | RooRealVar * | variable, |
Double_t | stsratio, | ||
Int_t | index | ||
) |
Definition at line 81 of file SideBandSubtraction.cc.
References dtNoiseDBValidation_cfg::cerr, i, getDQMSummary::iter, j, bookConverter::max, min(), NULL, setHistOptions(), AlCaHLTBitMon_QueryRunRegistry::string, relativeConstraints::value, and MetTreeProducer::var().
Referenced by doGlobalFit().
vector< TH1F * > SideBandSubtract::getBaseHistos | ( | ) |
RooFitResult * SideBandSubtract::getFitResult | ( | ) |
vector< TH1F > SideBandSubtract::getRawHistos | ( | ) |
vector< TH1F > SideBandSubtract::getSBSHistos | ( | ) |
Double_t SideBandSubtract::getSTSRatio | ( | ) |
Definition at line 544 of file SideBandSubtraction.cc.
References SignalSidebandRatio.
|
private |
Definition at line 52 of file SideBandSubtraction.cc.
References gather_cfg::cout, i, and NULL.
Referenced by doGlobalFit().
|
private |
Definition at line 299 of file SideBandSubtraction.cc.
References dtNoiseDBValidation_cfg::cerr, and NULL.
void SideBandSubtract::printResults | ( | std::string | prefix = "" | ) |
Definition at line 151 of file SideBandSubtraction.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, lut2db_cfg::filename, i, NULL, dbtoconf::out, convertSQLitetoXML_cfg::output, print_histo(), AlCaHLTBitMon_QueryRunRegistry::string, and EcalTangentSkim_cfg::Verbose.
void SideBandSubtract::resetSBSProducts | ( | ) |
Definition at line 548 of file SideBandSubtraction.cc.
References RawHistos, SBSHistos, and SideBandHistos.
Referenced by doGlobalFit(), and ~SideBandSubtract().
void SideBandSubtract::saveResults | ( | std::string | outname | ) |
Definition at line 214 of file SideBandSubtraction.cc.
References dtNoiseDBValidation_cfg::cerr, i, relval_steps::key, NULL, getGTfromDQMFile::obj, convertSQLitetoXML_cfg::output, and stringify().
void SideBandSubtract::setDataSet | ( | RooDataSet * | newData | ) |
Definition at line 294 of file SideBandSubtraction.cc.
References NULL.
|
private |
Definition at line 25 of file SideBandSubtraction.h.
Referenced by doGlobalFit().
|
private |
Definition at line 36 of file SideBandSubtraction.h.
|
private |
Definition at line 35 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getBaseHistos().
|
private |
Definition at line 27 of file SideBandSubtraction.h.
|
private |
Definition at line 37 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getFitResult().
|
private |
Definition at line 26 of file SideBandSubtraction.h.
Referenced by doGlobalFit().
|
private |
Definition at line 33 of file SideBandSubtraction.h.
Referenced by getRawHistos(), and resetSBSProducts().
|
private |
Definition at line 34 of file SideBandSubtraction.h.
Referenced by getSBSHistos(), and resetSBSProducts().
|
private |
Definition at line 28 of file SideBandSubtraction.h.
Referenced by addSideBandRegion(), addSignalRegion(), and doGlobalFit().
|
private |
Definition at line 32 of file SideBandSubtraction.h.
Referenced by resetSBSProducts().
|
private |
Definition at line 31 of file SideBandSubtraction.h.
Referenced by addSideBandRegion(), and doGlobalFit().
|
private |
Definition at line 30 of file SideBandSubtraction.h.
Referenced by addSignalRegion(), and doGlobalFit().
|
private |
Definition at line 38 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getSTSRatio().
|
private |
Definition at line 29 of file SideBandSubtraction.h.