For nominal spectra and reweighting systs (xsec/flux) More...
Public Types | |
enum | DataMC { kData, kMC } |
enum | SwappingConfig { kNonSwap, kFluxSwap, kTauSwap } |
enum | FluxType { kFHC, kRHC } |
Protected Types | |
typedef std::tuple< caf::Det_t, DataMC, DataSource, SwappingConfig > | Key_t |
Protected Member Functions | |
void | SetLoaderPaths (const std::string &fdmc_nonswap, const std::string &fdmc_fluxswap, const std::string &fdmc_tauswap="", const std::string &ndmc="", const std::string &nddata="") |
void | SetLoaderFDMCPaths (const std::string &prefix, const std::string &suffix) |
void | SetLoaderNDMCPath (const std::string &ndmc) |
Protected Attributes | |
std::map< Key_t, std::string > | fLoaderPaths |
std::map< Key_t, std::vector< std::string > > | fLoaderFiles |
std::map< Key_t, SpectrumLoader * > | fLoaders |
const SpillCut * | fSpillCut |
NullLoader | fNull |
We give this back when a loader isn't set for some configuration. More... | |
bool | fND |
Bool to set loader for near detector instead of far detector. More... | |
For nominal spectra and reweighting systs (xsec/flux)
Definition at line 40 of file Prod3Loaders.h.
|
protectedinherited |
|
inherited |
Enumerator | |
---|---|
kData | |
kMC |
Definition at line 26 of file Loaders.h.
|
inherited |
Enumerator | |
---|---|
kFHC | |
kRHC |
Definition at line 28 of file Loaders.h.
|
inherited |
Enumerator | |
---|---|
kNonSwap | |
kFluxSwap | |
kTauSwap |
ana::Prod3NomLoaders::Prod3NomLoaders | ( | ECAFType | type, |
std::string | WhichPeriod = "full" , |
||
std::string | WhichNDPeriod = "full" , |
||
FluxType | flux = kFHC |
||
) |
Definition at line 59 of file Prod3Loaders.cxx.
References om::cerr, ana::ECAFTypeToString(), allTimeWatchdog::endl, ana::kDecaf, ana::Loaders::kFHC, ana::kFullCAF, ana::kNueConcat, ana::kNumuConcat, ana::kNusConcat, ana::Prod3LoadersBase::SetLoaderFDMCPaths(), ana::Prod3LoadersBase::SetLoaderNDMCPath(), and string.
|
inherited |
Definition at line 65 of file Loaders.cxx.
References ana::assert(), ana::Loaders::fLoaderFiles, ana::Loaders::fLoaderPaths, ana::Loaders::fLoaders, ana::Loaders::fND, it, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, and ana::Loaders::kNonSwap.
Referenced by GenFile(), GetLoaders2017(), GetLoaders2018(), load_files(), ana::Loaders::SetLoaderFiles(), ana::Loaders::SetLoaderPath(), setPathsRHC(), and test_ana().
|
inherited |
Retrieve a specific loader.
Definition at line 129 of file Loaders.cxx.
References ana::assert(), ana::Loaders::fLoaderFiles, ana::Loaders::fLoaderPaths, ana::Loaders::fLoaders, ana::Loaders::fND, ana::Loaders::fNull, ana::Loaders::fSpillCut, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, and ana::Loaders::kNonSwap.
Referenced by NDPredictionHandler::AddVar(), BlessedPlotsLoad(), DataMCLoad(), DataMCNDLoad_nus17(), demoSysts(), ana::FDExtrap::FDExtrap_c(), ana::SterileGenerator::Generate(), generate_fd_fake_events(), ana::Loaders::GetND(), MakeDecomp(), MakeMap(), MakeNus2019CovMxSysts(), MakePPFXRatios(), MakeSystRatios(), MakeSysts(), mec_tuning(), mec_tuning_preds_2020(), ana::ModularExtrapSterile::NCDisappearance(), ana::NDExtrap::NDExtrap_c(), ana::NDPredictionNoOsc::NDPredictionNoOsc_c(), ReifyLoaders(), sterile_demo(), SystsAcceptanceLoad17(), SystsBeamLoad(), SystsBeamTranspLoad17(), SystsGENIELoad(), SystsGENIELoad17(), SystsNDRockLoad(), ana::ModularExtrapSterile::TrivialExtrapNC(), TrueNCSpectrum(), and TrueSpectrumFromKaons().
|
inherited |
Definition at line 105 of file Loaders.cxx.
References ana::assert(), ana::Loaders::fLoaderFiles, ana::Loaders::fND, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, and ana::Loaders::kNonSwap.
|
inherited |
Definition at line 89 of file Loaders.cxx.
References ana::assert(), ana::Loaders::fLoaderPaths, ana::Loaders::fND, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, and ana::Loaders::kNonSwap.
Referenced by generate_fd_fake_events(), GetLoaders2017(), GetLoaders2017FakeData(), GetLoaders2018(), GetLoaders2020(), getPredictions(), Nus18SystsLLMethodLoad(), PrintLoaderPaths(), and SwapNDDataLoader().
|
inlineinherited |
Definition at line 66 of file Loaders.h.
References ana::Loaders::fND, ana::Loaders::GetLoader(), ana::Loaders::Go(), ana::kBeam, ana::Loaders::kNonSwap, and plot_timing_data::swap.
|
inlinevirtual |
Reimplemented from ana::Prod3DataLoaders.
Definition at line 45 of file Prod3Loaders.h.
|
inherited |
Call Go() on all the loaders.
Definition at line 162 of file Loaders.cxx.
References ana::Loaders::fLoaders, and it.
Referenced by BlessedPlotsLoad(), cc(), Compare_NoExtrap(), ComparisonPlots_MC(), CutFlow_MC(), CutTableLoad(), DataMCLoad(), DataMCNDLoad_nus17(), demoSysts(), efficiency(), efficiencySA(), ExampleCode(), FD_Data_PosComp(), FD_plots(), FDDataMCSystBandLoad(), fiducial_accounting(), FitSystEffectsLoad(), futureSig_getNueNumuSyst(), generate_fd_fake_events(), GenFile(), genie_preds_make(), get_fdmc_spectra(), get_spectra_2dplots(), ana::Loaders::GetND(), getPredictions(), getPredictions_updatedAna(), load_files(), make_DataMCComp_numu(), make_extrap_figure_hists(), make_nue_xsec_pred(), make_nueFDprediction_kinematics_FHC(), make_nueFDprediction_kinematics_FHC_pTExtrap(), make_nueFDprediction_kinematics_FHC_REW(), make_nueFDprediction_kinematics_FHC_REW_pTExtrap(), make_nueFDprediction_kinematics_RHC(), make_nueFDprediction_kinematics_RHC_pTExtrap(), make_nueFDprediction_kinematics_RHC_REW(), make_nueFDprediction_kinematics_RHC_REW_pTExtrap(), make_prediction(), make_prediction_extrap(), make_prediction_noextrap(), make_prediction_rhc(), make_rockpred(), MakeCovarSim(), MakeNus17PredictionSysts(), MakeNus18CovarSim(), MakeNus18ExtrapPred(), MakeNus18SidebandPred(), MakeNus18Systs(), MakeNus2019CovMxSysts(), MakeNusPredictionSystsAna01(), MakePPFXRatios(), makePred(), MakePrediction(), MakePredictionNoOsc_FHC_FD(), MakePredictionNoOsc_FHC_ND(), MakePredictionNoOsc_RHC_FD(), MakePredictionNoOsc_RHC_ND(), MakeSystRatios(), MakeSysts(), MakeUnoscPlots(), mec_tuning(), mec_tuning_preds_2020(), NoExtrap(), NueExtrap(), NuMu2019_BasicPIDPlots_FD(), NuMu2020_BasicPIDPlots_FD(), NumuExtrap(), nus17_fd_cut_tables2D(), Nus18SystsBeamTranspLoad(), Nus18SystsCalibAbsLoad(), Nus18SystsCalibRelLoad(), Nus18SystsGENIELoad(), Nus18SystsKaonLoad(), Nus18SystsLightLevelLoad(), Nus18SystsLLMethodLoad(), Nus18SystsNeutronLoad(), Nus18SystsPPFXLoad(), Nus18SystsTauLoad(), Nus18SystsXSecOnOffLoad(), resolution2018(), savePrediction_addExpt(), savePrediction_complete(), savePrediction_extrap(), savePrediction_simple(), savePrediction_systs(), sterile_demo(), syst_test(), SystsAcceptanceLoad17(), SystsBeamLoad(), SystsBeamTranspLoad17(), SystsDecompLoad(), SystsDecompLoad17(), SystsFidContLoad(), SystsGENIELoad(), SystsGENIELoad17(), SystsMCStatsLoad(), SystsNDRockLoad(), template_GENIE_systs(), template_nonGENIE_systs(), test_ana(), test_numu_summed_genie_systs(), test_prediction_interp(), TrueNCSpectrum(), TrueSpectrumFromKaons(), and xsec_extrap_plots().
|
protectedinherited |
Definition at line 22 of file Prod3Loaders.cxx.
References ana::Prod3LoadersBase::SetLoaderPaths().
Referenced by ana::Prod3AbsCalibLoaders::Prod3AbsCalibLoaders(), ana::Prod3CalibShapeLoaders::Prod3CalibShapeLoaders(), ana::Prod3CherenkovLoaders::Prod3CherenkovLoaders(), ana::Prod3LightLevelLoaders::Prod3LightLevelLoaders(), and Prod3NomLoaders().
|
inherited |
Configure loader via explicit file list.
Definition at line 45 of file Loaders.cxx.
References ana::assert(), ana::Loaders::DisableLoader(), compareCafs::files, ana::Loaders::fLoaderFiles, ana::Loaders::fND, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, and ana::Loaders::kNonSwap.
Referenced by FDDataMCSystBandLoad(), FitSystEffectsLoad(), MakeNusPredictionSystsAna01(), and setPathsFNALP123b().
|
protectedinherited |
Definition at line 31 of file Prod3Loaders.cxx.
References ana::Prod3LoadersBase::SetLoaderPaths().
Referenced by ana::Prod3AbsCalibLoaders::Prod3AbsCalibLoaders(), ana::Prod3CalibShapeLoaders::Prod3CalibShapeLoaders(), ana::Prod3CherenkovLoaders::Prod3CherenkovLoaders(), ana::Prod3LightLevelLoaders::Prod3LightLevelLoaders(), and Prod3NomLoaders().
|
inherited |
Configure loader via wildcard path.
Definition at line 25 of file Loaders.cxx.
References ana::assert(), ana::Loaders::DisableLoader(), ana::Loaders::fLoaderPaths, ana::Loaders::fND, ana::kBeam, findDuplicateFiles::key, caf::kFARDET, ana::Loaders::kMC, caf::kNEARDET, ana::Loaders::kNonSwap, and path.
Referenced by BlessedPlotsLoad(), CutTableLoad(), DataMCLoad(), DataMCNDLoad_nus17(), efficiency(), efficiencySA(), FD_plots(), FDDataMCSystBandLoad(), fiducial_accounting(), FitSystEffectsLoad(), generate_fd_fake_events(), genie_preds_make(), get_spectra_2dplots(), GetLoaders2017(), GetLoaders2017FakeData(), GetLoaders2018(), GetLoaders2020(), getPredictions(), getPredictions_updatedAna(), make_extrap_figure_hists(), make_prediction(), make_prediction_rhc(), make_rockpred(), MakeNus17PredictionSysts(), MakeNusPredictionSystsAna01(), mec_tuning(), mec_tuning_preds_2020(), NueExtrap(), NuMu2019_BasicPIDPlots_FD(), NuMu2020_BasicPIDPlots_FD(), NumuExtrap(), nus17_fd_cut_tables2D(), Nus18SystsLLMethodLoad(), ana::Prod3DataLoaders::Prod3DataLoaders(), ana::Prod4DataLoaders::Prod4DataLoaders(), ana::Prod5DataLoaders::Prod5DataLoaders(), savePrediction_addExpt(), savePrediction_complete(), savePrediction_extrap(), savePrediction_simple(), savePrediction_systs(), set_loaders_ana2018(), ana::Prod3LoadersBase::SetLoaderPaths(), ana::Prod5LoadersBase::SetLoaderPaths(), ana::Prod4LoadersBase::SetLoaderPaths(), SetLoaderPaths2017(), setLoadersPathNumu2017(), setPathsFNALP123b(), setPathsFNALP3c(), setPathsRHC(), sterile_demo(), SwapNDDataLoader(), syst_test(), SystsAcceptanceLoad17(), SystsBeamLoad(), SystsBeamTranspLoad17(), SystsDecompLoad(), SystsDecompLoad17(), SystsFidContLoad(), SystsGENIELoad(), SystsGENIELoad17(), SystsMCStatsLoad(), SystsNDRockLoad(), template_GENIE_systs(), template_nonGENIE_systs(), test_numu_summed_genie_systs(), and test_prediction_interp().
|
protectedinherited |
Definition at line 8 of file Prod3Loaders.cxx.
References ana::kBeam, ana::Loaders::kData, caf::kFARDET, ana::Loaders::kFluxSwap, ana::Loaders::kMC, caf::kNEARDET, ana::Loaders::kNonSwap, ana::Loaders::kTauSwap, and ana::Loaders::SetLoaderPath().
Referenced by ana::Prod3LoadersBase::SetLoaderFDMCPaths(), and ana::Prod3LoadersBase::SetLoaderNDMCPath().
|
inlineinherited |
Definition at line 65 of file Loaders.h.
References ana::Loaders::fND, and nd.
Referenced by MakeCovarSim(), MakeNus18CovarSim(), MakeNus2019CovMxSysts(), MakePPFXRatios(), MakePrediction(), MakePredictionNoOsc_FHC_FD(), MakePredictionNoOsc_FHC_ND(), MakePredictionNoOsc_RHC_FD(), MakePredictionNoOsc_RHC_ND(), MakeSystRatios(), and MakeSysts().
Definition at line 121 of file Loaders.cxx.
References ana::Loaders::fLoaders, ana::Loaders::fSpillCut, and it.
Referenced by BlessedPlotsLoad(), Compare_NoExtrap(), ComparisonPlots_MC(), CutFlow_MC(), CutTableLoad(), DataMCLoad(), DataMCNDLoad_nus17(), demoSysts(), efficiency(), efficiencySA(), ExampleCode(), FD_plots(), FDDataMCSystBandLoad(), fiducial_accounting(), FitSystEffectsLoad(), futureSig_getNueNumuSyst(), generate_fd_fake_events(), genie_preds_make(), get_fdmc_spectra(), get_spectra_2dplots(), getPredictions(), getPredictions_updatedAna(), make_DataMCComp_numu(), make_extrap_figure_hists(), make_nueFDprediction_kinematics_FHC(), make_nueFDprediction_kinematics_FHC_pTExtrap(), make_nueFDprediction_kinematics_FHC_REW(), make_nueFDprediction_kinematics_FHC_REW_pTExtrap(), make_nueFDprediction_kinematics_RHC(), make_nueFDprediction_kinematics_RHC_pTExtrap(), make_nueFDprediction_kinematics_RHC_REW(), make_nueFDprediction_kinematics_RHC_REW_pTExtrap(), make_prediction(), make_prediction_extrap(), make_prediction_noextrap(), make_prediction_rhc(), make_rockpred(), MakeCovarSim(), MakeNus17PredictionSysts(), MakeNus18CovarSim(), MakeNus18ExtrapPred(), MakeNus18SidebandPred(), MakeNus18Systs(), MakeNus2019CovMxSysts(), MakeNusPredictionSystsAna01(), MakePPFXRatios(), makePred(), MakePrediction(), MakePredictionNoOsc_FHC_FD(), MakePredictionNoOsc_FHC_ND(), MakePredictionNoOsc_RHC_FD(), MakePredictionNoOsc_RHC_ND(), MakeSystRatios(), MakeSysts(), MakeUnoscPlots(), mec_tuning(), mec_tuning_preds_2020(), NoExtrap(), NueExtrap(), NuMu2019_BasicPIDPlots_FD(), NuMu2020_BasicPIDPlots_FD(), NumuExtrap(), nus17_fd_cut_tables2D(), Nus18SystsBeamTranspLoad(), Nus18SystsCalibAbsLoad(), Nus18SystsCalibRelLoad(), Nus18SystsGENIELoad(), Nus18SystsKaonLoad(), Nus18SystsLightLevelLoad(), Nus18SystsLLMethodLoad(), Nus18SystsNeutronLoad(), Nus18SystsPPFXLoad(), Nus18SystsTauLoad(), Nus18SystsXSecOnOffLoad(), savePrediction_addExpt(), savePrediction_complete(), savePrediction_extrap(), savePrediction_simple(), savePrediction_systs(), SystsAcceptanceLoad17(), SystsBeamLoad(), SystsBeamTranspLoad17(), SystsDecompLoad(), SystsDecompLoad17(), SystsFidContLoad(), SystsGENIELoad(), SystsGENIELoad17(), SystsMCStatsLoad(), SystsNDRockLoad(), test_numu_summed_genie_systs(), TrueNCSpectrum(), TrueSpectrumFromKaons(), and xsec_extrap_plots().
|
protectedinherited |
Definition at line 82 of file Loaders.h.
Referenced by ana::Loaders::DisableLoader(), ana::Loaders::GetLoader(), ana::Loaders::GetLoaderFiles(), and ana::Loaders::SetLoaderFiles().
|
protectedinherited |
Definition at line 81 of file Loaders.h.
Referenced by ana::Loaders::DisableLoader(), ana::Loaders::GetLoader(), ana::Loaders::GetLoaderPath(), and ana::Loaders::SetLoaderPath().
|
protectedinherited |
Definition at line 84 of file Loaders.h.
Referenced by ana::Loaders::DisableLoader(), ana::Loaders::GetLoader(), ana::Loaders::Go(), ana::Loaders::SetSpillCut(), and ana::Loaders::~Loaders().
|
protectedinherited |
Bool to set loader for near detector instead of far detector.
Definition at line 91 of file Loaders.h.
Referenced by ana::Loaders::DisableLoader(), ana::Loaders::GetLoader(), ana::Loaders::GetLoaderFiles(), ana::Loaders::GetLoaderPath(), ana::Loaders::GetND(), ana::Loaders::SetLoaderFiles(), ana::Loaders::SetLoaderPath(), and ana::Loaders::SetND().
|
protectedinherited |
We give this back when a loader isn't set for some configuration.
Definition at line 89 of file Loaders.h.
Referenced by ana::Loaders::GetLoader().
|
protectedinherited |
Definition at line 86 of file Loaders.h.
Referenced by ana::Loaders::GetLoader(), ana::Loaders::SetSpillCut(), and ana::Loaders::~Loaders().