#include "sbnana/CAFAna/Core/Utilities.h"
#include "sbnana/CAFAna/Core/Spectrum.h"
#include "sbnana/CAFAna/Core/Ratio.h"
#include "sbnana/CAFAna/Core/MathUtil.h"
#include "TArrayD.h"
#include "TClass.h"
#include "TDirectory.h"
#include "TH2.h"
#include "TH3.h"
#include "TF1.h"
#include "TMatrixD.h"
#include "TObjString.h"
#include "TString.h"
#include "TTree.h"
#include "TVector3.h"
#include "TVectorD.h"
#include <vector>
#include <cassert>
#include <cmath>
#include <fstream>
#include "sys/stat.h"
#include "wordexp.h"
Go to the source code of this file.
Namespaces | |
ana | |
Oscillation analysis framework, runs over CAF files outside of ART. | |
Functions | |
std::string | ana::UniqueName () |
Return a different string each time, for creating histograms. More... | |
std::string | ana::Experiment () |
$EXPERIMENT or a nice error message and abort More... | |
std::string | ana::SAMExperiment () |
$SAM_EXPERIMENT or a nice error message and abort More... | |
std::unique_ptr< TMatrixD > | ana::CalcCovMx (const std::vector< TArrayD * > &binSets, int firstBin=0, int lastBin=-1) |
Compute bin-to-bin covariance matrix from a collection of sets of bin contents. More... | |
double | ana::LogLikelihood (double exp, double obs) |
The log-likelihood formula for a single bin. More... | |
double | ana::LogLikelihood (const TH1 *exp, const TH1 *obs, bool useOverflow=false) |
The log-likelihood formula from the PDG. More... | |
double | ana::Chi2CovMx (const TVectorD *e, const TVectorD *o, const TMatrixD *covmxinv) |
double | ana::Chi2CovMx (const TH1 *e, const TH1 *o, const TMatrixD *covmxinv) |
TH2F * | ana::ExpandedHistogram (const std::string &title, int nbinsx, double xmin, double xmax, bool xlog, int nbinsy, double ymin, double ymax, bool ylog) |
std::unique_ptr< TMatrixD > | ana::SymmMxInverse (const TMatrixD &mx) |
TH1D * | ana::MakeTH1D (const char *name, const char *title, const Binning &bins) |
TH2D * | ana::MakeTH2D (const char *name, const char *title, const Binning &binsx, const Binning &binsy) |
TH2 * | ana::ToTH2 (const Spectrum &s, double exposure, ana::EExposureType expotype, const Binning &binsx, const Binning &binsy, ana::EBinType bintype) |
TH2 * | ana::ToTH2 (const Ratio &r, const Binning &binsx, const Binning &binsy) |
TH2 * | ana::ToTH2Helper (std::unique_ptr< TH1 > h1, const Binning &binsx, const Binning &binsy, ana::EBinType bintype) |
TH3 * | ana::ToTH3 (const Spectrum &s, double exposure, ana::EExposureType expotype, const Binning &binsx, const Binning &binsy, const Binning &binsz, ana::EBinType bintype) |
TH3 * | ana::ToTH3 (const Ratio &r, const Binning &binsx, const Binning &binsy, const Binning &binsz) |
TH3 * | ana::ToTH3Helper (std::unique_ptr< TH1 > h1, const Binning &binsx, const Binning &binsy, const Binning &binsz, ana::EBinType bintype) |
std::vector< std::string > | ana::Wildcard (const std::string &wildcardString) |
std::string | ana::FindCAFAnaDir () |
std::vector< std::string > | ana::LoadFileList (const std::string &listfile) |
std::map< std::string, std::string > | ana::GetCAFMetadata (TDirectory *dir) |
void | ana::CombineMetadata (std::map< std::string, std::string > &base, const std::map< std::string, std::string > &add, std::set< std::string > &mask) |
void | ana::WriteCAFMetadata (TDirectory *dir, const std::map< std::string, std::string > &meta) |
bool | ana::RunningOnGrid () |
size_t | ana::Stride (bool allow_default) |
size_t | ana::Offset (bool allow_default) |
int | ana::Limit () |
size_t | ana::JobNumber () |
size_t | ana::NumJobs () |
bool | ana::AlmostEqual (double a, double b) |
std::string | ana::pnfs2xrootd (std::string loc, bool unauth) |
void | ana::EnsurePositiveDefinite (TH2 *mat) |
TH1 * | ana::GetMaskHist (const Spectrum &s, double xmin, double xmax, double ymin, double ymax) |
double | ana::FindQuantile (double frac, std::vector< double > &xs) |