16 #include "CAFAna/Core/Cut.h" 18 #include "CAFAna/Core/Var.h" 20 #include "NOvARwgt/rwgt/genie/QE/MAQEWgts.h" 21 #include "NOvARwgt/rwgt/genie/QE/RPAWeights.h" 22 #include "NOvARwgt/rwgt/genie/QE/NucOptPtlWgts.h" 23 #include "NOvARwgt/rwgt/genie/MEC/EmpiricalMECFixups.h" 24 #include "NOvARwgt/rwgt/genie/MEC/EmpiricalMECTuneSA.h" 25 #include "NOvARwgt/rwgt/genie/MEC/EmpiricalMECTune2017.h" 26 #include "NOvARwgt/rwgt/genie/MEC/EmpiricalMECTune2018.h" 27 #include "NOvARwgt/rwgt/genie/MEC/EmpiricalMECOtherTunes.h" 28 #include "NOvARwgt/rwgt/genie/DIS/HighWDISWeight.h" 29 #include "NOvARwgt/rwgt/genie/DIS/Nonres1piWeights.h" 30 #include "NOvARwgt/rwgt/genie/hN-FSI/hNFSIWeights.h" 43 return wgtr->GetWeight(
evt, {});
49 template <
typename T,
typename... Args>
52 auto weighter = novarwgt::GetWeighter<T>(std::forward<Args>(
args)...);
269 :
novarwgt::MECq0q3NuNubarHistTuneWgt(clID,
"EmpiricalMECWgt2020",
271 FindCAFAnaDir()+
"/data/xs/mec_fit_hists_fhc_bins_mp5.root",
"mec_weights_smoothed",
272 FindCAFAnaDir()+
"/data/xs/mec_fit_hists_rhc_bins_mp5.root",
"mec_weights_smoothed")
282 : DoubleGaussMECWgt(clID,
"ValenciaMECWgt2020_Provisional",
288 static constexpr DoubleGaussParameters sParams
const NucOptPtl_Wgt * kNucOptPtl_wgt
const NuTruthVar kRescaleMAQE_NT
mode_type_
Neutrino interaction categories.
const Var kMEC2018RPAFixRESlikeWgt
const Var kEmpiricalMECWgt2018RPAFix
See kEmpiricalMECWgt2018_NT.
const Var kMINERvA_Wgt_MEC
const EmpiricalMECWgt2018RPAFix * kEmpiricalMECWgt2018RPAFix
const Var kRPAWeightRES2019
const MEC2018_RESlike_Wgt * kMEC2018_RESlike_Wgt
NuTruthVar VarFromNOvARwgt(const novarwgt::IWeightGenerator *wgtr)
Cuts and Vars for the 2020 FD DiF Study.
const NuTruthVar kDytmanMEC_FixXsecEdepST
fix wacky energy dependence of Dytman-MEC cross section in GENIE < 2.11 (see DocDB 14791) ...
const NuTruthVar kMEC2018RESlikeWgt_NT
Reweight Empirical MEC from fits to MC altered to be more 'res-like' by varying existing systematic k...
const NuTruthVar kEmpiricalMECWgt2018RPAFix_NT
2018 tune for the MEC component of the cross section after Hydrogen RPA bug fix
const MEC2018RPAFix_QElike_Wgt * kMEC2018RPAFix_QElike_Wgt
Proxy for caf::SRNeutrino.
const NuTruthVar kRPAWeightRES2019_NT
const Var kEmpiricalMECtoValenciaMECWgt
const NuTruthVar kRPAWeightCCQE2018_NT
const hNCVWgt2020 * khNCVWgt2020
const Nonres1PiWgt * kNonres1PiWgt
const MINERvA_MEC_Wgt_Var kMINERvA_Wgt_MECNP_NT("MECNP")
"2p2h-np" fit (only 'np' component of MEC was fit; 'nn' or 'pp' (depending on nu vs antinu) left alon...
const NuTruthVar kRPAWeightCCQE2017_NT
const Var kMINERvA_Wgt_MECPP
GeneratorSupportConfig StoredGenSupportCfg(GenCfg cfg)
const Var kRPAWeightRES2017
const EmpiricalMECWgt2020 * kEmpiricalMECWgt2020_Provisional
const Var kDytmanMEC_FixItlState
const MEC2018_QElike_Wgt * kMEC2018_QElike_Wgt
const Var kMEC2018QElikeWgt
const Var kTufts2p2hWgtSA
const EmpiricalMECWgt2017 * kEmpiricalMECWgt2017
std::string FindCAFAnaDir()
const Var kEmpiricalMECWgt2017
See kEmpiricalMECWgt2017ST.
const Var kEmpiricalMECWgt2018
See kEmpiricalMECWgt2018_NT.
const ValenciaMECWgt2020_Provisional * kValenciaMECWgt2020_Provisional
const novarwgt::HistWrapper< TH2 > fHist_nubar
const NuTruthVar kTufts2p2hWgtSA_NT
const Var kMEC2018RPAFixQElikeWgt
const NuTruthVar kRescaleHighWDIS_NT
const Var kRPAWeightCCQE2018
const Var kRPAWeightCCQE2019
const NuTruthVar kMEC2018QElikeWgt_NT
Reweight Empirical MEC from fits to MC altered to be more 'qe-like' by varying existing systematic kn...
const MINERvA_MEC_Wgt_Var kMINERvA_Wgt_QE_NT("QE")
"1p1h" fit (QE was fit, MEC disabled)
const NuTruthVar khNCVWgt2020_NT
Reweight GENIE 3.0.6 nominal FSI model to tuned CV (see Doc 42870)
const RPAWeightCCQE_2017 * kRPAWeightCCQE2019
const RPAWeightQ2_2017 * kRPAWeightRES2017
ValenciaMECWgt2020_Provisional(const novarwgt::IRegisterable::ClassID< ValenciaMECWgt2020_Provisional > &clID)
const Var kMINERvA_Wgt_QE
const HighWDISWgt_2018 * kHighWDISWgt_2018
const Var kRPAWeightCCQE2017
const DytmanMECFixItlStateWgt * kDytmanMECFixItlStateWgt
const NuTruthVar kRPAWeightCCQESA_NT
Nieves RPA Reweight (Minerva) - CC QE - q0 and qmag dependent. Second Analysis edition.
_Var< caf::SRNeutrinoProxy > NuTruthVar
Var designed to be used over the nuTree, ie all neutrinos, not just those that got slices...
const Var kEmpiricalMECtoGENIERESWgt
const Var kEmpiricalMECtoGENIEQEWgt
static constexpr DoubleGaussParameters sParams
const Tufts2p2hWgtSA * kTufts2p2hWgtSA
double GetWeight(const caf::SRNeutrinoProxy *sr) const
Draws the weight from the histogram.
const NuTruthVar kMEC2018RPAFixQElikeWgt_NT
const NuTruthVar kRPAWeightCCQE2019_NT
const RPAWeightCCQE_2017 * kRPAWeightCCQE2017
const RPAWeightCCQE_2017 * kRPAWeightCCQE2018
const Var kMINERvA_Wgt_MECNP
const Var kMEC2018RESlikeWgt
const NuTruthVar kEmpiricalMECtoValenciaMECWgt_NT
const MEC2018RPAFix_RESlike_Wgt * kMEC2018RPAFix_RESlike_Wgt
Var VarFromNuTruthVar(const NuTruthVar &stv, double _default)
const EmpiricalMEC_to_GENIERES_Wgt * kEmpiricalMEC_to_GENIERES_Wgt
const NuTruthVar kDytmanMEC_FixItlStateST
const NuTruthVar kEmpiricalMECtoGENIERESWgt_NT
Reweight Empirical MEC to GENIE RES in q0, fixing q3 to data (see Doc 18741)
const Var kRPAWeightCCQESA
const MINERvA_MEC_Wgt_Var kMINERvA_Wgt_MEC_NT("MEC")
"2p2h" fit (all MEC was fit)
const NuTruthVar kEmpiricalMECtoGENIEQEWgt_NT
Reweight Empirical MEC to GENIE QE in q0, fixing q3 to data (see Doc 18741)
const NuTruthCut kIsOldGENIEMEC([](const caf::SRNeutrinoProxy *nu){const std::vector< unsigned int > okVersion({2, 11, 0});return nu->generator==caf::kUnknownGenerator||(nu->generator==caf::kGENIE &&nu->genVersion< okVersion);})
const RPAWeightCCQESA * kRPAWeightCCQESA
const novarwgt::HistWrapper< TH2 > fHist_nu
const NuTruthVar RPAWeightVar_Q2
EmpiricalMECWgt2020(const novarwgt::IRegisterable::ClassID< EmpiricalMECWgt2020 > &clID)
const EmpiricalMECWgt2018 * kEmpiricalMECWgt2018
const Var kDytmanMEC_FixXsecEdep
const NuTruthVar kMEC2018RPAFixRESlikeWgt_NT
Reweight Empirical MEC from fits to MC altered to be more 'res-like' by varying existing systematic k...
const NuTruthVar kEmpiricalMECWgt2018_NT
2018 tune for the MEC component of the cross section (NuTruth version)
const DytmanMECFixXsecEdepWgt * kDytmanMECFixXsecEdepWgt
const MINERvA_MEC_Wgt_Var kMINERvA_Wgt_MECPP_NT("MECPP")
"2p2h-pp" fit (either 'pp' or 'nn' component of MEC (depending on nu vs antinu) was fit; 'np' left al...
const NuTruthVar kEmpiricalMECWgt2017ST
2017 "best guess" for the MEC cross section (spill truth version)
const MAQEWeight_2018 * kMAQEWeight_2018
const novarwgt::EventRecord & ConvertSRTruth(const T *nu, bool forceNoCache)
Copy information out of an SRNeutrino.
const EmpiricalMEC_to_Valencia_Wgt * kEmpiricalMEC_to_Valencia_Wgt
const NuTruthVar kNucOptPtlWgt_NT
Reweight for Nuclear Optical Potential (see Doc ....)
Template for Cut and SpillCut.
const std::string histFile
Template for Var and SpillVar.
const NuTruthVar kRPAWeightRES2017_NT
const EmpiricalMEC_to_GENIEQE_Wgt * kEmpiricalMEC_to_GENIEQE_Wgt
const Var kRescaleHighWDIS
const RPAWeightQ2_2017 * kRPAWeightRES2019
const NuTruthVar kFixNonres1PiST
MINERvA_MEC_Wgt_Var(const std::string &whichWgt)