CombineHarvester
Utilities.cc File Reference
#include "CombineHarvester/CombineTools/interface/Utilities.h"
#include <iostream>
#include <vector>
#include <set>
#include <string>
#include <fstream>
#include <map>
#include "boost/format.hpp"
#include "RooFitResult.h"
#include "RooRealVar.h"
#include "RooDataHist.h"
#include "RooAbsReal.h"
#include "RooAbsData.h"
#include "CombineHarvester/CombineTools/interface/CombineHarvester.h"

Go to the source code of this file.

Namespaces

 ch
 

Functions

RooArgSet ch::ParametersByName (RooAbsReal const *pdf, RooArgSet const *dat_vars)
 
std::vector< ch::Parameterch::ExtractFitParameters (RooFitResult const &res)
 
std::vector< ch::Parameterch::ExtractSampledFitParameters (RooFitResult const &res)
 
void ch::SetStandardBinNames (CombineHarvester &cb, std::string const &pattern="$ANALYSIS_$CHANNEL_$BINID_$ERA")
 
void ch::SetStandardBinName (ch::Object *obj, std::string pattern)
 
void ch::SetFromBinName (ch::Object *input, std::string parse_rules)
 
TGraph ch::TGraphFromTable (std::string filename, std::string const &x_column, std::string const &y_column)
 
std::vector< std::string > ch::JoinStr (std::vector< std::vector< std::string >> const &in)
 
RooDataHist ch::TH1F2Data (TH1F const &hist, RooRealVar const &x, std::string const &name)
 
TH1F ch::RebinHist (TH1F const &hist)
 
TH1F ch::RestoreBinning (TH1F const &src, TH1F const &ref)
 
std::vector< std::vector< unsigned > > ch::GenerateCombinations (std::vector< unsigned > vec)
 
std::vector< std::string > ch::ParseFileLines (std::string const &file_name)
 
bool ch::is_float (std::string const &str)
 
std::vector< std::string > ch::MassesFromRange (std::string const &input, std::string const &fmt="%.0f")
 Generate a vector of mass values using ranges and intervals specified in a string. More...
 
std::vector< std::string > ch::ValsFromRange (std::string const &input, std::string const &fmt="%.0f")
 Generate a vector of values using ranges and intervals specified in a string. More...
 
boost::filesystem::path ch::make_relative (boost::filesystem::path p_from, boost::filesystem::path p_to)
 Determine the relative path from one file to another. More...
 
bool ch::HasNegativeBins (TH1 const *h)
 
void ch::ZeroNegativeBins (TH1 *h)