Loaders for light level paths/definitions. 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, const bool noTau=false) |
void | SetLoaderNDMCPath (const std::string &ndmc) |
const std::string | ECAFTypeToString (ECAFType type) |
std::string | ECAFTypeFlatToTier (ECAFType type, EFlatness flat) const |
Protected Attributes | |
const std::string | cafType |
const std::string | dataTier |
from "caf" to "flatsumdecaf" More... | |
const std::string | fluxType |
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... | |
Loaders for light level paths/definitions.
Definition at line 145 of file Prod4Loaders.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::Prod4LightLevelLoaders::Prod4LightLevelLoaders | ( | ECAFType | type, |
FluxType | flux, | ||
int | sign, | ||
std::string | WhichPeriod = "full" , |
||
std::string | WhichNDPeriod = "full" |
||
) |
Create light level loaders instance.
type | ECAFType to specify the CAF type. |
flux | FluxType to specify the flux (kFHC/kRHC). |
sign | Integer specifying shift up or down: +1 sigma is light levels up, calibration down, 0 is no shift photon rewriter. |
WhichPeriod | String describing the desired range (e.g. "full" - default, "period4", "epoch6a"). |
WhichNDPeriod | String describing the desired range (e.g. "full" - default, "period4", "epoch6a"). |
Definition at line 267 of file Prod4Loaders.cxx.
References abs(), ana::assert(), ana::Prod4DataLoaders::cafType, om::cerr, allTimeWatchdog::endl, ana::Prod4DataLoaders::fluxType, ana::kDecaf, ana::kFullCAF, ana::kNueConcat, ana::kNumuConcat, ana::kNusConcat, shutoffs::rel, ana::Prod4LoadersBase::SetLoaderFDMCPaths(), ana::Prod4LoadersBase::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().
|
protectedinherited |
Definition at line 73 of file Prod4Loaders.cxx.
References om::cerr, om::cout, allTimeWatchdog::endl, ana::kDecaf, ana::kFlatCAF, ana::kFullCAF, ana::kNormalCAF, ana::kNueConcat, ana::kNumuConcat, ana::kNusConcat, runNovaSAM::ret, and string.
|
protectedinherited |
Utility to convert CAF type enum to a string description.
type | ECAFType that specifies the CAF type. |
Definition at line 53 of file Prod4Loaders.cxx.
References om::cout, allTimeWatchdog::endl, it, ana::kDecaf, ana::kFullCAF, ana::kNueConcat, ana::kNumuConcat, and ana::kNusConcat.
|
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 |
Get sting describing the associated systematic.
Reimplemented from ana::Prod4DataLoaders.
Definition at line 168 of file Prod4Loaders.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 |
Set FarDet MC paths.
Sets nonswap, fluxswap and tau (if applicable) using the format: prefix_[nonswap|fluxswap|tau]_suffix.
prefix | String describing the first part of the file path (e.g. "prod_caf_R17-11-14-prod4reco.d_fd_genie"). |
suffix | String describing the second part of the file path (e.g. "fhc_nova_v08_full_caf_v1"). |
noTau | Boolean flag not to set tau file path (default is false, tau file paths will be set). |
Definition at line 33 of file Prod4Loaders.cxx.
References ana::Prod4LoadersBase::SetLoaderPaths().
Referenced by ana::Prod4AbsCalibLoaders::Prod4AbsCalibLoaders(), ana::Prod4CalibShapeLoaders::Prod4CalibShapeLoaders(), ana::Prod4CherenkovLoaders::Prod4CherenkovLoaders(), Prod4LightLevelLoaders(), and ana::Prod4NomLoaders::Prod4NomLoaders().
|
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 |
Set NearDet MC paths.
ndmc | String describing the path/samweb definition for NearDet MC files (default empty string). |
Definition at line 47 of file Prod4Loaders.cxx.
References ana::Prod4LoadersBase::SetLoaderPaths().
Referenced by ana::Prod4AbsCalibLoaders::Prod4AbsCalibLoaders(), ana::Prod4CalibShapeLoaders::Prod4CalibShapeLoaders(), ana::Prod4CherenkovLoaders::Prod4CherenkovLoaders(), Prod4LightLevelLoaders(), and ana::Prod4NomLoaders::Prod4NomLoaders().
|
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 |
Set a range of FD and ND MC and ND data paths.
Provides this method for all derived classes. Can use this method to set any number of paths - any blank paths will be ignored.
fdmc_nonswap | String describing the path/samweb definition for FarDet MC non-swap files. |
fdmc_fluxswap | String describing the path/samweb definition for FarDet MC flux-swap files. |
fdmc_tauswap | String describing the path/samweb definition for FarDet MC tau files (default empty sting). |
ndmc | String describing the path/samweb definition for NearDet MC files (default empty string). |
nddata | String describing the path/samweb definition for NearDet data files (default empty string). |
Definition at line 9 of file Prod4Loaders.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::Prod4LoadersBase::SetLoaderFDMCPaths(), and ana::Prod4LoadersBase::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 |
A string describing the CAF type, e.g nueconcat2018
Definition at line 88 of file Prod4Loaders.h.
Referenced by ana::Prod4AbsCalibLoaders::Prod4AbsCalibLoaders(), ana::Prod4CalibShapeLoaders::Prod4CalibShapeLoaders(), ana::Prod4CherenkovLoaders::Prod4CherenkovLoaders(), ana::Prod4DataLoaders::Prod4DataLoaders(), Prod4LightLevelLoaders(), and ana::Prod4NomLoaders::Prod4NomLoaders().
|
protectedinherited |
from "caf" to "flatsumdecaf"
Definition at line 90 of file Prod4Loaders.h.
Referenced by ana::Prod4DataLoaders::Prod4DataLoaders(), and ana::Prod4NomLoaders::Prod4NomLoaders().
|
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 |
A string describing the flux, e.g nonswap
Definition at line 91 of file Prod4Loaders.h.
Referenced by ana::Prod4AbsCalibLoaders::Prod4AbsCalibLoaders(), ana::Prod4CalibShapeLoaders::Prod4CalibShapeLoaders(), ana::Prod4CherenkovLoaders::Prod4CherenkovLoaders(), ana::Prod4DataLoaders::Prod4DataLoaders(), Prod4LightLevelLoaders(), and ana::Prod4NomLoaders::Prod4NomLoaders().
|
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().