ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
Functions
sig_inj.hpp File Reference
#include <vector>
#include <string>
#include <utility>
#include "RooAbsReal.h"
#include "RooFitResult.h"

Go to the source code of this file.

Functions

void InjectSignal (const std::string id_string, double inject, std::size_t index)
 
std::pair< double, double > ExtractSignal (const std::string id_string, std::size_t index, std::size_t toy, bool is_nc)
 
double GetAsymError (const RooRealVar &var, double &ehi, double &elo)
 
double GetError (const RooAbsReal &var, const RooFitResult &f)
 
void GetOptions (int argc, char *argv[])
 
void GetStats (const std::vector< double > &vals, double &mean, double &median, double &up, double &down, double &up2, double &down2)
 
double GetValue (std::vector< double > vals, double fraction)
 
double GetMode (const std::vector< double > &v, double frac)
 
std::vector< double > GetSmallestRange (const std::vector< double > &v, double frac)
 
void MakePlot (const std::vector< double > &injections, const std::vector< std::vector< double > > &yvals, bool is_nc, bool is_pull)
 
void Plot1D (double inj, const std::vector< double > &vals, double mean, double median, double up, double down, double up2, double down2, bool is_nc, bool is_pull)
 
void RemoveBadResults (std::vector< double > &vals, std::vector< double > &pulls)
 
void MergeWithText (std::vector< double > &inj, std::vector< std::vector< double > > &yvals, std::vector< std::vector< double > > &pulls, bool is_nc)
 
std::size_t GetIndex (const std::vector< double > &v, double x)
 
void SortByInjectionStrength (std::vector< double > &inj, std::vector< std::vector< double > > &yvals, std::vector< std::vector< double > > &pulls)
 

Function Documentation

std::pair<double,double> ExtractSignal ( const std::string  id_string,
std::size_t  index,
std::size_t  toy,
bool  is_nc 
)
double GetAsymError ( const RooRealVar &  var,
double &  ehi,
double &  elo 
)

Definition at line 210 of file sig_inj.cxx.

Referenced by ExtractSignal().

double GetError ( const RooAbsReal &  var,
const RooFitResult &  f 
)
std::size_t GetIndex ( const std::vector< double > &  v,
double  x 
)

Definition at line 674 of file sig_inj.cxx.

References plot_variations::x.

Referenced by MergeWithText().

double GetMode ( const std::vector< double > &  v,
double  frac 
)

Definition at line 333 of file sig_inj.cxx.

References GetSmallestRange().

void GetOptions ( int  argc,
char *  argv[] 
)

Definition at line 127 of file aggregate_bins.cxx.

References anonymous_namespace{wspace_sig.cxx}::applyVeto, anonymous_namespace{wspace_sig.cxx}::binning, anonymous_namespace{make_workspace.cxx}::blind_level, anonymous_namespace{dilepton_wspace.cxx}::blind_level, anonymous_namespace{wspace_sig.cxx}::blind_level, blinded, anonymous_namespace{sig_inj.cxx}::do_asymmetric_error, anonymous_namespace{scan_point.cxx}::do_signif, anonymous_namespace{sensitivity.cxx}::do_sys, anonymous_namespace{make_workspace.cxx}::do_syst, anonymous_namespace{dilepton_wspace.cxx}::do_syst, anonymous_namespace{wspace_sig.cxx}::do_syst, anonymous_namespace{sig_inj.cxx}::do_systematics, anonymous_namespace{aggregate_bins.cxx}::do_track_veto, anonymous_namespace{sig_inj.cxx}::draw_only, anonymous_namespace{wspace_sig.cxx}::dummy_syst, anonymous_namespace{wspace_sig.cxx}::dummy_syst_file, anonymous_namespace{scan_point.cxx}::file_name, anonymous_namespace{plot_likelihood.cxx}::file_name, anonymous_namespace{likelihood_fit.cxx}::file_path, anonymous_namespace{limit_scan.cxx}::filename_, anonymous_namespace{make_workspace.cxx}::hijets(), anonymous_namespace{dilepton_wspace.cxx}::hijets(), anonymous_namespace{wspace_sig.cxx}::hijets(), anonymous_namespace{make_workspace.cxx}::himet(), anonymous_namespace{dilepton_wspace.cxx}::himet(), anonymous_namespace{wspace_sig.cxx}::himet(), anonymous_namespace{make_workspace.cxx}::identifier, anonymous_namespace{dilepton_wspace.cxx}::identifier, anonymous_namespace{wspace_sig.cxx}::inject_other_model, anonymous_namespace{sig_inj.cxx}::injections, anonymous_namespace{wspace_sig.cxx}::injfile, anonymous_namespace{wspace_sig.cxx}::lowmjthresh(), anonymous_namespace{aggregate_bins.cxx}::lumi, anonymous_namespace{make_workspace.cxx}::lumi, anonymous_namespace{dilepton_wspace.cxx}::lumi, anonymous_namespace{wspace_sig.cxx}::lumi, anonymous_namespace{sig_inj.cxx}::lumi, anonymous_namespace{aggregate_bins.cxx}::met_high, anonymous_namespace{aggregate_bins.cxx}::met_low, anonymous_namespace{make_workspace.cxx}::method(), anonymous_namespace{dilepton_wspace.cxx}::method(), anonymous_namespace{aggregate_bins.cxx}::mglu, anonymous_namespace{make_workspace.cxx}::minjets(), anonymous_namespace{dilepton_wspace.cxx}::minjets(), anonymous_namespace{wspace_sig.cxx}::minjets(), anonymous_namespace{wspace_sig.cxx}::mjdef(), anonymous_namespace{make_workspace.cxx}::mjthresh(), anonymous_namespace{dilepton_wspace.cxx}::mjthresh(), anonymous_namespace{wspace_sig.cxx}::mjthresh(), anonymous_namespace{aggregate_bins.cxx}::mlsp, anonymous_namespace{limit_scan.cxx}::model_, anonymous_namespace{make_workspace.cxx}::n_toys, anonymous_namespace{dilepton_wspace.cxx}::n_toys, anonymous_namespace{wspace_sig.cxx}::n_toys, anonymous_namespace{aggregate_bins.cxx}::nbm_high, anonymous_namespace{aggregate_bins.cxx}::nbm_low, anonymous_namespace{aggregate_bins.cxx}::njets_high, anonymous_namespace{aggregate_bins.cxx}::njets_low, anonymous_namespace{make_workspace.cxx}::no_kappa, anonymous_namespace{dilepton_wspace.cxx}::no_kappa, anonymous_namespace{wspace_sig.cxx}::no_kappa, anonymous_namespace{wspace_sig.cxx}::nom_only, anonymous_namespace{sig_inj.cxx}::ntoys, anonymous_namespace{limit_scan.cxx}::num_smooth_, anonymous_namespace{aggregate_bins.cxx}::out_dir, anonymous_namespace{wspace_sig.cxx}::outfolder, r4_blinded, anonymous_namespace{make_workspace.cxx}::sig_strength, anonymous_namespace{dilepton_wspace.cxx}::sig_strength, anonymous_namespace{wspace_sig.cxx}::sig_strength, anonymous_namespace{wspace_sig.cxx}::sigfile, anonymous_namespace{aggregate_bins.cxx}::syst_file, unblind_1b, unblinded, anonymous_namespace{wspace_sig.cxx}::use_pois, anonymous_namespace{make_workspace.cxx}::use_r4, anonymous_namespace{dilepton_wspace.cxx}::use_r4, anonymous_namespace{aggregate_bins.cxx}::use_r4, anonymous_namespace{wspace_sig.cxx}::use_r4, and anonymous_namespace{plot_likelihood.cxx}::workspace_name.

Referenced by main().

std::vector<double> GetSmallestRange ( const std::vector< double > &  v,
double  frac 
)

Definition at line 358 of file sig_inj.cxx.

Referenced by GetMode().

void GetStats ( const std::vector< double > &  vals,
double &  mean,
double &  median,
double &  up,
double &  down,
double &  up2,
double &  down2 
)

Definition at line 296 of file sig_inj.cxx.

References GetValue().

Referenced by MakePlot().

double GetValue ( std::vector< double >  vals,
double  fraction 
)

Definition at line 313 of file sig_inj.cxx.

Referenced by GetStats().

void InjectSignal ( const std::string  id_string,
double  inject,
std::size_t  index 
)
void MakePlot ( const std::vector< double > &  injections,
const std::vector< std::vector< double > > &  yvals,
bool  is_nc,
bool  is_pull 
)
void MergeWithText ( std::vector< double > &  inj,
std::vector< std::vector< double > > &  yvals,
std::vector< std::vector< double > > &  pulls,
bool  is_nc 
)
void Plot1D ( double  inj,
const std::vector< double > &  vals,
double  mean,
double  median,
double  up,
double  down,
double  up2,
double  down2,
bool  is_nc,
bool  is_pull 
)

Definition at line 540 of file sig_inj.cxx.

References plot_variations::c, anonymous_namespace{sig_inj.cxx}::lumi, and scan_aggregate::name.

Referenced by MakePlot().

void RemoveBadResults ( std::vector< double > &  vals,
std::vector< double > &  pulls 
)

Definition at line 617 of file sig_inj.cxx.

References ERROR.

Referenced by main().

void SortByInjectionStrength ( std::vector< double > &  inj,
std::vector< std::vector< double > > &  yvals,
std::vector< std::vector< double > > &  pulls 
)