#include "CAFAna/Cuts/Cuts.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Cuts/TimingCuts.h"
#include "3FlavorAna/Cuts/NumuCuts2017.h"
#include "3FlavorAna/Cuts/QuantileCuts.h"
#include "CAFAna/Core/LoadFromFile.h"
#include "CAFAna/Core/Loaders.h"
#include "CAFAna/Core/SpectrumLoader.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Core/ReweightableSpectrum.h"
#include "CAFAna/Vars/Vars.h"
#include "3FlavorAna/Vars/NumuVars.h"
#include "CAFAna/Vars/GenieWeights.h"
#include "CAFAna/Vars/PPFXWeights.h"
#include "OscLib/OscCalcPMNSOpt.h"
#include "CAFAna/Analysis/Calcs.h"
#include "CAFAna/Analysis/Plots.h"
#include "3FlavorAna/Decomp/NumuDecomp.h"
#include "CAFAna/Extrap/ModularExtrap.h"
#include "CAFAna/Extrap/ModularExtrapComponent.h"
#include "CAFAna/Prediction/PredictionCombinePeriods.h"
#include "CAFAna/Prediction/PredictionExtrap.h"
#include "CAFAna/Prediction/PredictionInterp.h"
#include "CAFAna/Prediction/PredictionNoExtrap.h"
#include "3FlavorAna/Systs/EnergySysts.h"
#include "3FlavorAna/Systs/NumuSysts.h"
#include "3FlavorAna/Vars/HistAxes.h"
#include "CAFAna/Vars/FitVars.h"
#include "TStyle.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TGraphAsymmErrors.h"
#include "TH1.h"
#include "TH2.h"
#include "TLegend.h"
#include "TLatex.h"
Go to the source code of this file.
Classes | |
struct | Selection |
Functions | |
void | Preliminary () |
void | Exposure () |
void | getPredictions () |
Variables | |
const int | kNumQuantiles = 4 |
const Var | kSliceTimeShift ([](const caf::SRProxy *sr){const double t=sr->slc.meantime/1000;if(sr->hdr.ismc) return t;const int run=sr->hdr.run;if(run > util::kLastBadTimingRun) return t;if(!util::IsInBeamWindow(run, t *1000)) return t;if(t< 250.) return t;else return(t-64.);}) |
void Exposure | ( | ) |
Definition at line 54 of file getTimePeak.C.
References caf::Proxy< caf::StandardRecord >::hdr, if(), util::IsInBeamWindow(), caf::Proxy< caf::SRHeader >::ismc, util::kLastBadTimingRun, kSliceTimeShift, caf::Proxy< caf::SRSlice >::meantime, caf::Proxy< caf::SRHeader >::run, caf::Proxy< caf::StandardRecord >::slc, sr, and confusionMatrixTree::t.
Referenced by generic.controllers.MakeCanvases.HistogramExtractor::ExtractHistsFromDirectory().
void getPredictions | ( | ) |
Definition at line 88 of file getTimePeak.C.
References std::asin(), calc, om::cerr, om::cout, cut, update_sam_good_runs_metadata::cuts, e, allTimeWatchdog::endl, MakeMiniprodValidationCuts::f, Selection::fname, ana::Loaders::Go(), ana::kBeam, caf::kFARDET, ana::Loaders::kFluxSwap, ana::kHadEFracAxis, ana::Loaders::kMC, ana::kNoCut, ana::Loaders::kNonSwap, ana::kNoShift, ana::kNumuCCOptimisedAxis, ana::kNumuCutFD2017, ana::kPPFXFluxCVWgt, kSliceTimeShift, ana::kStandardSpillCuts, ana::Loaders::kTauSwap, ana::kXSecCVWgt2017, Selection::label, loaders, ana::pnfs2xrootd(), ana::QuantileCutsFromTH2(), ana::ResetOscCalcToDefault(), ana::SaveTo(), osc::_OscCalcPMNSOpt< T >::SetDmsq32(), ana::Loaders::SetLoaderPath(), ana::Loaders::SetSpillCut(), osc::_OscCalcPMNSOpt< T >::SetTh23(), ana::Binning::Simple(), std::sqrt(), and string.
Referenced by getTimePeakPlots().
void Preliminary | ( | ) |
Definition at line 44 of file getTimePeak.C.
const int kNumQuantiles = 4 |
Definition at line 42 of file getTimePeak.C.
const Var kSliceTimeShift([](const caf::SRProxy *sr){const double t=sr->slc.meantime/1000;if(sr->hdr.ismc) return t;const int run=sr->hdr.run;if(run > util::kLastBadTimingRun) return t;if(!util::IsInBeamWindow(run, t *1000)) return t;if(t< 250.) return t;else return(t-64.);}) |
Referenced by Exposure(), and getPredictions().