Classes | Namespaces | Functions
NuSSystFunctions.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 "CAFAna/Prediction/PredictionNoExtrap.h"
#include "NuXAna/Prediction/PredictionSterile.h"
#include "NuXAna/macros/NuSLoadMacroDefs.h"
#include "NuXAna/macros/NuSPlotFunctions.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"

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

std::string ana::StringFromInt (int i, bool withE20)
 Helper function that takes an integer and turns it into a string. More...
 
std::string ana::StringFromDouble (double pot)
 
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)
 
TH1 * ana::GetNC (IDecomp *specs, double POT)
 
TH1 * ana::GetNC (IPrediction *specs, double POT)
 
TH1 * ana::GetBG (IDecomp *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, IDecomp * > *nominal, std::map< std::string, std::map< std::string, std::map< int, IDecomp * > > > *shifted)
 
void ana::LoadMaps (TDirectory *dir, std::map< std::string, PredictionNoExtrap * > *nominal, std::map< std::string, std::map< std::string, std::map< int, PredictionNoExtrap * > > > *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 *nom, IDecomp *shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, PredictionNoExtrap *shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, PredictionSterile *shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, IDecomp * > shifts, TDirectory *out, FILE *text, strings strs, double POT, bool NC, bool use_max)
 
void ana::PlotSyst (TH1 *nom, std::map< int, PredictionNoExtrap * > 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, IDecomp * > decomps_nominal, std::map< std::string, std::map< std::string, std::map< int, IDecomp * > > > decomps_shifted, std::map< std::string, PredictionNoExtrap * > predsNE_nominal, std::map< std::string, std::map< std::string, std::map< int, PredictionNoExtrap * > > > predsNE_shifted, std::map< std::string, PredictionSterile * > predsSt_nominal, std::map< std::string, std::map< std::string, std::map< int, PredictionSterile * > > > predsSt_shifted)
 Save all of the objects in the input maps to the out directory/file. More...