Class to handle FD predictions. More...
Protected Attributes | |
std::map< std::string, CheatDecomp * > | fDecompositions |
std::map< std::string, std::map< std::string, std::pair< Spectrum *, Spectrum * > > > | fShiftedSpectra |
Private Attributes | |
Loaders * | fLoaders |
SpectrumLoader * | fLoadersData |
SpectrumLoader * | fLoadersCos |
std::vector< const ISyst * > | fSysts |
osc::OscCalcSterile * | fOscCalc |
std::map< std::string, IPrediction * > | fPredictions |
std::map< std::string, Spectrum * > | fSpectra |
std::map< std::string, Spectrum * > | fCosSpec |
std::string | fPredOpt |
bool | fData |
bool | fRunSysts |
bool | fCosmics |
Class to handle FD predictions.
Definition at line 37 of file Nus18PredictionHandlers.h.
FDPredictionHandler::FDPredictionHandler | ( | std::string | predOpt | ) |
Definition at line 75 of file Nus18PredictionHandlers.h.
References om::cout, allTimeWatchdog::endl, and fPredOpt.
FDPredictionHandler::~FDPredictionHandler | ( | ) |
Definition at line 91 of file Nus18PredictionHandlers.h.
References std::cos(), fCosSpec, fPredictions, fSpectra, and plot_validation_datamc::pred.
|
inline |
Definition at line 323 of file PredictionHandler.h.
|
inline |
Definition at line 328 of file PredictionHandler.h.
References PredictionHandler::AddVar(), allInOneTrainingPlots::axis, update_sam_good_runs_metadata::cuts, label, outFile, PredictionHandler::Save(), string, PandAna.Demos.tute_pid_validation::var, and ana::weight.
void FDPredictionHandler::AddCosmics | ( | SpectrumLoader * | loaders_cosmics | ) |
Definition at line 100 of file Nus18PredictionHandlers.h.
References fCosmics, and fLoadersCos.
Referenced by AddVar(), ExampleCode(), MakeNus18ExtrapPred(), and MakeUnoscPlots().
void FDPredictionHandler::AddCosmics | ( | SpectrumLoader * | loadersCosmic | ) |
void FDPredictionHandler::AddData | ( | SpectrumLoader * | loaders_data | ) |
Definition at line 105 of file Nus18PredictionHandlers.h.
References fData, and fLoadersData.
Referenced by ExampleCode(), and MakeUnoscPlots().
Definition at line 110 of file Nus18PredictionHandlers.h.
References fLoaders, and loaders.
Referenced by ExampleCode(), MakeNus18ExtrapPred(), and MakeUnoscPlots().
void FDPredictionHandler::AddSystematics | ( | std::vector< const ISyst * > | systs, |
osc::OscCalcSterile * | calc | ||
) |
Definition at line 114 of file Nus18PredictionHandlers.h.
References calc, fOscCalc, fRunSysts, fSysts, and systs.
Referenced by MakeNus18ExtrapPred().
void FDPredictionHandler::AddVar | ( | std::string | name, |
HistAxis | axis, | ||
Cut | cuts, | ||
SystShifts | shift, | ||
Var | weight | ||
) |
Definition at line 128 of file Nus18PredictionHandlers.h.
References std::cos(), om::cout, allTimeWatchdog::endl, fCosmics, fCosSpec, fData, fLoaders, fLoadersCos, fLoadersData, fOscCalc, fPredictions, fPredOpt, fRunSysts, fSpectra, fSysts, ana::IPredictionGenerator::Generate(), ana::kInBeamSpill, ana::kInCosmicTimingWindow, ana::kNumuCutND2018, ana::kNus18BinsNumuCCAxis, ana::kNus18ND, and plot_validation_datamc::pred.
Referenced by AddVar(), and MakeNus18ExtrapPred().
void FDPredictionHandler::AddVar | ( | std::string | name, |
std::string | label, | ||
Var | var, | ||
Binning | binning, | ||
Cut | cuts, | ||
SystShifts | shift, | ||
Var | weight | ||
) |
Definition at line 120 of file Nus18PredictionHandlers.h.
References AddVar(), and allInOneTrainingPlots::axis.
|
virtual |
Implements PredictionHandler.
Definition at line 388 of file PredictionHandler.h.
References AddCosmics(), std::cos(), om::cout, allTimeWatchdog::endl, PredictionHandler::fCosmics, PredictionHandler::fCosSpec, PredictionHandler::fData, PredictionHandler::fLoaders, PredictionHandler::fLoadersCos, PredictionHandler::fLoadersData, PredictionHandler::fOscCalc, PredictionHandler::fPredictions, PredictionHandler::fPredOpt, PredictionHandler::fRunSysts, PredictionHandler::fSpectra, PredictionHandler::fSysts, ana::IPredictionGenerator::Generate(), ana::kInBeamSpill, ana::kInCosmicTimingWindow, ana::kNumu2020ND, ana::kNus18BinsNumuCCAxis, ana::kNus18ND, outFile, plot_validation_datamc::pred, and Save().
|
virtual |
Implements PredictionHandler.
Definition at line 350 of file PredictionHandler.h.
References PredictionHandler::AddVar(), and allInOneTrainingPlots::axis.
|
virtual |
Implements PredictionHandler.
Definition at line 358 of file PredictionHandler.h.
References PredictionHandler::AddVar(), and allInOneTrainingPlots::axis.
|
virtual |
Implements PredictionHandler.
Definition at line 377 of file PredictionHandler.h.
References PredictionHandler::AddVar(), and allInOneTrainingPlots::axis.
|
virtual |
Implements PredictionHandler.
Definition at line 184 of file Nus18PredictionHandlers.h.
References fCosmics, fCosSpec, fData, fPredictions, and fSpectra.
Referenced by AddVar(), ExampleCode(), MakeNus18ExtrapPred(), and MakeUnoscPlots().
|
virtual |
Implements PredictionHandler.
|
private |
Definition at line 71 of file Nus18PredictionHandlers.h.
Referenced by AddCosmics(), AddVar(), and Save().
|
private |
Definition at line 65 of file Nus18PredictionHandlers.h.
Referenced by AddVar(), Save(), and ~FDPredictionHandler().
|
private |
Definition at line 69 of file Nus18PredictionHandlers.h.
|
protectedinherited |
Definition at line 82 of file PredictionHandler.h.
Referenced by NDPredictionHandler::AddVar(), and PredictionHandler::~PredictionHandler().
|
private |
Definition at line 54 of file Nus18PredictionHandlers.h.
Referenced by AddLoaders(), and AddVar().
|
private |
Definition at line 56 of file Nus18PredictionHandlers.h.
Referenced by AddCosmics(), and AddVar().
|
private |
Definition at line 55 of file Nus18PredictionHandlers.h.
|
private |
Definition at line 60 of file Nus18PredictionHandlers.h.
Referenced by AddSystematics(), and AddVar().
|
private |
Definition at line 63 of file Nus18PredictionHandlers.h.
Referenced by AddVar(), Save(), and ~FDPredictionHandler().
|
private |
Definition at line 68 of file Nus18PredictionHandlers.h.
Referenced by AddVar(), and FDPredictionHandler().
|
private |
Definition at line 70 of file Nus18PredictionHandlers.h.
Referenced by AddSystematics(), and AddVar().
|
protectedinherited |
Definition at line 83 of file PredictionHandler.h.
Referenced by NDPredictionHandler::AddVar(), and PredictionHandler::~PredictionHandler().
|
private |
Definition at line 64 of file Nus18PredictionHandlers.h.
Referenced by AddVar(), Save(), and ~FDPredictionHandler().
|
private |
Definition at line 59 of file Nus18PredictionHandlers.h.
Referenced by AddSystematics(), and AddVar().