Classes | |
class | BinToBin |
class | BinToBin1percent |
struct | CheapValueSnapshot |
class | Chi2 |
class | KS |
class | StatisticalTest |
class | unpickler |
Functions | |
def | ask_ok |
bool | checkModel (const RooStats::ModelConfig &model, bool throwOnFail=false) |
void | copyAttributes (const RooAbsArg &from, RooAbsArg &to) |
void | factorizeFunc (const RooArgSet &observables, RooAbsReal &pdf, RooArgList &obsTerms, RooArgList &otherTerms, bool debug=false) |
factorize a RooAbsReal More... | |
RooAbsPdf * | factorizePdf (const RooArgSet &observables, RooAbsPdf &pdf, RooArgList &constraints) |
void | factorizePdf (RooStats::ModelConfig &model, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints, bool debug=false) |
collect factors depending on observables in obsTerms, and all others in constraints More... | |
void | factorizePdf (const RooArgSet &observables, RooAbsPdf &pdf, RooArgList &obsTerms, RooArgList &constraints, bool debug=false) |
RooAbsReal * | fullCloneFunc (const RooAbsReal *pdf, RooArgSet &holder, bool cloneLeafNodes=false) |
RooAbsPdf * | fullClonePdf (const RooAbsPdf *pdf, RooArgSet &holder, bool cloneLeafNodes=false) |
def | get_relval_cmssw_version |
def | get_relval_id |
def | get_relval_max_version |
def | get_relval_version |
-------------—— Make files pairs: RelVal utils ---------------—— More... | |
def | get_relvaldata_cmssw_version |
def | get_relvaldata_id |
-----------—— Make files pairs: RelValData utils --------------—— More... | |
def | get_relvaldata_max_version |
def | get_relvaldata_version |
void | getClients (const RooAbsCollection &values, const RooAbsCollection &allObjects, RooAbsCollection &clients) |
add to 'clients' all object within allObjects that directly depend on values More... | |
def | getNbins |
void | guessChannelMode (RooSimultaneous &simPdf, RooAbsData &simData, bool verbose=false) |
def | is_empty |
def | is_relvaldata |
----------------------— Make files pairs -----------------------— More... | |
def | is_sparse |
def | literal2root |
def | logger |
def | make_files_pairs |
RooAbsPdf * | makeNuisancePdf (RooStats::ModelConfig &model, const char *name="nuisancePdf") |
RooAbsPdf * | makeNuisancePdf (RooAbsPdf &pdf, const RooArgSet &observables, const char *name="nuisancePdf") |
RooAbsPdf * | makeObsOnlyPdf (RooStats::ModelConfig &model, const char *name="obsPdf") |
Note: doesn't recompose Simultaneous pdfs properly, for that use factorizePdf method. More... | |
std::vector< RooPlot * > | makePlots (const RooAbsPdf &pdf, const RooAbsData &data, const char *signalSel=0, const char *backgroundSel=0, float rebinFactor=1.0) |
make plots, if possible More... | |
void | printPdf (RooAbsPdf *pdf) |
void | printPdf (RooStats::ModelConfig &model) |
void | printPdf (RooWorkspace *w, const char *pdfName) |
void | printRAD (const RooAbsData *d) |
void | printRDH (RooAbsData *data) |
def | profile2histo |
RooSimultaneous * | rebuildSimPdf (const RooArgSet &observables, RooSimultaneous *pdf) |
bool | setAllConstant (const RooAbsCollection &coll, bool constant=true) |
set all RooRealVars to constants. return true if at least one changed status More... | |
def | setTDRStyle |
void | tdrStyle () |
set style for plots More... | |
def | wget |
Variables | |
int | _log_level = 10 |
theargv = sys.argv | |
bool utils::checkModel | ( | const RooStats::ModelConfig & | model, |
bool | throwOnFail = false |
||
) |
Performs the following checks:
Definition at line 261 of file utils.cc.
References a, gather_cfg::cout, benchmark_cfg::errors, convertSQLiteXML::ok, and v.
Referenced by Combine::run().
void utils::copyAttributes | ( | const RooAbsArg & | from, |
RooAbsArg & | to | ||
) |
Definition at line 364 of file utils.cc.
Referenced by factorizePdf(), and rebuildSimPdf().
void utils::factorizeFunc | ( | const RooArgSet & | observables, |
RooAbsReal & | pdf, | ||
RooArgList & | obsTerms, | ||
RooArgList & | otherTerms, | ||
bool | debug = false |
||
) |
factorize a RooAbsReal
Definition at line 177 of file utils.cc.
References makeMuonMisalignmentScenario::components, factorizePdf(), and parseEventContent::prod.
Referenced by cacheutils::CachingAddNLL::setup_().
RooAbsPdf * utils::factorizePdf | ( | const RooArgSet & | observables, |
RooAbsPdf & | pdf, | ||
RooArgList & | constraints | ||
) |
Create a pdf which depends only on observables, and collect the other constraint terms Will return 0 if it's all constraints, &pdf if it's all observables, or a new pdf if it's something mixed In the last case, you're the owner of the returned pdf.
Definition at line 80 of file utils.cc.
References copyAttributes(), i, list(), n, pileupCalc::nbins, parseEventContent::prod, and run_regression::ret.
Referenced by HybridNew::create(), factorizeFunc(), factorizePdf(), makeNuisancePdf(), makeObsOnlyPdf(), makePlots(), rebuildSimPdf(), GoodnessOfFit::runSaturatedModel(), cacheutils::CachingSimNLL::setup_(), toymcoptutils::SimPdfGenInfo::SimPdfGenInfo(), and SimplerLikelihoodRatioTestStatOpt::SimplerLikelihoodRatioTestStatOpt().
void utils::factorizePdf | ( | RooStats::ModelConfig & | model, |
RooAbsPdf & | pdf, | ||
RooArgList & | obsTerms, | ||
RooArgList & | constraints, | ||
bool | debug = false |
||
) |
collect factors depending on observables in obsTerms, and all others in constraints
Definition at line 149 of file utils.cc.
References createBeamHaloJobs::constraints, debug, and factorizePdf().
void utils::factorizePdf | ( | const RooArgSet & | observables, |
RooAbsPdf & | pdf, | ||
RooArgList & | obsTerms, | ||
RooArgList & | constraints, | ||
bool | debug = false |
||
) |
Definition at line 152 of file utils.cc.
References factorizePdf(), i, list(), n, and parseEventContent::prod.
RooAbsReal * utils::fullCloneFunc | ( | const RooAbsReal * | pdf, |
RooArgSet & | holder, | ||
bool | cloneLeafNodes = false |
||
) |
RooAbsPdf * utils::fullClonePdf | ( | const RooAbsPdf * | pdf, |
RooArgSet & | holder, | ||
bool | cloneLeafNodes = false |
||
) |
Definition at line 218 of file utils.cc.
References tmp.
Referenced by SimplerLikelihoodRatioTestStatOpt::SimplerLikelihoodRatioTestStatOpt().
def utils.get_relval_cmssw_version | ( | file | ) |
def utils.get_relval_id | ( | file | ) |
def utils.get_relval_max_version | ( | files | ) |
Returns file with maximum version at a) beggining of the file, e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
Definition at line 524 of file utils.py.
References get_relval_version().
def utils.get_relval_version | ( | file | ) |
-------------—— Make files pairs: RelVal utils ---------------——
Returns tuple (CMSSW version, run version) for specified file.
Definition at line 517 of file utils.py.
Referenced by get_relval_max_version().
def utils.get_relvaldata_cmssw_version | ( | file | ) |
def utils.get_relvaldata_id | ( | file | ) |
-----------—— Make files pairs: RelValData utils --------------——
Returns unique relvaldata ID for a given file.
Definition at line 476 of file utils.py.
def utils.get_relvaldata_max_version | ( | files | ) |
Returns file with maximum version at a) beggining of the file, e.g. DQM_V000M b) at the end of run, e.g. _run2012-vM. M has to be max.
Definition at line 504 of file utils.py.
References get_relvaldata_version().
def utils.get_relvaldata_version | ( | file | ) |
Returns tuple (CMSSW version, run version) for specified file.
Definition at line 495 of file utils.py.
Referenced by get_relvaldata_max_version().
void utils::getClients | ( | const RooAbsCollection & | values, |
const RooAbsCollection & | allObjects, | ||
RooAbsCollection & | clients | ||
) |
add to 'clients' all object within allObjects that directly depend on values
Definition at line 236 of file utils.cc.
Referenced by SimplerLikelihoodRatioTestStatOpt::SimplerLikelihoodRatioTestStatOpt().
def utils.getNbins | ( | h | ) |
Definition at line 92 of file utils.py.
Referenced by utils.Chi2.absval(), utils.BinToBin.do_test(), utils.BinToBin1percent.do_test(), and utils.StatisticalTest.get_rank().
void utils::guessChannelMode | ( | RooSimultaneous & | simPdf, |
RooAbsData & | simData, | ||
bool | verbose = false |
||
) |
Definition at line 376 of file utils.cc.
References gather_cfg::cout, i, n, and split.
Referenced by Combine::run().
def utils.is_empty | ( | h | ) |
Definition at line 171 of file utils.py.
Referenced by DTSectColl.addTSTheta(), DEcompare< T >.get_ncand(), utils.StatisticalTest.get_rank(), and DEcompare< T >.SortCollections().
def utils.is_relvaldata | ( | files | ) |
----------------------— Make files pairs -----------------------—
Definition at line 548 of file utils.py.
References any.
Referenced by make_files_pairs().
def utils.logger | ( | msg_level, | |
message | |||
) |
Definition at line 47 of file utils.py.
Referenced by utils.StatisticalTest.get_rank(), and utils.StatisticalTest.get_status().
Definition at line 552 of file utils.py.
References python.multivaluedict.append(), python.multivaluedict.dict, cmsRelvalreport.exit, is_relvaldata(), max(), and runtimedef.set().
Referenced by ValidationMatrix.get_filenames_from_pool().
RooAbsPdf * utils::makeNuisancePdf | ( | RooStats::ModelConfig & | model, |
const char * | name = "nuisancePdf" |
||
) |
Definition at line 200 of file utils.cc.
References mergeVDriftHistosByStation::name.
Referenced by asimovutils::asimovDatasetWithFit(), HybridNew::create(), BayesianToyMC::run(), ProfileLikelihood::run(), Combine::run(), and MaxLikelihoodFit::runSpecific().
RooAbsPdf * utils::makeNuisancePdf | ( | RooAbsPdf & | pdf, |
const RooArgSet & | observables, | ||
const char * | name = "nuisancePdf" |
||
) |
Definition at line 204 of file utils.cc.
References createBeamHaloJobs::constraints, and factorizePdf().
RooAbsPdf * utils::makeObsOnlyPdf | ( | RooStats::ModelConfig & | model, |
const char * | name = "obsPdf" |
||
) |
Note: doesn't recompose Simultaneous pdfs properly, for that use factorizePdf method.
Definition at line 212 of file utils.cc.
References createBeamHaloJobs::constraints, and factorizePdf().
std::vector< RooPlot * > utils::makePlots | ( | const RooAbsPdf & | pdf, |
const RooAbsData & | data, | ||
const char * | signalSel = 0 , |
||
const char * | backgroundSel = 0 , |
||
float | rebinFactor = 1.0 |
||
) |
make plots, if possible
Definition at line 403 of file utils.cc.
References createBeamHaloJobs::constraints, RecoTau_DiTaus_pt_20-420_cfg::datasets, factorizePdf(), pileupCalc::nbins, GetRecoTauVFromDQM_MC_cff::next, run_regression::ret, and x.
Referenced by MaxLikelihoodFit::runSpecific().
void utils::printPdf | ( | RooAbsPdf * | ) |
void utils::printPdf | ( | RooStats::ModelConfig & | model | ) |
Definition at line 68 of file utils.cc.
References gather_cfg::cout.
void utils::printPdf | ( | RooWorkspace * | w, |
const char * | pdfName | ||
) |
void utils::printRAD | ( | const RooAbsData * | d | ) |
Definition at line 56 of file utils.cc.
References printRDH().
Referenced by Combine::run().
void utils::printRDH | ( | RooAbsData * | data | ) |
Definition at line 30 of file utils.cc.
References a, newFWLiteAna::bin, i, and j.
Referenced by GoodnessOfFit::makeSaturatedPdf(), and printRAD().
RooSimultaneous * utils::rebuildSimPdf | ( | const RooArgSet & | observables, |
RooSimultaneous * | |||
) |
Definition at line 327 of file utils.cc.
References createBeamHaloJobs::constraints, copyAttributes(), factorizePdf(), pileupCalc::nbins, and run_regression::ret.
Referenced by Combine::run().
bool utils::setAllConstant | ( | const RooAbsCollection & | coll, |
bool | constant = true |
||
) |
set all RooRealVars to constants. return true if at least one changed status
Definition at line 248 of file utils.cc.
Referenced by Asymptotic::asimovDataset(), asimovutils::asimovDatasetWithFit(), HybridNew::create(), ProfiledLikelihoodTestStatOpt::Evaluate(), and Combine::run().
def utils.setTDRStyle | ( | ) |
Definition at line 52 of file utils.py.
References combineCards.dirname, and plotscripts.tdrStyle.
Referenced by FlavourHistograms< T >.plot(), and TrackIPTagPlotter.psPlot().
void utils::tdrStyle | ( | ) |
set style for plots
—> gStyle->SetStatFontSize(0.025);
Definition at line 4 of file tdrstyle.cc.
Referenced by MaxLikelihoodFit::runSpecific().
def utils.wget | ( | url | ) |
Fetch the WHOLE file, not in bunches... To be optimised.
Definition at line 451 of file utils.py.
References SiPixelLorentzAngle_cfi.read.