Functions | |
def | RebinHistQ0Q3 (hist) |
def | SetRangeQ0Q3 (hist) |
def | GetMaximum (hist) |
def | SetMECWeightsPalette () |
def | SetTitleQ0 (hist) |
def | SetDecimalsAllAxes (hist) |
def | SetHistLineAtt (hist, width, color) |
def make_true_q0q3_plots.GetMaximum | ( | hist | ) |
Definition at line 25 of file make_true_q0q3_plots.py.
def make_true_q0q3_plots.RebinHistQ0Q3 | ( | hist | ) |
Definition at line 13 of file make_true_q0q3_plots.py.
def make_true_q0q3_plots.SetDecimalsAllAxes | ( | hist | ) |
Definition at line 53 of file make_true_q0q3_plots.py.
def make_true_q0q3_plots.SetHistLineAtt | ( | hist, | |
width, | |||
color | |||
) |
Definition at line 59 of file make_true_q0q3_plots.py.
def make_true_q0q3_plots.SetMECWeightsPalette | ( | ) |
Definition at line 29 of file make_true_q0q3_plots.py.
References PandAna.Demos.demo1.range.
def make_true_q0q3_plots.SetRangeQ0Q3 | ( | hist | ) |
Definition at line 18 of file make_true_q0q3_plots.py.
def make_true_q0q3_plots.SetTitleQ0 | ( | hist | ) |
Definition at line 49 of file make_true_q0q3_plots.py.
References SetTitle().
make_true_q0q3_plots.action |
Definition at line 79 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.args |
Definition at line 85 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.canvas = TCanvas() |
Definition at line 281 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.caption = open( os.path.join( plots_dir, '%s_%s_MEC_2018CV_vs_Empirical.txt' % ( tag_neutrino_mec_hists, var ) ), 'w' ) |
Definition at line 404 of file make_true_q0q3_plots.py.
Referenced by BinByBinTemplateFit(), BinByBinTemplateFit_TemplateResults(), ana::NumuCCIncPionTemplateFitter.doFullFit(), ana::nueccinc::NueCCIncTemplateFitter.doFullFit(), fd_plot(), ana::NumuCCIncPionTemplateFitter.GetAnalysisBinCaption(), ana::nueccinc::NueCCIncTemplateFitter.GetAnalysisBinCaption(), getCaption2D(), ana::NumuCCIncPionTemplateFitter.getCorrelationMatrixTemplateBins(), ana::nueccinc::NueCCIncTemplateFitter.getCorrelationMatrixTemplateBins(), ana::NumuCCIncPionTemplateFitter.getCovarianceMatrixTemplateBins(), ana::nueccinc::NueCCIncTemplateFitter.getCovarianceMatrixTemplateBins(), ana::NumuCCIncPionTemplateFitter.getPIDFitTemplates(), ana::nueccinc::NueCCIncTemplateFitter.getPIDFitTemplates(), ana::NumuCCIncPionTemplateFitter.getPIDTemplates(), ana::nueccinc::NueCCIncTemplateFitter.getPIDTemplates(), MakePlots(), MakePlots1D(), makeXSecPlots2D(), ana::NumuCCIncAnalysis.PlotHelper(), PlotWithRatio2D(), om::HistoTable.ReadFile(), and selection_story_plots().
make_true_q0q3_plots.default |
Definition at line 78 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.default_indir = "/pnfs/nova/persistent/users/mislivec/xsec_tuning_paper/" |
Parse Options.
Definition at line 71 of file make_true_q0q3_plots.py.
Definition at line 72 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.dest |
Definition at line 78 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.event_scale_1d = 1.0 |
Definition at line 122 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.event_scale_2d = 1.0 |
Definition at line 557 of file make_true_q0q3_plots.py.
int make_true_q0q3_plots.event_scale_power_1d = 4 |
Definition at line 121 of file make_true_q0q3_plots.py.
int make_true_q0q3_plots.event_scale_power_2d = 3 |
Definition at line 556 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.False |
Definition at line 79 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.help |
Definition at line 78 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_minerva = hist_minerva.ProjectionY( '%s_MINERvA' % var ) |
Definition at line 290 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_nominal = hist_nominal.ProjectionY( '%s_Empirical' % var ) |
Definition at line 287 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_non_mec = hist_non_mec.ProjectionY( '%s_NonMEC' % var ) |
Definition at line 294 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_non_mec_shift_down = hist_non_mec_shift_down.ProjectionY( '%s_NonMEC_ShiftDown' % var ) |
Definition at line 296 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_non_mec_shift_up = hist_non_mec_shift_up.ProjectionY( '%s_NonMEC_ShiftUp' % var ) |
Definition at line 295 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_shift_down = hist_shift_down.ProjectionY( '%s_ShiftDown' % var ) |
Definition at line 292 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_shift_up = hist_shift_up.ProjectionY( '%s_ShiftUp' % var ) |
Definition at line 291 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_tuned = hist_tuned.ProjectionY( '%s_2018CV' % var ) |
Definition at line 288 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_1D_valencia = hist_valencia.ProjectionY( '%s_Valencia' % var ) |
Definition at line 289 of file make_true_q0q3_plots.py.
int make_true_q0q3_plots.hist_line_width = 3 |
Definition at line 353 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_minerva = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_MINERvA_%s' % tag_neutrino_mec_hists ) |
Definition at line 159 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_nominal = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_Nominal_%s' % tag_neutrino_mec_hists ) |
Definition at line 156 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_non_mec = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_TotMC' ) |
Definition at line 179 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_non_mec_shift_down = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_ShiftsRESLike_TotMC' ) |
Definition at line 181 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_non_mec_shift_up = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_ShiftsQELike_TotMC' ) |
Definition at line 180 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_shift_down = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MECShapeDown_MEC_%s' % tag_neutrino_mec_hists ) |
Definition at line 161 of file make_true_q0q3_plots.py.
Referenced by GetBackgroundSystematicUncertainty(), and GetEfficiencySystematicUncertainty().
make_true_q0q3_plots.hist_shift_up = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MECShapeUp_MEC_%s' % tag_neutrino_mec_hists ) |
Definition at line 160 of file make_true_q0q3_plots.py.
Referenced by GetBackgroundSystematicUncertainty(), and GetEfficiencySystematicUncertainty().
make_true_q0q3_plots.hist_tuned = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_%s' % tag_neutrino_mec_hists ) |
Definition at line 157 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_valencia = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_Valencia_%s' % tag_neutrino_mec_hists ) |
Definition at line 158 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hist_weights = weights_file.Get( '%s_mec_weights_smoothed' % tag_neutrino_mec_hists.lower() ) |
Definition at line 162 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hists_file_data = TFile( hists_file_name_data ) |
Definition at line 100 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hists_file_mc = TFile( hists_file_name_mc ) |
Definition at line 101 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hists_file_name_data = os.path.join( default_indir, "hists_2018_%s_data_full.root" % opts.beam ) |
Definition at line 92 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.hists_file_name_mc = os.path.join( default_indir, "hists_2018_%s_mc_full.root" % opts.beam ) |
Definition at line 93 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.isRHC = 'RHC' |
Definition at line 133 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_beam = root_style.GetLabel( text_beam , xpos_label_mec , ypos_label_top , text_size, kBlack, text_font, 13, text_angle, setNDC ) |
Definition at line 275 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_empirical = root_style.GetLabel( text_empirical, xpos_label_2d, ypos_label_empirical, text_size, kBlack, text_font, 13, text_angle, setNDC ) |
Definition at line 590 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_no_mec = root_style.GetLabel( text_no_2p2h, xpos_label_no_mec, ypos_label_no_mec, text_size, kBlack, text_font, 13, text_angle, setNDC ) |
Definition at line 278 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_nova_2p2h = root_style.GetLabel( text_nova_2p2h, xpos_label_2d, ypos_label_nova_2p2h, text_size, kBlack, text_font, 13, text_angle, setNDC ) |
Definition at line 591 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_numu_cc = root_style.GetLabel( text_numu_cc, xpos_label_mec , ypos_label_mec , text_size, kBlack, text_font, 13, text_angle, setNDC ) |
Definition at line 277 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_simulation = root_style.GetLabel( text_simulation, 1.0 - margin_right, 1.0 - margin_top * 0.7, 2/30., kBlue , text_font, 31, text_angle, setNDC ) |
Definition at line 279 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_weights_1 = root_style.GetLabel( text_weights_1, xpos_label_2d, ypos_label_weights_1, text_size, kWhite, text_font, 13, text_angle, setNDC ) |
Definition at line 588 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.label_weights_2 = root_style.GetLabel( text_weights_2, xpos_label_2d, ypos_label_weights_2, text_size, kWhite, text_font, 13, text_angle, setNDC ) |
Definition at line 589 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.legend1 = root_style.GetLegend() |
Definition at line 374 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.legend2 = root_style.GetLegend() |
Definition at line 408 of file make_true_q0q3_plots.py.
Referenced by plotDataPred().
make_true_q0q3_plots.legend3 = root_style.GetLegend() |
Definition at line 434 of file make_true_q0q3_plots.py.
Referenced by plotDataPred().
make_true_q0q3_plots.legend4 = root_style.GetLegend() |
Definition at line 460 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.legend5 = root_style.GetLegend() |
Definition at line 488 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.legend6 = root_style.GetLegend() |
Definition at line 519 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.margin_left = gStyle.GetPadLeftMargin() |
Definition at line 236 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.margin_right = gStyle.GetPadRightMargin() |
Definition at line 237 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.margin_top = gStyle.GetPadTopMargin() |
Definition at line 238 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_minerva = GetMaximum( hist_1D_minerva ) |
Definition at line 367 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_nominal = GetMaximum( hist_1D_nominal ) |
Definition at line 364 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_non_mec = GetMaximum( hist_1D_non_mec ) |
Definition at line 370 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_non_mec_shift_down = GetMaximum( hist_1D_non_mec_shift_down ) |
Definition at line 372 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_non_mec_shift_up = GetMaximum( hist_1D_non_mec_shift_up ) |
Definition at line 371 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_shift_down = GetMaximum( hist_1D_shift_down ) |
Definition at line 369 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_shift_up = GetMaximum( hist_1D_shift_up ) |
Definition at line 368 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_tuned = GetMaximum( hist_1D_tuned ) |
Definition at line 365 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.max_valencia = GetMaximum( hist_1D_valencia ) |
Definition at line 366 of file make_true_q0q3_plots.py.
Definition at line 115 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.name = k.GetName() |
Definition at line 127 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.None |
Definition at line 78 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.opts |
Definition at line 85 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.parser = OptionParser() |
Definition at line 77 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.plots_dir = default_outdir |
Definition at line 150 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.pot_data = 0.0 |
Definition at line 104 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.pot_mc = 0.0 |
Definition at line 110 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.scale_hist_1d = mc_pot_scale*event_scale_1d |
Definition at line 124 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.scale_hist_2d = mc_pot_scale*event_scale_2d |
Definition at line 559 of file make_true_q0q3_plots.py.
bool make_true_q0q3_plots.setNDC = True |
Definition at line 242 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.tag_neutrino_mec_hists = 'Numu' |
Definition at line 153 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.tag_neutrino_mec_weights = 'Nu' |
Definition at line 135 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.text_angle = 0.0 |
Definition at line 241 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.text_beam = "Neutrino Beam" |
Definition at line 260 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_caption = 'The %s near detector %s distribution for true %s CC MEC events that pass the 2018 numu selection. ' |
Definition at line 402 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_empirical = "%s CC Empirical MEC" |
Definition at line 577 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_empirical_mec = "Empirical MEC" |
Definition at line 268 of file make_true_q0q3_plots.py.
Definition at line 123 of file make_true_q0q3_plots.py.
Definition at line 558 of file make_true_q0q3_plots.py.
int make_true_q0q3_plots.text_font = 42 |
Definition at line 240 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.text_mec_neutrino = '#nu_{#mu}' |
Definition at line 257 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_minerva = "MINERvA" |
Definition at line 264 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_minerva_2p2h = "%s 2p2h" |
Definition at line 272 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.text_neutrino = 'neutrino' |
Definition at line 614 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_no_2p2h = "#nu_{#mu} + #bar{#nu}_{#mu} CC No 2p2h" |
Definition at line 267 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_nova = "NOvA" |
Definition at line 263 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_nova_2p2h = "%s 2p2h" |
Definition at line 271 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_nova_tune = "2018 %s #nu + #bar{#nu} Tune" |
Definition at line 270 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_numu_cc = "%s CC" |
Definition at line 266 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_simulation = "%s Simulation" |
Definition at line 273 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.text_size = 0.05 |
Definition at line 239 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_valencia_mec = "Valencia MEC" |
Definition at line 269 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_variable = 'blah' |
Definition at line 396 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_weights_1 = "Weights Applied to" |
Definition at line 575 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.text_weights_2 = "%s Empirical MEC" |
Definition at line 576 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.text_weights_neutrino = '#nu' |
Definition at line 572 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.tree_pot_data = hists_file_data.Get( 'pot' ) |
Definition at line 103 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.tree_pot_mc = hists_file_mc.Get( 'pot' ) |
Definition at line 109 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.weights_file = TFile( weights_file_name ) |
Definition at line 146 of file make_true_q0q3_plots.py.
Referenced by mec_tuning().
make_true_q0q3_plots.weights_file_name = os.path.join( os.environ[ 'SRT_PUBLIC_CONTEXT' ], "MCReweight/data/xs/rw_empiricalMEC2018_RPAfix_%s.root" % tag_neutrino_mec_weights.lower() ) |
Definition at line 138 of file make_true_q0q3_plots.py.
Referenced by rvp::RecVarPID.getMethodNameFromXML(), xnue::XnuePID.getMethodNameFromXML(), and mec_tuning().
float make_true_q0q3_plots.xmax = 1.0 |
Definition at line 285 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.xpos_label_2d = canvas.GetLeftMargin()+0.03 |
Definition at line 580 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.xpos_label_mec = 0.37 |
Definition at line 244 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.xpos_label_no_mec = 0.37 |
Definition at line 245 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.xpos_legend_mec = xpos_label_mec-0.02 |
Definition at line 246 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.xpos_legend_no_mec = xpos_label_no_mec-0.02 |
Definition at line 247 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ymax_non_mec = 2.0 |
Definition at line 531 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.ypos_label_empirical = ypos_label_top-text_size-0.005 |
Definition at line 584 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ypos_label_mec = ypos_label_top-text_size |
Definition at line 249 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ypos_label_no_mec = ypos_label_top-text_size |
Definition at line 250 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ypos_label_nova_2p2h = ypos_label_top-text_size |
Definition at line 583 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.ypos_label_top = 1.0 |
Definition at line 248 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ypos_label_weights_1 = ypos_label_top |
Definition at line 581 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.ypos_label_weights_2 = ypos_label_top-text_size |
Definition at line 582 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.ypos_legend_mec = ypos_label_mec-text_size-0.01 |
Definition at line 254 of file make_true_q0q3_plots.py.
float make_true_q0q3_plots.ypos_legend_no_mec = ypos_label_no_mec-text_size-0.02 |
Definition at line 255 of file make_true_q0q3_plots.py.
string make_true_q0q3_plots.zaxis_tag = "_FixedZ" |
Definition at line 622 of file make_true_q0q3_plots.py.
make_true_q0q3_plots.zmax = 10 |
Definition at line 623 of file make_true_q0q3_plots.py.
Referenced by calib::HitEfficiency.analyze(), showere::ShowerEnergyAna.analyze(), evd::TZProjPad.AutoZoom(), evd::TZProjPad.AutoZoomBox(), evd::TZProjPad.AutoZoomSlice(), evd::TZProjPad.AutoZoomTruth(), comi::NumiFilteringAna.beginJob(), CalcFiberLoopCorr(), genie::DFRKinematicsGenerator.ComputeMaxXSec(), trk::KalmanTrackAna.Containment(), showere::ShowerEnergyFilterMC.filter(), bpfit::BreakPoint.FindEndPoints(), evd::XZYZProjectionsView.FixAspectRatio(), remid::ReMIdValidate.IsContained(), remid::RecoMuon.IsTrackContained(), main(), trk::CosmicTrackAna.Make1DRecoHistograms(), trk::CosmicTrackAna.Make2DRecoHistograms(), numusand::FillSandbox.produce(), hough::MultiHough2P.ReweightHits(), genie::geometry::GeomVolSelectorFiducial.SetReverseFiducial(), evd::TZProjPad.ShowFull(), evd::TZProjPad.ShowPartial(), and dif::DiFShowerFinder.trackEndContained().