Classes | Namespaces | Macros | Functions | Variables
NuSPlotFunctions18.h File Reference
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include "TArrow.h"
#include "TCanvas.h"
#include "TColor.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2D.h"
#include "THStack.h"
#include "TLatex.h"
#include "TLegend.h"
#include "TLine.h"
#include "TMath.h"
#include "CAFAna/Analysis/Calcs.h"
#include "3FlavorAna/Plotting/NuePlotStyle.h"
#include "CAFAna/Analysis/Style.h"
#include "CAFAna/Core/Binning.h"
#include "CAFAna/Core/Cut.h"
#include "CAFAna/Core/Loaders.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Cuts/Cuts.h"
#include "NuXAna/Cuts/NusCuts.h"
#include "CAFAna/Cuts/TruthCuts.h"
#include "CAFAna/Decomp/IDecomp.h"
#include "CAFAna/Prediction/IPrediction.h"
#include "CAFAna/Vars/Vars.h"
#include "OscLib/IOscCalc.h"
#include "OscLib/OscCalcPMNSOpt.h"
#include "Utilities/func/MathUtil.h"
#include "Utilities/rootlogon.C"

Go to the source code of this file.

Classes

struct  ana::PlotOptions
 

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Macros

#define MAXSPEC   6
 

Functions

TLatex * ana::DrawLatexLines (double x, double y, std::string sPOT)
 Draw common TLatex lines. More...
 
void ana::DrawLineArrow (double cut, bool left, TH1 *h)
 
void ana::SetHistOptions (TH1 *h, double max, std::string title, int ndiv, Color_t col, bool fill)
 Set common options for a TLegend. More...
 
void ana::SetLegendOptions (TLegend *leg)
 Set common options for a TLegend. More...
 
void ana::PlotStack (Spectrum spectra[], TDirectory *rootOut, FILE *textOFS, std::string name, std::string det, double POT, double potEquiv, PlotOptions opt, Spectrum *dataspec)
 
void ana::PlotSpectra (Spectrum spectra[], TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, std::string det, int POT, std::string option)
 
void ana::PlotSpectra (Spectrum spectraND[], Spectrum spectraFD[], Spectrum spectraSt[], Spectrum spectraUn[], TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, int POT, std::string option)
 Make canvases for ND, FD with 3 flavor osc, FD with 4 flavor osc, FD with no osc. More...
 
void ana::PlotSpectra (Spectrum spectraND[], Spectrum spectraFD[], Spectrum spectraFS[], TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, int POT, std::string option)
 Make canvases for ND, FD with 3 flavor orsc, FD with 4 flavor osc. More...
 
void ana::PlotSpectra (IDecomp *decomp, IPrediction *predFD, osc::IOscCalc *calc, IPrediction *predSt, osc::IOscCalc *calcst, Spectrum sCos, TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, int POT, std::string option)
 
void ana::PlotSpectra (IDecomp *decomp, IPrediction *predFD, Spectrum sCos, TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, int POT, std::string option)
 
void ana::PlotSpectra (IPrediction *predFD, Spectrum sCos, osc::IOscCalc *calc, TDirectory *rootOut, FILE *textOFS, std::string name, std::string title, int POT, std::string option)
 Make canvas for FD with 3 flavor osc directly from CAFAna object inputs. More...
 
void ana::PlotPurEff (Spectrum pureff[], Spectrum effcyD[], TDirectory *out, std::string name, std::string title)
 
void ana::PlotPurEff (Spectrum pureffND[], Spectrum effcyDND[], Spectrum pureffFD[], Spectrum effcyDFD[], Spectrum pureffFS[], Spectrum effcyDFS[], TDirectory *out, std::string name, std::string title)
 Plot pur/eff for ND, FD assuming 3 flavor osc, FD assuming 4 flavor osc. More...
 
void ana::Make2DFrom1D (Spectrum spectra[], const Binning &binsX, const Binning &binsY, TDirectory *rootOut, std::string name, std::string det, std::string labelX, std::string labelY, std::string option)
 
void ana::Make2DFrom1D (Spectrum spectraND[], Spectrum spectraFD[], Spectrum spectraFS[], const Binning &binsX, const Binning &binsY, TDirectory *rootOut, std::string name, std::string labelX, std::string labelY, std::string option)
 Create output for 'pseudo-2D spectra' at ND, FD with 3 flavor osc, FD with 4 flavor osc. More...
 

Variables

std::vector< std::stringana::flavors {"All", "NC", "NuMu", "NuE", "Cos"}
 
static double ana::NCSCALE = 9e20
 

Macro Definition Documentation

#define MAXSPEC   6

Definition at line 119 of file NuSPlotFunctions18.h.

Referenced by ana::Make2DFrom1D(), and ana::PlotSpectra().