Functions | Variables
make_true_q0q3_plots Namespace Reference

Functions

def RebinHistQ0Q3 (hist)
 
def SetRangeQ0Q3 (hist)
 
def GetMaximum (hist)
 
def SetMECWeightsPalette ()
 
def SetTitleQ0 (hist)
 
def SetDecimalsAllAxes (hist)
 
def SetHistLineAtt (hist, width, color)
 

Variables

string default_indir = "/pnfs/nova/persistent/users/mislivec/xsec_tuning_paper/"
 Parse Options. More...
 
string default_outdir = './plots/true_q0q3'
 
 parser = OptionParser()
 
 dest
 
 default
 
 None
 
 help
 
 action
 
 False
 
 opts
 
 args
 
 hists_file_name_data = os.path.join( default_indir, "hists_2018_%s_data_full.root" % opts.beam )
 
 hists_file_name_mc = os.path.join( default_indir, "hists_2018_%s_mc_full.root" % opts.beam )
 
 hists_file_data = TFile( hists_file_name_data )
 
 hists_file_mc = TFile( hists_file_name_mc )
 
 tree_pot_data = hists_file_data.Get( 'pot' )
 
float pot_data = 0.0
 
 tree_pot_mc = hists_file_mc.Get( 'pot' )
 
float pot_mc = 0.0
 
 mc_pot_scale = pot_data/pot_mc
 
int event_scale_power_1d = 4
 
float event_scale_1d = 1.0
 
string text_events_1d = '10^{%d} Events'
 
 scale_hist_1d = mc_pot_scale*event_scale_1d
 
 name = k.GetName()
 
string isRHC = 'RHC'
 
string tag_neutrino_mec_weights = 'Nu'
 
 weights_file_name = os.path.join( os.environ[ 'SRT_PUBLIC_CONTEXT' ], "MCReweight/data/xs/rw_empiricalMEC2018_RPAfix_%s.root" % tag_neutrino_mec_weights.lower() )
 
 weights_file = TFile( weights_file_name )
 
 plots_dir = default_outdir
 
string tag_neutrino_mec_hists = 'Numu'
 
 hist_nominal = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_Nominal_%s' % tag_neutrino_mec_hists )
 
 hist_tuned = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_%s' % tag_neutrino_mec_hists )
 
 hist_valencia = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_Valencia_%s' % tag_neutrino_mec_hists )
 
 hist_minerva = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MEC_MINERvA_%s' % tag_neutrino_mec_hists )
 
 hist_shift_up = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MECShapeUp_MEC_%s' % tag_neutrino_mec_hists )
 
 hist_shift_down = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MECShapeDown_MEC_%s' % tag_neutrino_mec_hists )
 
 hist_weights = weights_file.Get( '%s_mec_weights_smoothed' % tag_neutrino_mec_hists.lower() )
 
 hist_non_mec = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_TotMC' )
 
 hist_non_mec_shift_up = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_ShiftsQELike_TotMC' )
 
 hist_non_mec_shift_down = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_ShiftsRESLike_TotMC' )
 
 margin_left = gStyle.GetPadLeftMargin()
 
 margin_right = gStyle.GetPadRightMargin()
 
 margin_top = gStyle.GetPadTopMargin()
 
float text_size = 0.05
 
int text_font = 42
 
float text_angle = 0.0
 
bool setNDC = True
 
float xpos_label_mec = 0.37
 
float xpos_label_no_mec = 0.37
 
float xpos_legend_mec = xpos_label_mec-0.02
 
float xpos_legend_no_mec = xpos_label_no_mec-0.02
 
float ypos_label_top = 1.0
 
 ypos_label_mec = ypos_label_top-text_size
 
 ypos_label_no_mec = ypos_label_top-text_size
 
float ypos_legend_mec = ypos_label_mec-text_size-0.01
 
float ypos_legend_no_mec = ypos_label_no_mec-text_size-0.02
 
string text_mec_neutrino = '#nu_{#mu}'
 
string text_beam = "Neutrino Beam"
 
string text_nova = "NOvA"
 
string text_minerva = "MINERvA"
 
string text_numu_cc = "%s CC"
 
string text_no_2p2h = "#nu_{#mu} + #bar{#nu}_{#mu} CC No 2p2h"
 
string text_empirical_mec = "Empirical MEC"
 
string text_valencia_mec = "Valencia MEC"
 
string text_nova_tune = "2018 %s #nu + #bar{#nu} Tune"
 
string text_nova_2p2h = "%s 2p2h"
 
string text_minerva_2p2h = "%s 2p2h"
 
string text_simulation = "%s Simulation"
 
 label_beam = root_style.GetLabel( text_beam , xpos_label_mec , ypos_label_top , text_size, kBlack, text_font, 13, text_angle, setNDC )
 
 label_numu_cc = root_style.GetLabel( text_numu_cc, xpos_label_mec , ypos_label_mec , text_size, kBlack, text_font, 13, text_angle, setNDC )
 
 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 )
 
 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 )
 
 canvas = TCanvas()
 
float xmax = 1.0
 
 hist_1D_nominal = hist_nominal.ProjectionY( '%s_Empirical' % var )
 
 hist_1D_tuned = hist_tuned.ProjectionY( '%s_2018CV' % var )
 
 hist_1D_valencia = hist_valencia.ProjectionY( '%s_Valencia' % var )
 
 hist_1D_minerva = hist_minerva.ProjectionY( '%s_MINERvA' % var )
 
 hist_1D_shift_up = hist_shift_up.ProjectionY( '%s_ShiftUp' % var )
 
 hist_1D_shift_down = hist_shift_down.ProjectionY( '%s_ShiftDown' % var )
 
 hist_1D_non_mec = hist_non_mec.ProjectionY( '%s_NonMEC' % var )
 
 hist_1D_non_mec_shift_up = hist_non_mec_shift_up.ProjectionY( '%s_NonMEC_ShiftUp' % var )
 
 hist_1D_non_mec_shift_down = hist_non_mec_shift_down.ProjectionY( '%s_NonMEC_ShiftDown' % var )
 
int hist_line_width = 3
 
 max_nominal = GetMaximum( hist_1D_nominal )
 
 max_tuned = GetMaximum( hist_1D_tuned )
 
 max_valencia = GetMaximum( hist_1D_valencia )
 
 max_minerva = GetMaximum( hist_1D_minerva )
 
 max_shift_up = GetMaximum( hist_1D_shift_up )
 
 max_shift_down = GetMaximum( hist_1D_shift_down )
 
 max_non_mec = GetMaximum( hist_1D_non_mec )
 
 max_non_mec_shift_up = GetMaximum( hist_1D_non_mec_shift_up )
 
 max_non_mec_shift_down = GetMaximum( hist_1D_non_mec_shift_down )
 
 legend1 = root_style.GetLegend()
 
string text_variable = 'blah'
 
string text_caption = 'The %s near detector %s distribution for true %s CC MEC events that pass the 2018 numu selection. '
 
 caption = open( os.path.join( plots_dir, '%s_%s_MEC_2018CV_vs_Empirical.txt' % ( tag_neutrino_mec_hists, var ) ), 'w' )
 
 legend2 = root_style.GetLegend()
 
 legend3 = root_style.GetLegend()
 
 legend4 = root_style.GetLegend()
 
 legend5 = root_style.GetLegend()
 
 legend6 = root_style.GetLegend()
 
float ymax_non_mec = 2.0
 
int event_scale_power_2d = 3
 
float event_scale_2d = 1.0
 
string text_events_2d = '10^{%d} Events'
 
 scale_hist_2d = mc_pot_scale*event_scale_2d
 
string text_weights_neutrino = '#nu'
 
string text_weights_1 = "Weights Applied to"
 
string text_weights_2 = "%s Empirical MEC"
 
string text_empirical = "%s CC Empirical MEC"
 
float xpos_label_2d = canvas.GetLeftMargin()+0.03
 
 ypos_label_weights_1 = ypos_label_top
 
 ypos_label_weights_2 = ypos_label_top-text_size
 
 ypos_label_nova_2p2h = ypos_label_top-text_size
 
float ypos_label_empirical = ypos_label_top-text_size-0.005
 
 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 )
 
 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 )
 
 label_empirical = root_style.GetLabel( text_empirical, xpos_label_2d, ypos_label_empirical, text_size, kBlack, text_font, 13, text_angle, setNDC )
 
 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 )
 
string text_neutrino = 'neutrino'
 
string zaxis_tag = "_FixedZ"
 
int zmax = 10
 

Function Documentation

def make_true_q0q3_plots.GetMaximum (   hist)

Definition at line 25 of file make_true_q0q3_plots.py.

25 def GetMaximum( hist ) :
26 
27  return hist.GetBinContent( hist.GetMaximumBin() )
28 
def make_true_q0q3_plots.RebinHistQ0Q3 (   hist)

Definition at line 13 of file make_true_q0q3_plots.py.

13 def RebinHistQ0Q3( hist ) :
14 
15  hist.RebinX( 2 )
16  hist.RebinY( 2 )
17 
def make_true_q0q3_plots.SetDecimalsAllAxes (   hist)

Definition at line 53 of file make_true_q0q3_plots.py.

53 def SetDecimalsAllAxes( hist ) :
54 
55  hist.GetXaxis().SetDecimals( kTRUE )
56  hist.GetYaxis().SetDecimals( kTRUE )
57  hist.GetZaxis().SetDecimals( kTRUE )
58 
def make_true_q0q3_plots.SetHistLineAtt (   hist,
  width,
  color 
)

Definition at line 59 of file make_true_q0q3_plots.py.

59 def SetHistLineAtt( hist, width, color ) :
60 
61  hist.SetLineWidth( width )
62  hist.SetLineColor( color )
63 
def SetHistLineAtt(hist, width, color)
def make_true_q0q3_plots.SetMECWeightsPalette ( )

Definition at line 29 of file make_true_q0q3_plots.py.

References PandAna.Demos.demo1.range.

30 
31  # A colour palette that goes blue->white->red, useful for correlation matrices
32 
33  n_color_contours = 999
34  #n_color_contours = 25
35  NRGBs = 3;
36  initialized = False
37  colors = array( "i" )
38 
39  stops = array( "d", [ 0.00, 0.20, 1.00 ] )
40  red = array( "d", [ 0.00, 1.00, 1.00 ] )
41  green = array( "d", [ 0.00, 1.00, 0.00 ] )
42  blue = array( "d", [ 1.00, 1.00, 0.00 ] )
43  colmin = TColor.CreateGradientColorTable( NRGBs, stops, red, green, blue, n_color_contours )
44  for i in range( n_color_contours ) : colors.insert( i, colmin + i )
45 
46  gStyle.SetNumberContours( n_color_contours )
47  gStyle.SetPalette( n_color_contours, colors )
48 
def make_true_q0q3_plots.SetRangeQ0Q3 (   hist)

Definition at line 18 of file make_true_q0q3_plots.py.

18 def SetRangeQ0Q3( hist ) :
19 
20  hist.GetXaxis().SetRangeUser( 0.0, 1.0 )
21  hist.GetYaxis().SetRangeUser( 0.0, 0.8 )
22  #hist.GetYaxis().SetLimits( 1.0e-3, 0.8 / hist.GetYaxis().GetXmax() )
23  #print hist.GetYaxis().GetXmax()
24 
def make_true_q0q3_plots.SetTitleQ0 (   hist)

Definition at line 49 of file make_true_q0q3_plots.py.

References SetTitle().

49 def SetTitleQ0( hist ) :
50 
51  hist.GetXaxis().SetTitle( "True #left|#vec{q}#right| (GeV/c)" )
52 
gargamelle SetTitle("Gargamelle #nu_{e} CC data")

Variable Documentation

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' )
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.

string make_true_q0q3_plots.default_outdir = './plots/true_q0q3'

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 )
make_true_q0q3_plots.hist_shift_up = hists_file_mc.Get( 'TrueQ0_vs_TrueQ3_MECShapeUp_MEC_%s' % tag_neutrino_mec_hists )
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.

Referenced by CompareSpectraDataMC().

make_true_q0q3_plots.legend2 = root_style.GetLegend()
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.

make_true_q0q3_plots.mc_pot_scale = pot_data/pot_mc

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.

string make_true_q0q3_plots.text_events_1d = '10^{%d} Events'

Definition at line 123 of file make_true_q0q3_plots.py.

string make_true_q0q3_plots.text_events_2d = '10^{%d} Events'

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() )
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