ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
limit_scan.hpp
Go to the documentation of this file.
1 #ifndef H_LIMIT_SCAN
2 #define H_LIMIT_SCAN
3 
4 #include <string>
5 #include <vector>
6 
7 #include "TGraph2D.h"
8 #include "TGraph.h"
9 #include "TH2D.h"
10 #include "TLatex.h"
11 
12 class TLegend;
13 
14 void ReadPoints(std::vector<double> &vmx,
15  std::vector<double> &vmy,
16  std::vector<double> &vxsec,
17  std::vector<double> &vobs,
18  std::vector<double> &vobsup,
19  std::vector<double> &vobsdown,
20  std::vector<double> &vexp,
21  std::vector<double> &vup,
22  std::vector<double> &vdown,
23  std::vector<double> &vsigobs,
24  std::vector<double> &vsigexp);
25 
26 TH2D MakeObservedSignificancePlot(std::vector<double> vmx,
27  std::vector<double> vmy,
28  std::vector<double> vobs);
29 
30 TH2D MakeExpectedSignificancePlot(std::vector<double> vmx,
31  std::vector<double> vmy,
32  std::vector<double> vobs);
33 
34 void MakeLimitPlot(std::vector<double> vmx,
35  std::vector<double> vmy,
36  std::vector<double> vlim,
37  std::vector<double> vobs,
38  std::vector<double> vobsup,
39  std::vector<double> vobsdown,
40  std::vector<double> vexp,
41  std::vector<double> vup,
42  std::vector<double> vdown,
43  const TH2D &hsigobs,
44  const TH2D &hsigexp);
45 
46 int GetNumBins(const std::vector<double> &pts, double width);
47 void GetParticleNames(std::string &xparticle, std::string &yparticle);
48 TLatex GetModelLabel(double x, double y);
49 
50 void Style(TGraph *c, int color, int style);
51 
52 TGraph DrawContours(TGraph2D &g2, int color, int style, double width,
53  int n_smooth, double val = 1.);
54 
55 void FixGraph(TGraph &graph);
56 void ReverseGraph(TGraph &graph);
57 
58 void SetupColors();
59 void SetupSignedColors();
60 
61 void GetOptions(int argc, char *argv[]);
62 
63 #endif
TLatex GetModelLabel(double x, double y)
Definition: limit_scan.cxx:368
TH2D MakeExpectedSignificancePlot(std::vector< double > vmx, std::vector< double > vmy, std::vector< double > vobs)
Definition: limit_scan.cxx:190
int GetNumBins(const std::vector< double > &pts, double width)
Definition: limit_scan.cxx:342
void Style(TGraph *c, int color, int style)
def style(h, width, style, color)
void GetParticleNames(std::string &xparticle, std::string &yparticle)
Definition: limit_scan.cxx:348
void FixGraph(TGraph &graph)
Definition: limit_scan.cxx:465
TGraph DrawContours(TGraph2D &g2, int color, int style, double width, int n_smooth, double val=1.)
Definition: limit_scan.cxx:393
void GetOptions(int argc, char *argv[])
void SetupSignedColors()
Definition: limit_scan.cxx:536
void SetupColors()
Definition: limit_scan.cxx:515
void MakeLimitPlot(std::vector< double > vmx, std::vector< double > vmy, std::vector< double > vlim, std::vector< double > vobs, std::vector< double > vobsup, std::vector< double > vobsdown, std::vector< double > vexp, std::vector< double > vup, std::vector< double > vdown, const TH2D &hsigobs, const TH2D &hsigexp)
Definition: limit_scan.cxx:248
void ReverseGraph(TGraph &graph)
Definition: limit_scan.cxx:502
void ReadPoints(std::vector< double > &vmx, std::vector< double > &vmy, std::vector< double > &vxsec, std::vector< double > &vobs, std::vector< double > &vobsup, std::vector< double > &vobsdown, std::vector< double > &vexp, std::vector< double > &vup, std::vector< double > &vdown, std::vector< double > &vsigobs, std::vector< double > &vsigexp)
Definition: limit_scan.cxx:57
TH2D MakeObservedSignificancePlot(std::vector< double > vmx, std::vector< double > vmy, std::vector< double > vobs)
Definition: limit_scan.cxx:109