#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 19 of file SideBandSubtraction.h.
SideBandSubtract::SideBandSubtract | ( | ) |
Definition at line 290 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 306 of file SideBandSubtraction.cc.
SideBandSubtract::~SideBandSubtract | ( | ) |
void SideBandSubtract::addSideBandRegion | ( | Double_t | min, |
Double_t | max | ||
) |
Definition at line 400 of file SideBandSubtraction.cc.
References SbsRegion::max, SiStripPI::max, SbsRegion::min, min(), SbsRegion::RegionName, SeparationVariable, SideBandRegions, and stringify().
void SideBandSubtract::addSignalRegion | ( | Double_t | min, |
Double_t | max | ||
) |
Definition at line 390 of file SideBandSubtraction.cc.
References SbsRegion::max, SiStripPI::max, SbsRegion::min, min(), SbsRegion::RegionName, SeparationVariable, SignalRegions, and stringify().
void SideBandSubtract::doFastSubtraction | ( | TH1F & | Total, |
TH1F & | Result, | ||
SbsRegion & | leftRegion, | ||
SbsRegion & | rightRegion | ||
) |
Definition at line 451 of file SideBandSubtraction.cc.
References spclusmultinvestigator_cfi::binMax, eeNoiseFilter_cfi::Intercept, SbsRegion::max, SbsRegion::min, eeNoiseFilter_cfi::Slope, tools::TF1, IntegrityTask_cfi::Total, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, geometryCSVtoXML::xx, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
int SideBandSubtract::doGlobalFit | ( | ) |
Definition at line 410 of file SideBandSubtraction.cc.
References BackgroundPDF, BaseHistos, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, Data, doSubtraction(), fit_result, getYield(), mps_fire::i, ModelPDF, resetSBSProducts(), SeparationVariable, SideBandRegions, SignalRegions, SignalSidebandRatio, AlCaHLTBitMon_QueryRunRegistry::string, taus_updatedMVAIds_cff::variable, and verbose.
int SideBandSubtract::doSubtraction | ( | RooRealVar * | variable, |
Double_t | stsratio, | ||
Int_t | index | ||
) |
Definition at line 77 of file SideBandSubtraction.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, mps_fire::i, dqmiolumiharvest::j, SiStripPI::max, min(), setHistOptions(), AlCaHLTBitMon_QueryRunRegistry::string, trigObjTnPSource_cfi::var, and taus_updatedMVAIds_cff::variable.
Referenced by doGlobalFit().
vector< TH1F * > SideBandSubtract::getBaseHistos | ( | ) |
RooFitResult * SideBandSubtract::getFitResult | ( | ) |
vector< TH1F > SideBandSubtract::getRawHistos | ( | ) |
vector< TH1F > SideBandSubtract::getSBSHistos | ( | ) |
Double_t SideBandSubtract::getSTSRatio | ( | ) |
|
private |
Definition at line 51 of file SideBandSubtraction.cc.
References gather_cfg::cout, mps_fire::i, ExhumeParameters_cfi::PDF, SiPixelRawToDigiRegional_cfi::Regions, and verbose.
Referenced by doGlobalFit().
|
private |
Definition at line 274 of file SideBandSubtraction.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, and DeadROCCounter_Phase1::outname.
void SideBandSubtract::printResults | ( | std::string | prefix = "" | ) |
Definition at line 151 of file SideBandSubtraction.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, corrVsCorr::filename, mps_fire::i, MillePedeFileConverter_cfg::out, DeadROCCounter_Phase1::outname, convertSQLitetoXML_cfg::output, ZMuMuAnalysisNtupler_cff::prefix, print_histo(), AlCaHLTBitMon_QueryRunRegistry::string, EcalTangentSkim_cfg::Verbose, and verbose.
void SideBandSubtract::resetSBSProducts | ( | ) |
Definition at line 492 of file SideBandSubtraction.cc.
References RawHistos, SBSHistos, and SideBandHistos.
Referenced by doGlobalFit(), and ~SideBandSubtract().
void SideBandSubtract::saveResults | ( | std::string | outname | ) |
Definition at line 203 of file SideBandSubtraction.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, BTVHLTOfflineSource_cfi::dirname, mps_fire::i, crabWrapper::key, getGTfromDQMFile::obj, DeadROCCounter_Phase1::outname, convertSQLitetoXML_cfg::output, and stringify().
void SideBandSubtract::setDataSet | ( | RooDataSet * | newData | ) |
Definition at line 270 of file SideBandSubtraction.cc.
|
private |
Definition at line 23 of file SideBandSubtraction.h.
Referenced by doGlobalFit().
|
private |
Definition at line 34 of file SideBandSubtraction.h.
|
private |
Definition at line 33 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getBaseHistos().
|
private |
Definition at line 25 of file SideBandSubtraction.h.
Referenced by doGlobalFit().
|
private |
Definition at line 35 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getFitResult().
|
private |
Definition at line 24 of file SideBandSubtraction.h.
Referenced by doGlobalFit().
|
private |
Definition at line 31 of file SideBandSubtraction.h.
Referenced by getRawHistos(), and resetSBSProducts().
|
private |
Definition at line 32 of file SideBandSubtraction.h.
Referenced by getSBSHistos(), and resetSBSProducts().
|
private |
Definition at line 26 of file SideBandSubtraction.h.
Referenced by addSideBandRegion(), addSignalRegion(), and doGlobalFit().
|
private |
Definition at line 30 of file SideBandSubtraction.h.
Referenced by resetSBSProducts().
|
private |
Definition at line 29 of file SideBandSubtraction.h.
Referenced by addSideBandRegion(), and doGlobalFit().
|
private |
Definition at line 28 of file SideBandSubtraction.h.
Referenced by addSignalRegion(), and doGlobalFit().
|
private |
Definition at line 36 of file SideBandSubtraction.h.
Referenced by doGlobalFit(), and getSTSRatio().
|
private |
Definition at line 27 of file SideBandSubtraction.h.
Referenced by doGlobalFit().