#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 hpstanc_transforms::max, SbsRegion::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 hpstanc_transforms::max, SbsRegion::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 eeNoiseFilter_cfi::Intercept, SbsRegion::max, SbsRegion::min, eeNoiseFilter_cfi::Slope, and geometryCSVtoXML::xx.
int SideBandSubtract::doGlobalFit | ( | ) |
Definition at line 443 of file SideBandSubtraction.cc.
References BackgroundPDF, BaseHistos, MessageLogger_cfi::cerr, gather_cfg::cout, Data, doSubtraction(), fit_result, getYield(), mps_fire::i, ModelPDF, NULL, resetSBSProducts(), SeparationVariable, SideBandRegions, SignalRegions, SignalSidebandRatio, AlCaHLTBitMon_QueryRunRegistry::string, and HPSPFTaus_cff::variable.
int SideBandSubtract::doSubtraction | ( | RooRealVar * | variable, |
Double_t | stsratio, | ||
Int_t | index | ||
) |
Definition at line 81 of file SideBandSubtraction.cc.
References MessageLogger_cfi::cerr, mps_fire::i, hpstanc_transforms::max, min(), NULL, setHistOptions(), AlCaHLTBitMon_QueryRunRegistry::string, and JetChargeProducer_cfi::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, mps_fire::i, and NULL.
Referenced by doGlobalFit().
|
private |
Definition at line 299 of file SideBandSubtraction.cc.
References MessageLogger_cfi::cerr, and NULL.
void SideBandSubtract::printResults | ( | std::string | prefix = "" | ) |
Definition at line 151 of file SideBandSubtraction.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, corrVsCorr::filename, mps_fire::i, NULL, MillePedeFileConverter_cfg::out, convertSQLitetoXML_cfg::output, print_histo(), AlCaHLTBitMon_QueryRunRegistry::string, and JetPlusTrackCorrections_cfi::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 MessageLogger_cfi::cerr, compare_using_db::dirname, mps_fire::i, crabWrapper::key, NULL, MuonAssociatorByHits_cfi::obj, convertSQLitetoXML_cfg::output, and stringify().
void SideBandSubtract::setDataSet | ( | RooDataSet * | newData | ) |
|
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.
Referenced by doGlobalFit().
|
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.