All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Enumerations | Functions
sbnana/sbnana/CAFAna/Core/Utilities.h File Reference
#include <fenv.h>
#include <map>
#include <set>
#include <string>
#include <vector>
#include <iostream>
#include <memory>
#include "TMatrixD.h"
#include "TVectorD.h"

Go to the source code of this file.

Classes

class  ana::DontAddDirectory
 Prevent histograms being added to the current directory. More...
 
class  ana::IFDHSilent
 ifdh calls between construction and destruction produce no output More...
 
class  ana::FloatingExceptionOnNaN
 Alter floating-point exception flag. More...
 
class  ana::LLPerBinFracSystErr
 

Namespaces

 ana
 Oscillation analysis framework, runs over CAF files outside of ART.
 

Enumerations

enum  ana::EBinType { ana::kBinContent, ana::kBinDensity }
 
enum  ana::EExposureType { ana::kPOT, ana::kLivetime }
 For use as an argument to Spectrum::ToTH1. More...
 

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 (const TH1 *exp, const TH1 *obs, bool useOverflow=false)
 The log-likelihood formula from the PDG. More...
 
double ana::LogLikelihood (double exp, double obs)
 The log-likelihood formula for a single bin. More...