ra4_stats
0341147a0dc35f80f4e12c6003afb76a38e2ed6e
|
#include "limit_scan.hpp"
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <unistd.h>
#include <getopt.h>
#include "TCanvas.h"
#include "TGraph.h"
#include "TGraph2D.h"
#include "TColor.h"
#include "TH2D.h"
#include "TStyle.h"
#include "TLegend.h"
#include "TFile.h"
#include "TLatex.h"
#include "TLine.h"
#include "utilities.hpp"
#include "styles.hpp"
#include "cross_sections.hpp"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{limit_scan.cxx} | |
Functions | |
int | main (int argc, char *argv[]) |
void | ReadPoints (vector< double > &vmx, vector< double > &vmy, vector< double > &vxsec, vector< double > &vobs, vector< double > &vobsup, vector< double > &vobsdown, vector< double > &vexp, vector< double > &vup, vector< double > &vdown, vector< double > &vsigobs, vector< double > &vsigexp) |
TH2D | MakeObservedSignificancePlot (vector< double > vmx, vector< double > vmy, vector< double > vobs) |
TH2D | MakeExpectedSignificancePlot (vector< double > vmx, vector< double > vmy, vector< double > vobs) |
void | MakeLimitPlot (vector< double > vmx, vector< double > vmy, vector< double > vlim, vector< double > vobs, vector< double > vobsup, vector< double > vobsdown, vector< double > vexp, vector< double > vup, vector< double > vdown, const TH2D &hsigobs, const TH2D &hsigexp) |
int | GetNumBins (const vector< double > &pts, double width) |
void | GetParticleNames (string &xparticle, string &yparticle) |
TLatex | GetModelLabel (double x, double y) |
void | Style (TGraph *g, int color, int style, float width) |
TGraph | DrawContours (TGraph2D &g2, int color, int style, double width, int n_smooth, double val) |
void | FixGraph (TGraph &graph) |
void | ReverseGraph (TGraph &graph) |
void | SetupColors () |
void | SetupSignedColors () |
void | GetOptions (int argc, char *argv[]) |
Variables | |
int | anonymous_namespace{limit_scan.cxx}::num_smooth_ = 4 |
string | anonymous_namespace{limit_scan.cxx}::filename_ = "txt/t1tttt_limit_scan.txt" |
string | anonymous_namespace{limit_scan.cxx}::model_ = "T1tttt" |
TGraph DrawContours | ( | TGraph2D & | g2, |
int | color, | ||
int | style, | ||
double | width, | ||
int | n_smooth, | ||
double | val | ||
) |
Definition at line 393 of file limit_scan.cxx.
References FixGraph(), plot_variations::graph, anonymous_namespace{limit_scan.cxx}::model_, Style(), plot_variations::x, and plot_variations::y.
Referenced by MakeExpectedSignificancePlot(), MakeLimitPlot(), and MakeObservedSignificancePlot().
void FixGraph | ( | TGraph & | graph | ) |
Definition at line 465 of file limit_scan.cxx.
References change_r::mglu, change_r::mlsp, anonymous_namespace{limit_scan.cxx}::model_, and ReverseGraph().
Referenced by DrawContours().
TLatex GetModelLabel | ( | double | x, |
double | y | ||
) |
Definition at line 368 of file limit_scan.cxx.
References DBG, and anonymous_namespace{limit_scan.cxx}::model_.
Referenced by MakeExpectedSignificancePlot(), and MakeObservedSignificancePlot().
int GetNumBins | ( | const vector< double > & | pts, |
double | width | ||
) |
Definition at line 342 of file limit_scan.cxx.
Referenced by MakeExpectedSignificancePlot(), MakeLimitPlot(), and MakeObservedSignificancePlot().
void GetOptions | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 552 of file limit_scan.cxx.
References anonymous_namespace{limit_scan.cxx}::filename_, anonymous_namespace{limit_scan.cxx}::model_, and anonymous_namespace{limit_scan.cxx}::num_smooth_.
Referenced by main().
void GetParticleNames | ( | string & | xparticle, |
string & | yparticle | ||
) |
Definition at line 348 of file limit_scan.cxx.
References DBG, and anonymous_namespace{limit_scan.cxx}::model_.
Referenced by MakeExpectedSignificancePlot(), MakeLimitPlot(), and MakeObservedSignificancePlot().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 34 of file limit_scan.cxx.
References ERROR, anonymous_namespace{limit_scan.cxx}::filename_, GetOptions(), MakeExpectedSignificancePlot(), MakeLimitPlot(), MakeObservedSignificancePlot(), ReadPoints(), styles::setDefaultStyle(), and bin_significance::style().
TH2D MakeExpectedSignificancePlot | ( | vector< double > | vmx, |
vector< double > | vmy, | ||
vector< double > | vobs | ||
) |
Definition at line 190 of file limit_scan.cxx.
References plot_variations::c, DrawContours(), GetModelLabel(), GetNumBins(), GetParticleNames(), send_variations::model, anonymous_namespace{limit_scan.cxx}::model_, SetupColors(), bin_significance::style(), and plot_variations::title.
Referenced by main().
void MakeLimitPlot | ( | vector< double > | vmx, |
vector< double > | vmy, | ||
vector< double > | vlim, | ||
vector< double > | vobs, | ||
vector< double > | vobsup, | ||
vector< double > | vobsdown, | ||
vector< double > | vexp, | ||
vector< double > | vup, | ||
vector< double > | vdown, | ||
const TH2D & | hsigobs, | ||
const TH2D & | hsigexp | ||
) |
Definition at line 248 of file limit_scan.cxx.
References plot_variations::c, DrawContours(), GetNumBins(), GetParticleNames(), anonymous_namespace{limit_scan.cxx}::model_, anonymous_namespace{limit_scan.cxx}::num_smooth_, SetupColors(), and plot_variations::title.
Referenced by main().
TH2D MakeObservedSignificancePlot | ( | vector< double > | vmx, |
vector< double > | vmy, | ||
vector< double > | vobs | ||
) |
Definition at line 109 of file limit_scan.cxx.
References plot_variations::c, DrawContours(), GetModelLabel(), GetNumBins(), GetParticleNames(), send_variations::model, anonymous_namespace{limit_scan.cxx}::model_, SetupSignedColors(), bin_significance::style(), and plot_variations::title.
Referenced by main().
void ReadPoints | ( | vector< double > & | vmx, |
vector< double > & | vmy, | ||
vector< double > & | vxsec, | ||
vector< double > & | vobs, | ||
vector< double > & | vobsup, | ||
vector< double > & | vobsdown, | ||
vector< double > & | vexp, | ||
vector< double > & | vup, | ||
vector< double > & | vdown, | ||
vector< double > & | vsigobs, | ||
vector< double > & | vsigexp | ||
) |
Definition at line 57 of file limit_scan.cxx.
References Contains(), ERROR, anonymous_namespace{limit_scan.cxx}::filename_, change_r::mglu, anonymous_namespace{limit_scan.cxx}::model_, and xsec::signalCrossSection().
Referenced by main().
void ReverseGraph | ( | TGraph & | graph | ) |
Definition at line 502 of file limit_scan.cxx.
References change_r::mglu, and change_r::mlsp.
Referenced by FixGraph().
void SetupColors | ( | ) |
Definition at line 515 of file limit_scan.cxx.
Referenced by MakeExpectedSignificancePlot(), and MakeLimitPlot().
void SetupSignedColors | ( | ) |
Definition at line 536 of file limit_scan.cxx.
Referenced by MakeObservedSignificancePlot().
void Style | ( | TGraph * | g, |
int | color, | ||
int | style, | ||
float | width | ||
) |
Definition at line 387 of file limit_scan.cxx.
Referenced by DrawContours().