#include "NuXAna/macros/Nus20/Selection/PlotSpectra.h"
Go to the source code of this file.
Functions | |
void | PlotSpectra (TString spectraFileName, TString opt) |
void | LoopHistograms (TFile *spectraFile, Detector thisDet) |
void | StyleHistograms (TH1D *h, Detector det, bool isBeamData, bool isCosmic, bool isTotal) |
void | SetupCanvas (TPad *topPad, TPad *botPad, TPad *thisPad) |
bool | PlotData (std::string name) |
void | StyleLegend (TLegend *leg) |
void | DrawBoxes (TH1D *histMCTotal, std::vector< double > theseCuts, CutSide thisCutSide) |
void | DrawRatio (TPad *thisPad, TH1D *mc, TH1D *data) |
void | GetFractionalUncertainties (TFile *covmx, std::vector< float > *nd, std::vector< float > *fd) |
void | InitialiseFOMHists (Detector thisDet, int iVar, int iCut) |
void | DrawFOM (std::set< FomType > fomTypes, int iVar) |
void | PrintSelectedEvents (int iCut, int iVar) |
void | InitialiseHistograms (TFile *spectraFile, Detector thisDet, int iCut, int iVar, std::string dirName, std::string histPathPre, std::string histPath) |
void | DrawDataMC (Detector thisDet, int iCut, int iVar, bool isLogPlot, bool isCosmic, bool isAreaNormalised) |
void | DrawMCOnly (Detector thisDet, int iCut, int iVar, bool isLogPlot, bool isCosmic) |
void | DrawIndependentSpectra (Detector thisDet, int iCut, int iVar) |
TLegend * | GetStandardLegend () |
Definition at line 233 of file PlotSpectra.C.
References ana::kBoth, kHigh, and kLow.
Referenced by DrawDataMC(), DrawIndependentSpectra(), and DrawMCOnly().
void DrawDataMC | ( | Detector | thisDet, |
int | iCut, | ||
int | iVar, | ||
bool | isLogPlot, | ||
bool | isCosmic, | ||
bool | isAreaNormalised | ||
) |
Definition at line 437 of file PlotSpectra.C.
References botPad, cRatio, update_sam_good_runs_metadata::cuts, dirName, DrawBoxes(), DrawRatio(), GetStandardLegend(), histCosmic, histData, histMCBg, histMCSignal, histMCTotal, histTotal, kNear, MECModelEnuComparisons::leg, scale, Scale(), string, topPad, and vars.
Referenced by LoopHistograms().
Definition at line 352 of file PlotSpectra.C.
References EffTimesPurHist, kEffTimesPurity, kSOverSB, kSOverSSB, SOverSBHist, SOverSSBHist, StyleLegend(), and vars.
Referenced by LoopHistograms().
Definition at line 583 of file PlotSpectra.C.
References cNoRatio, update_sam_good_runs_metadata::cuts, dirName, DrawBoxes(), histCosmic, histMCBg, histMCSignal, histMCTotal, histTotal, kRed, std::max(), StyleLegend(), thisPad, and vars.
Referenced by LoopHistograms().
Definition at line 513 of file PlotSpectra.C.
References cNoRatio, update_sam_good_runs_metadata::cuts, dirName, DrawBoxes(), GetStandardLegend(), histCosmic, histMCBg, histMCSignal, histMCTotal, histTotal, kNear, MECModelEnuComparisons::leg, scale, string, thisPad, and vars.
Referenced by LoopHistograms().
void DrawRatio | ( | TPad * | thisPad, |
TH1D * | mc, | ||
TH1D * | data | ||
) |
void GetFractionalUncertainties | ( | TFile * | covmx, |
std::vector< float > * | nd, | ||
std::vector< float > * | fd | ||
) |
Definition at line 287 of file PlotSpectra.C.
References MECModelEnuComparisons::i, and std::sqrt().
TLegend* GetStandardLegend | ( | ) |
Definition at line 623 of file PlotSpectra.C.
References histData, histMCSignal, histTotal, MECModelEnuComparisons::leg, and StyleLegend().
Referenced by DrawDataMC(), and DrawMCOnly().
Definition at line 308 of file PlotSpectra.C.
References BinnedSOverSSBSystHist, update_sam_good_runs_metadata::cuts, dirName, EffTimesPurHist, fdFractionalUncertainties, getFOMHist(), histMCSignal, histMCSignalEnergy, histMCSignalNoCut, histMCTotal, histMCTotalEnergy, histTotal, kBinnedSOverSSB, kEffTimesPurity, kNear, kSOverSB, kSOverSSB, ndFractionalUncertainties, SOverSBHist, SOverSSBHist, StyleFOMs(), and vars.
Referenced by LoopHistograms().
void InitialiseHistograms | ( | TFile * | spectraFile, |
Detector | thisDet, | ||
int | iCut, | ||
int | iVar, | ||
std::string | dirName, | ||
std::string | histPathPre, | ||
std::string | histPath | ||
) |
Definition at line 396 of file PlotSpectra.C.
References update_sam_good_runs_metadata::cuts, histCosmic, histData, histMCBg, histMCSignal, histMCSignalEnergy, histMCSignalNoCut, histMCTotal, histMCTotalEnergy, histTotal, string, StyleHistograms(), and vars.
Referenced by LoopHistograms().
Definition at line 16 of file PlotSpectra.C.
References om::cout, update_sam_good_runs_metadata::cuts, cutsFD, cutsND, dirName, DrawDataMC(), DrawFOM(), DrawIndependentSpectra(), DrawMCOnly(), allTimeWatchdog::endl, fdFractionalUncertainties, GetDecorrelatedUncertainty(), histCosmic, histMCSignal, histMCSignalNoCut, histMCTotal, MECModelEnuComparisons::i, InitialiseFOMHists(), InitialiseHistograms(), makeTrainCVSamples::int, kFar, kNear, ndFractionalUncertainties, PlotData(), PrintSelectedEvents(), string, subcuts, subCutsFD, subCutsND, vars, varsFD, and varsND.
Referenced by PlotSpectra().
bool PlotData | ( | std::string | name | ) |
void PlotSpectra | ( | TString | spectraFileName, |
TString | opt | ||
) |
Definition at line 3 of file PlotSpectra.C.
References botPad, kFar, kNear, LoopHistograms(), SetupCanvas(), thisPad, and topPad.
Definition at line 382 of file PlotSpectra.C.
References om::cout, update_sam_good_runs_metadata::cuts, allTimeWatchdog::endl, histCosmic, histMCBg, histMCSignal, histTotal, and vars.
Referenced by LoopHistograms().
void SetupCanvas | ( | TPad * | topPad, |
TPad * | botPad, | ||
TPad * | thisPad | ||
) |
Definition at line 186 of file PlotSpectra.C.
References cNoRatio, and cRatio.
Referenced by PlotSpectra().
Definition at line 101 of file PlotSpectra.C.
References kFar, kNear, rootlogon::kNovaFont, and kOrange.
Referenced by InitialiseHistograms().
void StyleLegend | ( | TLegend * | leg | ) |
Definition at line 225 of file PlotSpectra.C.
Referenced by DrawFOM(), DrawIndependentSpectra(), and GetStandardLegend().