Functions | |
def | getEfficiencies (t, classifierExpression, cut) |
Variables | |
int | nBins = 500 |
float | binLo = 0.0 |
float | binHi = 1.0 |
float | fontSize = 0.05 |
parser = argparse.ArgumentParser(prog=prog, description='Make dataset definitions page') | |
help | |
type | |
args = parser.parse_args() | |
dictionary | mainDefaults = {} |
cfg = SafeConfigParser(mainDefaults) | |
classifierExpression = cfg.get("main","classifierExpression") | |
title = cfg.get("main","title") | |
trueSignalCut = cfg.get("main","trueSignalCut") | |
instancesNames = cfg.get("main","instances").split() | |
outFile = cfg.get("main","outFile") | |
legendX = float(cfg.get("main","legendX")) | |
legendY = float(cfg.get("main","legendY")) | |
legendW = float(cfg.get("main","legendW")) | |
legendH = float(cfg.get("main","legendH")) | |
sgnlMin | |
sgnlMax | |
bkgdMin | |
bkgdMax | |
list | rocCurves = [] |
fileName = cfg.get(instanceName,"fileName") | |
iFile = TFile(fileName,"read") | |
iTree = iFile.Get("t") | |
sgnlEfficiencies = getEfficiencies(iTree,classifierExpression,trueSignalCut) | |
string | trueBackgroundCut = "! (%s)" |
bkgdEfficiencies = getEfficiencies(iTree,classifierExpression,trueBackgroundCut) | |
rocTitle = cfg.get(instanceName,"title") | |
nPoints = len(bkgdEfficiencies) | |
rocCurve = TGraph(nPoints,bkgdEfficiencies,sgnlEfficiencies) | |
rocCan = TCanvas("rocCan","rocCan") | |
leg = TLegend(legendX, legendY-legendH, legendX+legendW, legendY) | |
temppoint = Double(0) | |
cut = TCutG() | |
int | lastpoint = 0 |
tempx | |
tempy | |
rocIntegral = str(-1*cut.Area()) | |
newtitle = str("#splitline{"+rocTitle+"}{Integral: "+rocIntegral+"}") | |
def plotROC.getEfficiencies | ( | t, | |
classifierExpression, | |||
cut | |||
) |
plotROC.args = parser.parse_args() |
Definition at line 38 of file plotROC.py.
float plotROC.binHi = 1.0 |
Definition at line 18 of file plotROC.py.
float plotROC.binLo = 0.0 |
Definition at line 17 of file plotROC.py.
plotROC.bkgdEfficiencies = getEfficiencies(iTree,classifierExpression,trueBackgroundCut) |
Definition at line 85 of file plotROC.py.
plotROC.bkgdMax |
Definition at line 71 of file plotROC.py.
plotROC.bkgdMin |
Definition at line 71 of file plotROC.py.
plotROC.cfg = SafeConfigParser(mainDefaults) |
Definition at line 53 of file plotROC.py.
Referenced by art::DataFlow.DataFlow(), fit_3flavor_withsysts(), GetConfig(), genie::flux::GDk2NuFluxXMLHelper.LoadParamSet(), genie::flux::GNuMIFluxXMLHelper.LoadParamSet(), ValidCalibPDF.MakeTex(), MakeValidCalibPDF(), ValidCalibPDF.SetEpochList(), ana::StanFitter.SetStanConfig(), test_stanfit_withsysts(), and genie::flux::GDk2NuFluxXMLHelper.~GDk2NuFluxXMLHelper().
plotROC.classifierExpression = cfg.get("main","classifierExpression") |
Definition at line 57 of file plotROC.py.
plotROC.cut = TCutG() |
Definition at line 111 of file plotROC.py.
plotROC.fileName = cfg.get(instanceName,"fileName") |
Definition at line 78 of file plotROC.py.
Referenced by AnalyzeNus18Systs(), ApplyOscillations(), combineFiles(), CompareBinningSchemes(), cmf::EventListManipulator.Deserialize(), DrawBackgrounds(), DrawCCOscillations(), DrawExtrapSurface(), DrawSensitivityDip(), EHadVisMECpairs(), mcmc.ExptPtrs(), cmf::EventListManipulator.FillTextFile(), cmf::CAFToEventList.FillVariables(), FormatFile.FormatFile(), genie_syst_pca(), getData(), Plotter.GetMCPlots(), getPredictions(), getTimePeakTotal(), remid::RecoMuon.Init(), slid::DedxDistribution.Initialize(), cmf::ShifterAndWeighter.LoadBeamSystHists2017(), ana::FrequentistSurface.LoadFromMulti(), main(), make_prediction(), make_prediction_rhc(), make_tmva_NCPi0s_2selection(), MakePPFXRatios(), cmf::ShifterAndWeighter.NueAcceptSignalKin2018Weight(), numue::NumuEAlg.NumuEAlg(), Nus18SystsBeamTranspAna(), Nus18SystsCalibAbsAna(), Nus18SystsCalibRelAna(), Nus18SystsGENIEAna(), Nus18SystsKaonAna(), Nus18SystsLightLevelAna(), Nus18SystsLLMethodAna(), Nus18SystsNeutronAna(), Nus18SystsPPFXAna(), Nus18SystsTauAna(), Nus18SystsXSecOnOffAna(), PlotNus18Sideband(), ppfx_syst_pca_fn(), meta::Metadata.respondToOpenInputFile(), skim::DataProductSkimmer.respondToOpenInputFile(), saveFDMCHists(), cmf::BeamSyst.SetFileAndHistNames(), and art::TFileService.TFileService().
float plotROC.fontSize = 0.05 |
Definition at line 20 of file plotROC.py.
plotROC.help |
Definition at line 37 of file plotROC.py.
plotROC.iFile = TFile(fileName,"read") |
Definition at line 79 of file plotROC.py.
plotROC.instancesNames = cfg.get("main","instances").split() |
Definition at line 61 of file plotROC.py.
plotROC.iTree = iFile.Get("t") |
Definition at line 80 of file plotROC.py.
int plotROC.lastpoint = 0 |
Definition at line 112 of file plotROC.py.
Definition at line 97 of file plotROC.py.
plotROC.legendH = float(cfg.get("main","legendH")) |
Definition at line 68 of file plotROC.py.
plotROC.legendW = float(cfg.get("main","legendW")) |
Definition at line 67 of file plotROC.py.
plotROC.legendX = float(cfg.get("main","legendX")) |
Definition at line 65 of file plotROC.py.
Referenced by main().
plotROC.legendY = float(cfg.get("main","legendY")) |
Definition at line 66 of file plotROC.py.
Referenced by main().
dictionary plotROC.mainDefaults = {} |
Definition at line 40 of file plotROC.py.
int plotROC.nBins = 500 |
Definition at line 16 of file plotROC.py.
Referenced by ana::covmx::CovarianceMatrix.AddMatrix(), ana::PredictionSystJoint2018.AddNormSyst(), ana::PredictionSystJointDemo.AddNormSyst(), ana::PredictionSyst3Flavor2020.AddNormSyst(), ana::PredictionSystNue2017.AddNormSysts(), ana::PredictionSystNumu2017.AddNormSysts(), Analyse_OverlayStudies(), ana::covmx::CovarianceMatrix.BuildFullCovMx(), ana.CalcCovMx(), om::PlotViewer.ContentProjectionTH2F(), ana::covmx::CovarianceMatrix.CovarianceMatrix(), ana::TwoSampleDecomp.Decomp(), drawLongTerm(), findPeakFWHM_ignoreSpikes(), ana::FitToFourier.Fit(), FracToFull(), ana.FracUncert(), GetCovMx(), ana::covmx::CovarianceMatrix.GetCovMxAbsoluteTH2(), ana::covmx::CovarianceMatrix.GetCovMxRelativeTH2(), ana::covmx::CovarianceMatrix.GetFullCovMxTH2(), getStabilitySpectra(), MakeFakeData(), multiverse_efficiency_plot(), multiverse_macro(), NewNearlinePlots(), PaintReachCanvas(), plot_ehade_quantbound(), plot_quantbound_twosamples(), plot_quantile_boundaries_2020(), plot_quantile_boundaries_twosamples_2020(), ana.PlotMultiSyst(), PlotSyst(), ana.PlotSyst(), ana.PlotSystBand(), PlotSysts(), ana::TwoSampleDecomp.RatioCalc(), sn::HighEnergyRemover.remove(), BrightnessModelPlots.SchedulePlots(), ValidCalibPDF.SchedulePlots(), stats(), systematics_summary_from_pred_interp(), and INukeOsetTable::PointHandler.update().
plotROC.newtitle = str("#splitline{"+rocTitle+"}{Integral: "+rocIntegral+"}") |
Definition at line 122 of file plotROC.py.
Referenced by plot_with_zoom().
plotROC.nPoints = len(bkgdEfficiencies) |
Definition at line 88 of file plotROC.py.
plotROC.outFile = cfg.get("main","outFile") |
Definition at line 63 of file plotROC.py.
plotROC.parser = argparse.ArgumentParser(prog=prog, description='Make dataset definitions page') |
Definition at line 34 of file plotROC.py.
plotROC.rocCan = TCanvas("rocCan","rocCan") |
Definition at line 93 of file plotROC.py.
plotROC.rocCurve = TGraph(nPoints,bkgdEfficiencies,sgnlEfficiencies) |
Definition at line 89 of file plotROC.py.
list plotROC.rocCurves = [] |
Definition at line 76 of file plotROC.py.
plotROC.rocIntegral = str(-1*cut.Area()) |
Definition at line 120 of file plotROC.py.
plotROC.rocTitle = cfg.get(instanceName,"title") |
Definition at line 87 of file plotROC.py.
plotROC.sgnlEfficiencies = getEfficiencies(iTree,classifierExpression,trueSignalCut) |
Definition at line 82 of file plotROC.py.
plotROC.sgnlMax |
Definition at line 70 of file plotROC.py.
plotROC.sgnlMin |
Definition at line 70 of file plotROC.py.
plotROC.temppoint = Double(0) |
Definition at line 106 of file plotROC.py.
plotROC.tempx |
Definition at line 114 of file plotROC.py.
plotROC.tempy |
Definition at line 114 of file plotROC.py.
plotROC.title = cfg.get("main","title") |
Definition at line 58 of file plotROC.py.
Referenced by AnaPlotMaker(), cmf::CovarianceMatrixMaker.beginJob(), hough::HoughValidate.beginJob(), BiCountCanvas(), BiprobabilityCanvas(), BiProbCanvas(), naming_schema.categoryName(), ana.ComparisonTable(), ana.ComparisonTableNbins(), ana.ComparisonTableOne(), ana.ComparisonTableOneNbins(), naming_schema.componentName(), confusionMatrix(), confusionMatrixProng(), ana::FrequentistSurface.CreateHistograms(), NdmcClient.createMetric(), genie::NtpWriter.CreateTree(), data_over_mc_profile(), DCSPlotMaker(), DDTOnMonPlotMaker(), ana::TwoSampleDecomp.Decomp(), DrawCCOscillations(), DrawContourCanvas(), DrawSliceCanvas(), FCContour(), calib::AttenFit.fit_channel_prof(), calib::AttenuationFit.fit_channel_prof(), genie_contours(), GetHiddenParameter(), NdmcClient.getSendTimeInterval(), GoodDataSelDate(), GoodDataSelDuration(), GoodDataSelEmptySpillFrac(), GoodDataSelGoodDB(), GoodDataSelLiveTime(), GoodDataSelMipRate(), GoodDataSelNumSlices(), GoodDataSelRuns(), GoodDataSelTimingPeakEnd(), GoodDataSelTimingPeakStart(), GoodDataSelTrkFrac(), evd::HeaderDrawer.Header(), heatMap(), lem::EventSummary.IsSig(), load_libs_muonid(), stan::services::util::mcmc_writer.log_timing(), ana.LogLikelihood(), main(), cmf::PlotUtilities.Make1DPlot(), cmf::PlotUtilities.Make2DContours(), PageMakers.makeFrontPage(), cmf::PlotUtilities.MakeGeneric2DHist(), MakeLegend(), ana.MakeNueSystematicsFile(), ana::InteractionSpectra.MakePlot(), ana::ResolutionScan.MakePlot(), ValidCalibPDF.MakeTex(), ana.MakeTH1D(), ana.MakeTH1F(), ana.MakeTH2D(), ana.MakeTH2F(), ana.MakeTH3D(), cmf::RandomUniverseUtility.MakeUniverseHistograms(), PageMakers.makeValidationPage(), meanWeight_plot(), genie::flux::GAtmoFlux.MinEnergy(), NewNearlinePlots(), NuSCalculateCorr(), naming_schema.observableName(), OnMonPlotMaker(), pidPlot(), pidPlotProng(), plane_label(), plot_hists(), plot_ratios(), PlotEfficiency(), PlotEvents(), ana.PlotMultiSyst(), ana.PlotPurEff(), ana.PlotSpectra(), PlotStack(), PlotSyst(), ana.PlotSyst(), ana.PlotSystBand(), PlotSysts(), PrintEffs(), ProbabilityCanvas(), ana::FrequentistSurface.ProgressBarTitle(), om::IPC.Publish1DHistogram(), om::IPC.Publish2DHistogram(), ana::TwoSampleDecomp.RatioCalc(), om::HistoTable.ReadFile(), NdmcMetric< T >.resetValue(), SaveGraphsToRootFile(), ana::ModularExtrapComponent.SetQuiet(), NdmcMetric< T >.setTitle(), ana.sort_chisq_tot(), novaddt::SendTriggerSignal.startHeartbeat(), ana.test_best_spline(), NdmcMetricTest.testSetTitle(), and stan::services::util::mcmc_writer.write_timing().
string plotROC.trueBackgroundCut = "! (%s)" |
Definition at line 84 of file plotROC.py.
plotROC.trueSignalCut = cfg.get("main","trueSignalCut") |
Definition at line 59 of file plotROC.py.
plotROC.type |
Definition at line 37 of file plotROC.py.