All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
CutOptimizer.cxx File Reference
#include "sbnana/CAFAna/Analysis/CutOptimizer.h"
#include "TH1.h"
#include <iostream>

Go to the source code of this file.

Namespaces

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

Functions

void ana::MakeNMinusOneSpectra (SpectrumLoader &loader, const Cut &sigcut, const Cut &presel, const std::vector< HistAxis > &axes, const std::vector< double > &cut_pos, std::vector< Spectrum > &sigs, std::vector< Spectrum > &bkgs)
 Make a series of spectra leaving out one cut in turn. More...
 
double ana::FindOptimumCut (TH1 *hsig, TH1 *hbkg, double &best_fom)
 Search for optimum cut position given signal and background histograms. More...
 
double ana::OptimizeOneCut (const std::string &wildcard, double pot, const Cut &sigcut, const Cut &presel, const std::vector< HistAxis > &axes, std::vector< double > &cut_pos)
 Scan all cuts and update the one giving the largest FOM gain. More...
 
void ana::OptimizeCuts (const std::string &wildcard, double pot, const Cut &sigcut, const Cut &presel, const std::vector< HistAxis > &axes, std::vector< double > &cut_pos)
 Repeatedly invoke OptimizeOneCut until the FOM increase becomes small. More...