Namespaces | Functions
ProtoDUNEFitUtils.h File Reference
#include <iostream>
#include <vector>
#include <string>
#include <TString.h>
#include <TTree.h>
#include <TH2.h>
#include <TH1.h>
#include <TCanvas.h>
#include <RooArgSet.h>
#include <RooArgList.h>
#include <RooWorkspace.h>
#include <RooFitResult.h>
#include <RooPlot.h>

Go to the source code of this file.

Namespaces

 protoana
 
 protoana::ProtoDUNEFitUtils
 

Functions

std::vector< TH1 * > protoana::ProtoDUNEFitUtils::GetSystHistograms (std::string name)
 
TH1 * protoana::ProtoDUNEFitUtils::GetStatsSystHistogram (TH1 *nominal)
 
TH1 * protoana::ProtoDUNEFitUtils::GetSystematicHistoFromNominal (TH1 *nominal, TH1 *syst, TString name)
 
bool protoana::ProtoDUNEFitUtils::IsSingleBinHisto (TH1 *histo)
 
TH2 * protoana::ProtoDUNEFitUtils::GetFitCovariance (RooFitResult *result)
 
TH2 * protoana::ProtoDUNEFitUtils::GetFitCorrelationMatrix (RooFitResult *result)
 
void protoana::ProtoDUNEFitUtils::SaveSnapshot (RooWorkspace *ws, TString snapshotname)
 
bool protoana::ProtoDUNEFitUtils::LoadSnapshot (RooWorkspace *ws, TString snapshotname)
 
void protoana::ProtoDUNEFitUtils::SaveWorkspace (RooWorkspace *ws, TString outFileName)
 
void protoana::ProtoDUNEFitUtils::SetInterpolationCode (RooWorkspace *ws, int code)
 
void protoana::ProtoDUNEFitUtils::RemoveEmptyBins (RooPlot *frame)
 
double protoana::ProtoDUNEFitUtils::GetDataMCChi2 (RooWorkspace *work, TString channelname, RooAbsData *data=NULL)
 
std::vector< TCanvas * > protoana::ProtoDUNEFitUtils::PlotDatasetsAndPdfs (RooWorkspace *work, TString name, TString error, TString plottodraw, std::vector< TString > binnames, std::vector< double > recobins, std::vector< TString > incidentBinNames, std::vector< TString > sidebandBinNames, std::vector< double > sidebandBins, TString measurement="PDFit", bool doNegativeReco=false, RooAbsData *data=NULL, RooFitResult *result=NULL)
 
std::vector< TH1 * > protoana::ProtoDUNEFitUtils::PlotXSecs (RooWorkspace *work, std::string name, std::vector< TString > binnames, std::vector< double > recobins, std::vector< TString > incidentBinNames, RooAbsData *data=0x0, RooFitResult *result=0x0)
 
std::vector< TCanvas * > protoana::ProtoDUNEFitUtils::PlotNLL (RooWorkspace *work, TString name, RooFitResult *result, bool plotPLL=false)
 
std::vector< TCanvas * > protoana::ProtoDUNEFitUtils::PlotNuisanceParametersImpact (RooWorkspace *work, RooFitResult *result, TString snapshotload, std::vector< std::string > SystsToConsider)
 
TCanvas * protoana::ProtoDUNEFitUtils::PlotParametersPull (TTree *tree, RooWorkspace *ws)
 
TCanvas * protoana::ProtoDUNEFitUtils::PlotNuisanceParametersPull (TTree *tree, RooWorkspace *ws)
 
TCanvas * protoana::ProtoDUNEFitUtils::PlotNuisanceParameters (TTree *tree, RooWorkspace *ws)
 
TCanvas * protoana::ProtoDUNEFitUtils::PlotAverageResultsFromToys (TTree *tree, RooWorkspace *ws, TString channelname, TString catname, RooArgList *PreFit_POI=0x0)
 
RooArgList protoana::ProtoDUNEFitUtils::GetPostfitPOIList (RooArgList paramsfit, bool print=false)
 
void protoana::ProtoDUNEFitUtils::MakeNuisanceParamsConstant (RooWorkspace *ws, TString exceptPar)
 
void protoana::ProtoDUNEFitUtils::ResetValues (RooWorkspace *ws, const RooArgList &parList)
 
void protoana::ProtoDUNEFitUtils::ResetValuesToNominal (RooWorkspace *ws, const RooArgSet &parSet)
 
void protoana::ProtoDUNEFitUtils::ResetError (RooWorkspace *ws, const RooArgList &parList)
 
void protoana::ProtoDUNEFitUtils::ResetAllValuesAndErrors (RooWorkspace *ws)
 
double protoana::ProtoDUNEFitUtils::GetArgonNumberDensity (double argon_density=1.3973, double argon_molecularmass=39.948)