35 const char* ppfxDir =
getenv(
"PPFX_DIR");
37 std::cout<<
"Initializing correlation parameters"<<
std::endl;
38 cvu->readFromXML(Form(
"%s/uncertainties/Parameters_%s.xml",ppfxDir,
mippCorrOption.c_str()));
40 std::cout<<
"Initializing bin data conventions"<<
std::endl;
41 myb->pip_data_from_xml(Form(
"%s/data/BINS/MIPPNumiData_PIP_Bins.xml",ppfxDir));
42 myb->pim_data_from_xml(Form(
"%s/data/BINS/MIPPNumiData_PIM_Bins.xml",ppfxDir));
43 myb->k_pi_data_from_xml(Form(
"%s/data/BINS/MIPPNumiData_K_PI_Bins.xml",ppfxDir));
44 thinbin->pC_pi_from_xml(Form(
"%s/data/BINS/ThinTarget_pC_pi_Bins.xml",ppfxDir));
45 thinbin->barton_pC_pi_from_xml(Form(
"%s/data/BINS/ThinTargetBarton_pC_pi_Bins.xml",ppfxDir));
46 thinbin->pC_k_from_xml(Form(
"%s/data/BINS/ThinTargetLowxF_pC_k_Bins.xml",ppfxDir));
47 thinbin->mipp_pC_k_pi_from_xml(Form(
"%s/data/BINS/ThinTarget_K_PI_Bins.xml",ppfxDir));
48 thinbin->meson_incident_from_xml(Form(
"%s/data/BINS/ThinTarget_MesonIncident.xml",ppfxDir));
49 thinbin->pC_p_from_xml(Form(
"%s/data/BINS/ThinTarget_pC_p_Bins.xml",ppfxDir));
50 thinbin->pC_n_from_xml(Form(
"%s/data/BINS/ThinTarget_pC_n_Bins.xml",ppfxDir));
51 thinbin->material_scaling_from_xml(Form(
"%s/data/BINS/ThinTarget_material_scaling_Bins.xml",ppfxDir));
53 std::cout<<
"Initializing MC values"<<
std::endl;
54 mymc->pip_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_PIP.xml",ppfxDir));
55 mymc->pim_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_PIM.xml",ppfxDir));
56 mymc->kap_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_KAP.xml",ppfxDir));
57 mymc->kam_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_KAM.xml",ppfxDir));
58 mymc->k0l_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_K0L.xml",ppfxDir));
59 mymc->k0s_mc_from_xml(Form(
"%s/data/MIPP/MIPPNuMI_MC_K0S.xml",ppfxDir));
65 const int base_universe=1000000;
69 ParameterTable
cvPars=cvu->getCVPars();
71 std::cout<<
"Loading parameters for universe: ";
75 univPars.push_back(cvu->calculateParsForUniverse(ii+base_universe));
84 std::cout<<
"Loading parameters for cv"<<
std::endl;
86 univPars.push_back(cvu->calculateParsForUniverse(cv_id));
91 std::cout<<
"Done configuring universes"<<
std::endl;
static MIPPNumiMC * getInstance()
std::vector< ParameterTable > cvPars
std::string getenv(std::string const &name)
QTextStream & flush(QTextStream &s)
std::string mippCorrOption
static CentralValuesAndUncertainties * getInstance()
static ThinTargetBins * getInstance()
static MIPPNumiYieldsBins * getInstance()
std::vector< ReweightDriver * > vec_rws
vector of Reweighter Drivers, one per universe
std::vector< ParameterTable > univPars
ReweightDriver * cv_rw
Reweighter Drivers for the central value.
std::vector< double > vec_wgts
QTextStream & endl(QTextStream &s)