Classes | Namespaces | Functions
NuSSystFunctions18.h File Reference
#include <map>
#include <iostream>
#include <string>
#include <vector>
#include "CAFAna/Analysis/Calcs.h"
#include "CAFAna/Analysis/Style.h"
#include "CAFAna/Core/LoadFromFile.h"
#include "CAFAna/Decomp/IDecomp.h"
#include "CAFAna/Prediction/IPrediction.h"
#include "NuXAna/Prediction/NDPredictionSterile.h"
#include "NuXAna/Prediction/FDPredictionSterile.h"
#include "CAFAna/Prediction/PredictionNoExtrap.h"
#include "NuXAna/Prediction/PredictionSterile.h"
#include "NuXAna/macros/NuSLoadMacroDefs.h"
#include "NuXAna/macros/Nus18/Nus18Systs/HelperSyst18/NuSPlotFunctions18.h"
#include "OscLib/OscCalcPMNSOpt.h"
#include "OscLib/OscCalcSterile.h"
#include "TCanvas.h"
#include "TDirectory.h"
#include "TH1.h"
#include "TKey.h"
#include "TLatex.h"
#include "TLegend.h"
#include "TString.h"
#include "TObjArray.h"
#include "TObjString.h"

Go to the source code of this file.

Classes

struct  ana::strings
 A helper structure to contain a group of string for plotting. More...
 

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Functions

void ana::SqrtError (TH1 *nom)
 Set the errors of the input histogram to be their square roots. More...
 
void ana::ZeroError (TH1 *nom)
 Set the errors of the input histogram to 0. More...
 
void ana::AddErrorInQuadrature (TH1 *nom, TH1 *up, bool use_max)
 
void ana::AddErrorInQuadrature (TH1 *nom, TH1 *up, TH1 *down, bool use_max)
 
void ana::AddErrorInQuadrature (TH1 *nom, TH1 *up1, TH1 *down1, TH1 *up2, TH1 *down2, bool use_max=false)
 
TH1 * ana::GetNC (IPrediction *specs, double POT)
 
TH1 * ana::GetBG (IPrediction *specs, double POT)
 
void ana::InitializeSystText (FILE *text, strings strs)
 Print some initial text about a systematic – the systematic type and sample. More...
 
void ana::LoadMaps (TDirectory *dir, std::map< std::string, NDPredictionSterile * > *nominal, std::map< std::string, std::map< std::string, std::map< int, NDPredictionSterile * > > > *shifted)
 
void ana::LoadMaps (TDirectory *dir, std::map< std::string, FDPredictionSterile * > *nominal, std::map< std::string, std::map< std::string, std::map< int, FDPredictionSterile * > > > *shifted)
 
void ana::LoadMaps (TDirectory *dir, std::map< std::string, PredictionSterile * > *nominal, std::map< std::string, std::map< std::string, std::map< int, PredictionSterile * > > > *shifted)
 
void ana::PlotSyst (TH1 *h, TH1 *hp1, TDirectory *out, FILE *text, strings strs)
 
void ana::PlotSyst (TH1 *h, TH1 *hp1, TH1 *hm1, TH1 *hp2, TH1 *hm2, TDirectory *out, FILE *text, strings strs)
 
void ana::PlotSyst (TH1 *h, TH1 *hp1, TH1 *hm1, TDirectory *out, FILE *text, strings strs)
 
void ana::PlotSyst (TH1 *nom, TH1 *hup, TH1 *hdn, TH1 *hsx, TDirectory *rootOUT, FILE *textOFS, strings strs)
 
void ana::PlotMultiSyst (TH1 *h, std::vector< TH1 * > hp, TDirectory *out, FILE *text, strings strs)
 Plot multiple systematics. More...
 
void ana::PlotMultiSyst (TH1 *nom, std::vector< NDPredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 Plot multiple systematics. More...
 
void ana::PlotMultiSyst (TH1 *nom, std::vector< FDPredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 Plot multiple systematics. More...
 
void ana::PlotMultiSyst (TH1 *nom, std::vector< PredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 Plot multiple systematics. More...
 
void ana::PlotSyst (TH1 *nom, IPrediction *shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, IPrediction * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, NDPredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, FDPredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, PredictionSterile * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSystBand (TH1 *h, TDirectory *out, FILE *text, strings strs)
 
void ana::SaveMaps (TDirectory *out, std::map< std::string, NDPredictionSterile * > predsND_nominal, std::map< std::string, std::map< std::string, std::map< int, NDPredictionSterile * > > > predsND_shifted)
 
void ana::SaveMaps (TDirectory *out, std::map< std::string, FDPredictionSterile * > predsFD_nominal, std::map< std::string, std::map< std::string, std::map< int, FDPredictionSterile * > > > predsFD_shifted)
 
void ana::SaveMaps (TDirectory *out, std::map< std::string, PredictionSterile * > preds_nominal, std::map< std::string, std::map< std::string, std::map< int, PredictionSterile * > > > preds_shifted)