Classes | Namespaces | Typedefs | Functions
Utilities.h File Reference
#include "CAFAna/Core/UtilsExt.h"
#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.


class  TMatrixT< T >
class  TVectorT< T >
class  ana::IFDHSilent
 ifdh calls between construction and destruction produce no output More...
class  ana::FloatingExceptionOnNaN
 Alter floating-point exception flag. More...
class  ana::FitToFourier


 Cuts and Vars for the 2020 FD DiF Study.


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


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...
TH2F * ana::ExpandedHistogram (const std::string &title, int nbinsx, double xmin, double xmax, bool xlog, int nbinsy, double ymin, double ymax, bool ylog)
 Internal helper for Surface and FCSurface. More...
std::string ana::FindPackageDir (std::string Dir)
std::string ana::FindCAFAnaDir ()
std::vector< std::stringana::LoadFileList (const std::string &listfile)
 Read list of input files from a text file, one per line. More...
std::map< std::string, std::stringana::GetCAFMetadata (TDirectory *dir)
 Extract map of metadata parameters from a CAF file. More...
void ana::CombineMetadata (std::map< std::string, std::string > &base, const std::map< std::string, std::string > &add, std::set< std::string > &mask)
 base += add More...
void ana::WriteCAFMetadata (TDirectory *dir, const std::map< std::string, std::string > &meta)
 Write map of metadata parameters into a CAF file. More...
TVector3 ana::NuMIBeamDirection (caf::Det_t det)
 Average direction of NuMI neutrinos in a given detector This function is a copy of geo::GeometryBase::NuMIBeamDirection () Any changes made to that function must be propagated to here. More...
bool ana::RunningOnGrid ()
 Is this a grid (condor) job? More...
size_t ana::Stride (bool allow_default=true)
 Value passed to –stride, or 1 if not specified. More...
size_t ana::Offset (bool allow_default=true)
 Value passed to –offset, or 0 if not specified. More...
int ana::Limit ()
 Value passed to –limit, or -1 if not specified. More...
size_t ana::JobNumber ()
 What's the process number for a grid job? More...
size_t ana::NumJobs ()
bool ana::SAMDefinitionExists (const std::string &def)
std::size_t ana::Hash (const std::vector< std::size_t > &vals)
 Generate a unique hash from a sequence of integers. More...
std::size_t ana::Hash (const caf::SRSpillProxy *sr)
 Generate a unique hash for a SRSpill (run/subrun/event combination) More...
std::size_t ana::Hash (const caf::SRProxy *sr)
 Generate a unique hash for a StandardRecord (run/subrun/cycle/event/slice combination) More...

Typedef Documentation

typedef TMatrixT<double> TMatrixD

Definition at line 18 of file Utilities.h.

typedef TVectorT<double> TVectorD

Definition at line 20 of file Utilities.h.