#include "CAFAna/Cuts/Cuts.h"
#include "3FlavorAna/Cuts/NumuCuts.h"
#include "3FlavorAna/Cuts/NumuCuts2017.h"
#include "3FlavorAna/Cuts/QuantileCuts.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Core/Binning.h"
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Core/Var.h"
#include "CAFAna/Core/SpectrumLoader.h"
#include "CAFAna/Systs/Systs.h"
#include "3FlavorAna/Systs/NumuSysts.h"
#include "CAFAna/Systs/XSecSystLists.h"
#include "3FlavorAna/Vars/NumuVars.h"
#include "3FlavorAna/Vars/HistAxes.h"
#include "CAFAna/Vars/PPFXWeights.h"
#include "CAFAna/Analysis/Plots.h"
#include "CAFAna/Analysis/Style.h"
#include "TCanvas.h"
#include "TFile.h"
#include "TGraph.h"
#include "TH1.h"
#include "TH2.h"
#include "TMath.h"
#include "TGaxis.h"
#include "TMultiGraph.h"
#include "TLegend.h"
#include "TLegendEntry.h"
#include "TLatex.h"
#include "TStyle.h"
#include "THStack.h"
#include "TPaveText.h"
#include "TList.h"
#include "TAttLine.h"
#include "TAttMarker.h"
#include <cmath>
#include <iostream>
#include <vector>
#include <list>
#include <sstream>
#include <string>
#include <fstream>
#include <iomanip>
Go to the source code of this file.
Classes | |
class | Tangible< T > |
class | DataMCPair |
Typedefs | |
typedef Tangible< Cut > | Selection |
typedef Tangible< HistAxis > | TangibleAxis |
Functions | |
void | Preliminary () |
void | CenterTitles () |
void | RedrawAxes () |
TCanvas * | LogClone (const TCanvas *can) |
DataMCPair * | findPair (std::vector< DataMCPair > &list, std::vector< std::string > keys) |
Get a vector of all the numu group systs. More... | |
void | WriteBlurb (const DataMCPair &pair, std::string dir, std::string name, std::string extra="", std::string beginning="") |
void | MakeTextFile (std::string OutName) |
void | hadEFrac_nd_data_mc_systs (bool RunBinNorm=false, bool IsTest=false) |
Variables | |
const Var | kBinWidthWeight ([](const caf::SRProxy *sr){const double Enu=kCCE(sr); if(Enu< 0.75) return 0.1/0.75;if(Enu >=0.75 &&Enu< 1) return 0.1/0.25;if(Enu >=1 &&Enu< 2) return 0.1/0.1;if(Enu >=2 &&Enu< 3) return 0.1/0.25;if(Enu >=3 &&Enu< 4) return 0.1/0.5;if(Enu >=4 &&Enu< 5) return 0.1/1;else return 1.;}) |
Definition at line 187 of file hadEFrac_nd_data_mc_systs.C.
typedef Tangible<HistAxis> TangibleAxis |
Definition at line 188 of file hadEFrac_nd_data_mc_systs.C.
void CenterTitles | ( | ) |
DataMCPair* findPair | ( | std::vector< DataMCPair > & | list, |
std::vector< std::string > | keys | ||
) |
Get a vector of all the numu group systs.
Return an iterator if all keys are found in only one entry
Assume we're going to find it, innocent until guilty
Definition at line 624 of file hadEFrac_nd_data_mc_systs.C.
References om::cout, allTimeWatchdog::endl, HTMLTools::entry(), modifyFHiCL::found, it, and findDuplicateFiles::key.
void hadEFrac_nd_data_mc_systs | ( | bool | RunBinNorm = false , |
bool | IsTest = false |
||
) |
Definition at line 700 of file hadEFrac_nd_data_mc_systs.C.
References allTimeWatchdog::can, canMan::cans, om::cout, CutNames, update_sam_good_runs_metadata::cuts, allTimeWatchdog::endl, ana::getAllDirectNumuSysts2017(), ana::SpectrumLoader::Go(), inFile, kBinWidthWeight, ana::kCosNumi, ana::kCVNm, ana::kHadE, ana::kHadEFrac, ana::kHadEFracAxis, ana::kIsNumuCC(), ana::kMuE, ana::kNumuCCOptimisedAxis, ana::kNumuContainND2017, ana::kNumuPID2017, ana::kNumuQuality, ana::kPPFXFluxCVWgt, ana::kRemID, ana::kStandardSpillCuts, ana::kTrkLength, ana::kXSecCVWgt2017, MakeTextFile(), OutFile, Preliminary(), ana::QuantileCutsFromTH2(), ana::SpectrumLoaderBase::SetSpillCut(), ana::Binning::Simple(), string, systs, art::to_string(), and WriteBlurb().
TCanvas* LogClone | ( | const TCanvas * | can | ) |
Definition at line 123 of file hadEFrac_nd_data_mc_systs.C.
References plot_validation_datamc::c, make_syst_table_plots::h, MECModelEnuComparisons::i, std::log10(), cet::sqlite::max(), min(), and cet::pow().
void MakeTextFile | ( | std::string | OutName | ) |
Definition at line 676 of file hadEFrac_nd_data_mc_systs.C.
References om::cout, allTimeWatchdog::endl, confusionMatrixTree::out, and string.
Referenced by hadEFrac_nd_data_mc_systs().
void Preliminary | ( | ) |
Definition at line 72 of file hadEFrac_nd_data_mc_systs.C.
Referenced by hadEFrac_nd_data_mc_systs().
void RedrawAxes | ( | ) |
Definition at line 102 of file hadEFrac_nd_data_mc_systs.C.
References string.
Referenced by DataMCPair::AestheticsArea(), DataMCPair::AestheticsPOT(), DataMCPair::OverlayDataMCSyst(), and DataMCPair::OverlayDataMCSystNorm().
void WriteBlurb | ( | const DataMCPair & | pair, |
std::string | dir, | ||
std::string | name, | ||
std::string | extra = "" , |
||
std::string | beginning = "" |
||
) |
Definition at line 667 of file hadEFrac_nd_data_mc_systs.C.
References ana::Tangible< T >::fBlurb, ana::DataMCPair::fSel, and confusionMatrixTree::out.
Referenced by hadEFrac_nd_data_mc_systs(), and ND_DataMC_Comp_Systs().
const Var kBinWidthWeight([](const caf::SRProxy *sr){const double Enu=kCCE(sr); if(Enu< 0.75) return 0.1/0.75;if(Enu >=0.75 &&Enu< 1) return 0.1/0.25;if(Enu >=1 &&Enu< 2) return 0.1/0.1;if(Enu >=2 &&Enu< 3) return 0.1/0.25;if(Enu >=3 &&Enu< 4) return 0.1/0.5;if(Enu >=4 &&Enu< 5) return 0.1/1;else return 1.;}) |
Referenced by hadEFrac_nd_data_mc_systs().