Classes | Namespaces | Typedefs | Enumerations | Functions
Utilities.h File Reference
#include <cassert>
#include <cmath>
#include <cxxabi.h>
#include <cfenv>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
#include "StandardRecord/SREnums.h"
#include "CAFAna/Core/FwdDeclare.h"
#include "StandardRecord/Proxy/FwdDeclare.h"

Go to the source code of this file.

Classes

class  TMatrixT< T >
 
class  TVectorT< T >
 
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...
 

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

Typedefs

typedef TMatrixT< double > TMatrixD
 
typedef TVectorT< double > TVectorD
 

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::unique_ptr< TMatrixDana::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...
 
template<typename T , typename U , typename std::enable_if_t< std::is_convertible_v< double, T > &&std::is_convertible_v< double, U >, int > = 0>
decltype(T(0)-U(0)) ana::LogLikelihood (T exp, U obs)
 The log-likelihood formula for a single bin. More...
 
double ana::LogLikelihoodDerivative (double e, double o, double dedx)
 
double ana::LogLikelihoodDerivative (const TH1D *eh, const TH1D *oh, const std::vector< double > &dedx)
 

Typedef Documentation

typedef TMatrixT<double> TMatrixD

Definition at line 16 of file Utilities.h.

typedef TVectorT<double> TVectorD

Definition at line 18 of file Utilities.h.