CombineHarvester
Utilities.h File Reference
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include "boost/algorithm/string.hpp"
#include "boost/lexical_cast.hpp"
#include "boost/regex.hpp"
#include "boost/filesystem.hpp"
#include "TGraph.h"
#include "RooFitResult.h"
#include "RooArgSet.h"
#include "CombineHarvester/CombineTools/interface/Parameter.h"
#include "CombineHarvester/CombineTools/interface/Systematic.h"
#include "CombineHarvester/CombineTools/interface/Process.h"
#include "CombineHarvester/CombineTools/interface/Logging.h"

Go to the source code of this file.

Data Structures

struct  ch::tupleprint::TuplePrinter< Tuple, N >
 
struct  ch::tupleprint::TuplePrinter< Tuple, 1 >
 
struct  ch::tupleprint::TuplePrinter< Tuple, 0 >
 

Namespaces

 ch
 
 ch::tupleprint
 

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)
 
template<class T , class U >
bool ch::MatchingProcess (T const &first, U const &second)
 
template<class T , class U >
void ch::SetProperties (T *first, U const *second)
 
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)
 
template<class T >
std::vector< T > ch::Join (std::vector< std::vector< T >> const &in)
 
std::vector< std::string > ch::JoinStr (std::vector< std::vector< std::string >> const &in)
 
template<class T >
std::vector< T > ch::Set2Vec (std::set< T > 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...
 
bool ch::HasNegativeBins (TH1 const *h)
 
void ch::ZeroNegativeBins (TH1 *h)
 
template<class... Args>
std::string ch::Tuple2String (const std::tuple< Args... > &t)
 Format any std::tuple as 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...