Functions | |
def | get_genie_universes (basefn) |
def | get_ppfx_universes (fppfx_other) |
def | up_down_counts_1sigma (count_list, cv) |
def | process_multiuniverse (isys, huniv) |
def | process_light_calibration_mue (isys, hidxdown, hidxup) |
def | process_ckv_calibshape (isys, hidx) |
def | process_normalization (isys) |
def | process_focusing (isys, sstart, nsys) |
def | databin (xbin, ybin) |
def | process_data () |
def | process_mc () |
def | setMC1D (hIn) |
def | setData1D (gIn) |
def | setUncer1D (hIn, ihist) |
Variables | |
string | infp = './' |
list | syst_names |
int | Nfinal_fe = 9 |
list | final_fe = ["Flux (HP)","GENIE","Light","Calibration","Cherenkov","Calib. Shape","Mu Energy Scale","Normalization","Focusing"] |
list | final_fe_name = ["Flux_HP","GENIE","Light","Calibration","Cherenkov","CalibShape","MuEScale","Normalization","Focusing"] |
int | Nabins2X = 13 |
list | leg_angle |
list | col_fe = [2,4,2,4,8,8,kOrange-3,kOrange-3,1] |
list | col_st = [1,1,2,2,1,2,1,2,2] |
string | tit_ke = 'Muon Kinetic Energy (GeV)' |
string | tit_nu = 'Neutrino Energy (GeV)' |
string | tit_fe = 'Fractional Uncertainties' |
string | tit_xs = '#sigma(cm^{2}/nucleon)' |
parser = argparse.ArgumentParser() | |
action | |
help | |
args = parser.parse_args() | |
use_data = args.data | |
list | fgenie = [] |
fmc = TFile(os.path.join(infp, 'nominal_xsec.root')) | |
fppfx_other = TFile(os.path.join(infp, 'ppfx_others_v2.root')) | |
list | hgenie = [] |
list | hppfx = [] |
list | hother = [] |
hmc = fmc.Get('hXS2Dsec_nominal') | |
hdt = fppfx_other.Get('xs_nominal/hXS2Dsec_cv') | |
list | lhup = [] |
list | lhdw = [] |
list | lhfe = [] |
NbinsX = hdt.GetNbinsX() | |
NbinsY = hdt.GetNbinsY() | |
float | fe_norm = 0.028422526 |
list | gdt = [TGraphAsymmErrors() for i in range(Nabins2X)] |
list | count = [0 for i in range(Nabins2X)] |
list | h1MC = [TH1D('h1MC_{}'.format(i),'',20,0.5,2.5) for i in range(Nabins2X)] |
list | h1fe = [[TH1D('h1fe_{}_{}'.format(i,j),'',20,0.5,2.5) for j in range(Nfinal_fe)] for i in range(Nabins2X)] |
string | out_subdir = 'real_data' |
dest_path = os.path.join('output', out_subdir) | |
list | cxs = [] |
list | leg = [TLegend(0.67,0.68,0.87,0.88) for i in range(Nabins2X)] |
list | lat = [TLatex() for i in range(Nabins2X)] |
int | maxY = -1 |
list | cfe = [] |
list | latfe = [TLatex() for i in range(Nabins2X)] |
list | lfe = [] |
fileOut = TFile('{}/numucc_inc_{}.root'.format(dest_path,out_subdir), 'recreate') | |
def plot_xsec_2d.databin | ( | xbin, | |
ybin | |||
) |
def plot_xsec_2d.get_genie_universes | ( | basefn | ) |
Definition at line 50 of file plot_xsec_2d.py.
References novadaq::HexUtils.format(), Get, makeTrainCVSamples.int, and PandAna.Demos.demo1.range.
def plot_xsec_2d.get_ppfx_universes | ( | fppfx_other | ) |
Definition at line 63 of file plot_xsec_2d.py.
References novadaq::HexUtils.format(), and PandAna.Demos.demo1.range.
def plot_xsec_2d.process_ckv_calibshape | ( | isys, | |
hidx | |||
) |
Definition at line 130 of file plot_xsec_2d.py.
References abs(), PandAna.Demos.demo1.range, and SetBinContent().
def plot_xsec_2d.process_data | ( | ) |
Definition at line 218 of file plot_xsec_2d.py.
References databin(), and PandAna.Demos.demo1.range.
def plot_xsec_2d.process_focusing | ( | isys, | |
sstart, | |||
nsys | |||
) |
Definition at line 172 of file plot_xsec_2d.py.
References abs(), cet::sqlite.max(), print, PandAna.Demos.demo1.range, SetBinContent(), and sum.
def plot_xsec_2d.process_light_calibration_mue | ( | isys, | |
hidxdown, | |||
hidxup | |||
) |
Definition at line 102 of file plot_xsec_2d.py.
References abs(), cet::sqlite.max(), PandAna.Demos.demo1.range, and SetBinContent().
def plot_xsec_2d.process_mc | ( | ) |
Definition at line 243 of file plot_xsec_2d.py.
References databin(), PandAna.Demos.demo1.range, and SetBinContent().
def plot_xsec_2d.process_multiuniverse | ( | isys, | |
huniv | |||
) |
Definition at line 81 of file plot_xsec_2d.py.
References cet::sqlite.max(), PandAna.Demos.demo1.range, SetBinContent(), and up_down_counts_1sigma().
def plot_xsec_2d.process_normalization | ( | isys | ) |
Definition at line 155 of file plot_xsec_2d.py.
References PandAna.Demos.demo1.range, and SetBinContent().
def plot_xsec_2d.setData1D | ( | gIn | ) |
Definition at line 260 of file plot_xsec_2d.py.
def plot_xsec_2d.setMC1D | ( | hIn | ) |
Definition at line 255 of file plot_xsec_2d.py.
def plot_xsec_2d.setUncer1D | ( | hIn, | |
ihist | |||
) |
Definition at line 266 of file plot_xsec_2d.py.
def plot_xsec_2d.up_down_counts_1sigma | ( | count_list, | |
cv | |||
) |
Definition at line 73 of file plot_xsec_2d.py.
References makeTrainCVSamples.int.
Referenced by process_multiuniverse().
plot_xsec_2d.action |
Definition at line 282 of file plot_xsec_2d.py.
plot_xsec_2d.args = parser.parse_args() |
Definition at line 283 of file plot_xsec_2d.py.
list plot_xsec_2d.cfe = [] |
Definition at line 417 of file plot_xsec_2d.py.
Definition at line 41 of file plot_xsec_2d.py.
list plot_xsec_2d.col_st = [1,1,2,2,1,2,1,2,2] |
Definition at line 42 of file plot_xsec_2d.py.
Definition at line 375 of file plot_xsec_2d.py.
list plot_xsec_2d.cxs = [] |
Definition at line 390 of file plot_xsec_2d.py.
plot_xsec_2d.dest_path = os.path.join('output', out_subdir) |
Definition at line 385 of file plot_xsec_2d.py.
float plot_xsec_2d.fe_norm = 0.028422526 |
Definition at line 366 of file plot_xsec_2d.py.
list plot_xsec_2d.fgenie = [] |
Definition at line 289 of file plot_xsec_2d.py.
plot_xsec_2d.fileOut = TFile('{}/numucc_inc_{}.root'.format(dest_path,out_subdir), 'recreate') |
Definition at line 447 of file plot_xsec_2d.py.
Referenced by DrawPreSelectionPlots(), ExampleCode(), make_nominal_xs(), MakeSelectionPlots(), MakeUnoscPlots(), and ND_DataMC().
list plot_xsec_2d.final_fe = ["Flux (HP)","GENIE","Light","Calibration","Cherenkov","Calib. Shape","Mu Energy Scale","Normalization","Focusing"] |
Definition at line 22 of file plot_xsec_2d.py.
list plot_xsec_2d.final_fe_name = ["Flux_HP","GENIE","Light","Calibration","Cherenkov","CalibShape","MuEScale","Normalization","Focusing"] |
Definition at line 23 of file plot_xsec_2d.py.
plot_xsec_2d.fmc = TFile(os.path.join(infp, 'nominal_xsec.root')) |
Definition at line 290 of file plot_xsec_2d.py.
plot_xsec_2d.fppfx_other = TFile(os.path.join(infp, 'ppfx_others_v2.root')) |
Definition at line 292 of file plot_xsec_2d.py.
Definition at line 374 of file plot_xsec_2d.py.
list plot_xsec_2d.h1fe = [[TH1D('h1fe_{}_{}'.format(i,j),'',20,0.5,2.5) for j in range(Nfinal_fe)] for i in range(Nabins2X)] |
Definition at line 380 of file plot_xsec_2d.py.
Definition at line 379 of file plot_xsec_2d.py.
plot_xsec_2d.hdt = fppfx_other.Get('xs_nominal/hXS2Dsec_cv') |
Definition at line 304 of file plot_xsec_2d.py.
plot_xsec_2d.help |
Definition at line 282 of file plot_xsec_2d.py.
list plot_xsec_2d.hgenie = [] |
Definition at line 297 of file plot_xsec_2d.py.
plot_xsec_2d.hmc = fmc.Get('hXS2Dsec_nominal') |
Definition at line 302 of file plot_xsec_2d.py.
list plot_xsec_2d.hother = [] |
Definition at line 299 of file plot_xsec_2d.py.
list plot_xsec_2d.hppfx = [] |
Definition at line 298 of file plot_xsec_2d.py.
string plot_xsec_2d.infp = './' |
Definition at line 13 of file plot_xsec_2d.py.
Definition at line 392 of file plot_xsec_2d.py.
Definition at line 418 of file plot_xsec_2d.py.
Definition at line 391 of file plot_xsec_2d.py.
list plot_xsec_2d.leg_angle |
Definition at line 26 of file plot_xsec_2d.py.
plot_xsec_2d.lfe = [] |
Definition at line 419 of file plot_xsec_2d.py.
list plot_xsec_2d.lhdw = [] |
Definition at line 325 of file plot_xsec_2d.py.
list plot_xsec_2d.lhfe = [] |
Definition at line 326 of file plot_xsec_2d.py.
list plot_xsec_2d.lhup = [] |
Definition at line 324 of file plot_xsec_2d.py.
plot_xsec_2d.maxY = -1 |
Definition at line 393 of file plot_xsec_2d.py.
int plot_xsec_2d.Nabins2X = 13 |
Definition at line 25 of file plot_xsec_2d.py.
plot_xsec_2d.NbinsX = hdt.GetNbinsX() |
Definition at line 334 of file plot_xsec_2d.py.
Referenced by om::HitMaps.CopyHistContent(), GetSymSyst(), and om::FEBRateAnalysis.StoreContent().
plot_xsec_2d.NbinsY = hdt.GetNbinsY() |
Definition at line 335 of file plot_xsec_2d.py.
Referenced by om::HitMaps.CopyHistContent(), GetSymSyst(), OnMonPlotMaker(), and om::FEBRateAnalysis.StoreContent().
int plot_xsec_2d.Nfinal_fe = 9 |
Definition at line 21 of file plot_xsec_2d.py.
string plot_xsec_2d.out_subdir = 'real_data' |
Definition at line 384 of file plot_xsec_2d.py.
plot_xsec_2d.parser = argparse.ArgumentParser() |
Definition at line 281 of file plot_xsec_2d.py.
list plot_xsec_2d.syst_names |
Definition at line 14 of file plot_xsec_2d.py.
string plot_xsec_2d.tit_fe = 'Fractional Uncertainties' |
Definition at line 46 of file plot_xsec_2d.py.
Definition at line 44 of file plot_xsec_2d.py.
Definition at line 45 of file plot_xsec_2d.py.
Definition at line 47 of file plot_xsec_2d.py.
plot_xsec_2d.use_data = args.data |
Definition at line 284 of file plot_xsec_2d.py.