Namespaces | Functions
Utilities.cxx File Reference
#include "CAFAna/Core/Spectrum.h"
#include "CAFAna/Core/Ratio.h"
#include "CAFAna/Core/Utilities.h"
#include "StandardRecord/Proxy/SRProxy.h"
#include "Utilities/func/Stan.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 "TVector3.h"
#include "TVectorD.h"
#include <cassert>
#include <cmath>
#include <fstream>
#include <unistd.h>
#include "sys/stat.h"

Go to the source code of this file.

Namespaces

 ana
 Cuts and Vars for the 2020 FD DiF Study.
 

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...
 
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 ()
 
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...