ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/auterman/SusyScan/PlotScript/GlobalFunctions.h
(Generate patch)

Comparing UserCode/auterman/SusyScan/PlotScript/GlobalFunctions.h (file contents):
Revision 1.13 by auterman, Thu Mar 10 20:59:52 2011 UTC vs.
Revision 1.14 by auterman, Fri May 20 07:39:34 2011 UTC

# Line 18 | Line 18
18   #include <iostream>
19  
20  
21 < double Luminosity = 36.3; //[pb^-1]
21 > double Luminosity = 36.0; //[pb^-1]
22   double Mzero(const SusyScan* p){ return p->Mzero; }
23   double Mhalf(const SusyScan* p){ return p->Mhalf; }
24   double MGluino(const SusyScan* p){ return p->MGL; }
# Line 45 | Line 45 | double SignalUncertainty(const SusyScan*
45   double SignalRelUncertainty(const SusyScan* p){ return p->signal_uncertainty/p->signal; }
46   double ExpExclusion(const SusyScan* p){ return (ExpXsecLimit(p)<Xsection(p)&&ExpXsecLimit(p)>0.01?1:0.01); }
47   double ObsExclusion(const SusyScan* p){ return (ObsXsecLimit(p)<Xsection(p)&&ObsXsecLimit(p)>0.01?1:0.01); }
48 + double ExpNoSigExclCL(const SusyScan* p){ return (p->CLs_bNoSig_xsec<=0.05 ? 1:0.01); }
49   double ExpExclCL(const SusyScan* p){ return (p->CLs_b_xsec<=0.05 ? 1:0.01); }
50   double ExpExclCLm2sigma(const SusyScan* p){ return (p->CLs_b_n2_xsec<=0.05 ? 1:0.01); }
51   double ExpExclCLm1sigma(const SusyScan* p){ return (p->CLs_b_n1_xsec<=0.05 ? 1:0.01); }
# Line 85 | Line 86 | double NLOSignalUncertainty(const SusySc
86   double NLOSignalRelUncertainty(const SusyScan* p){ return p->NLO_signal_uncertainty/p->NLO_signal; }
87   double NLOExpExclusion(const SusyScan* p){ return (NLOExpXsecLimit(p)<NLOXsection(p)&&NLOExpXsecLimit(p)>0.01?1:0.01); }
88   double NLOObsExclusion(const SusyScan* p){ return (NLOObsXsecLimit(p)<NLOXsection(p)&&NLOObsXsecLimit(p)>0.01?1:0.01); }
88
89   double NLOExpCL(const SusyScan* p){ return (p->NLO_CLs_b_xsec); }
90 <
90 > double NLOExpNoSigExclCL(const SusyScan* p){ return (p->NLO_CLs_bNoSig_xsec<=0.05 ? 1:0.01); }
91   double NLOExpExclCL(const SusyScan* p){ return (p->NLO_CLs_b_xsec<=0.05 ? 1:0.01); }
92   double NLOExpExclCLm2sigma(const SusyScan* p){ return (p->NLO_CLs_b_n2_xsec<=0.05 ? 1:0.01); }
93   double NLOExpExclCLm1sigma(const SusyScan* p){ return (p->NLO_CLs_b_n1_xsec<=0.05 ? 1:0.01); }
# Line 95 | Line 95 | double NLOExpExclCLp1sigma(const SusySca
95   double NLOExpExclCLp2sigma(const SusyScan* p){ return (p->NLO_CLs_b_p2_xsec<=0.05 ? 1:0.01); }
96   double NLOObsExclCL(const SusyScan* p){ return (p->NLO_CLs_xsec<=0.05 ? 1:0.01); }
97  
98 + double NLOHybridObsCL(const SusyScan* p){ return p->NLOHybrid_CLs_xsec; }
99 + double NLOHybridObsExclCL(const SusyScan* p){ return (p->NLOHybrid_CLs_xsec<=0.05 ? 1:0.01); }
100 + double NLOHybridObsErrorCL(const SusyScan* p){ return (p->NLOHybrid_CLs_xsec_error<=0.05 ? 1:0.01); }
101 +
102   double NLOSoverSqrtB(const SusyScan* p){ return p->NLO_signal/(sqrt(p->background)+p->background_uncertainty+p->NLO_signal_uncertainty); }
103   double NLOXsecOverObserved(const SusyScan* p){ return (NLOObsXsecLimit(p)==0 ? 9999. : NLOXsection(p)/NLOObsXsecLimit(p)); }
104   double NLOXsecOverExpected(const SusyScan* p){ return (NLOExpXsecLimit(p)==0 ? 9999. : NLOXsection(p)/NLOExpXsecLimit(p)); }
# Line 935 | Line 939 | TGraph * Atlas_mGl_mSq_obs()
939     graph->SetPoint(63,1975.625,426.7444);
940     return graph;
941   }
942 +
943 +
944 + //- Jim Lungu ----------------------------------------------
945 +
946 + TGraph* Jim_mht_tb3(int mode){
947 +  Int_t n = 10;
948 +  Double_t x[10] = {15,65,115,165,215,265,315,365,415,465};
949 +  Double_t yobs[10] = {330,330,340,340,330,320,310,300,280,260};
950 +  Double_t yexp[10] = {330,320,320,320,320,310,300,290,270,250};
951 +  Double_t yexpp[10] = {350,350,350,340,340,330,330,310,300,280};
952 +  Double_t yexpn[10] = {310,310,310,300,300,300,280,270,240,240};
953 +  Double_t y[10];
954 +  for (int i=0;i<n;i++) {
955 +    if (mode==0) y[i] = yobs[i];
956 +    if (mode==1) y[i] = yexp[i];
957 +    if (mode==2) y[i] = yexpp[i];
958 +    if (mode==3) y[i] = yexpn[i];
959 +  }
960 +  TGraph* gr = new TGraph(n,x,y);
961 +  gr->SetLineWidth(2);
962 +  if (mode==1) gr->SetLineStyle(2);
963 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
964 +  else
965 +    gr->SetLineColor(2);
966 +  return gr;
967 + }
968 +
969 + TGraph* Jim_ht_tb3(int mode){
970 +  Int_t n = 10;
971 +  Double_t x[10] = {15,65,115,165,215,265,315,365,415,465};
972 +  Double_t yobs[10] = {300,300,290,290,300,290,280,270,260,250};
973 +  Double_t yexp[10] = {300,300,290,300,300,290,280,270,260,250};
974 +  Double_t yexpp[10] = {320,320,320,320,310,310,300,290,280,270};
975 +  Double_t yexpn[10] = {290,290,280,290,280,280,270,250,250,240};
976 +  Double_t y[10];
977 +  for (int i=0;i<n;i++) {
978 +    if (mode==0) y[i] = yobs[i];
979 +    if (mode==1) y[i] = yexp[i];
980 +    if (mode==2) y[i] = yexpp[i];
981 +    if (mode==3) y[i] = yexpn[i];
982 +  }
983 +  TGraph* gr = new TGraph(n,x,y);
984 +  gr->SetLineWidth(2);
985 +  if (mode==1) gr->SetLineStyle(2);
986 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
987 +  else
988 +    gr->SetLineColor(2);
989 +  return gr;
990 + }
991 +
992 + TGraph* Jim_mht_tb50(int mode){
993 +  Int_t n = 9;
994 +  Double_t x[9] = {205,255,305,355,405,455,505,555,605};
995 +  Double_t yobs[9] = {330,330,310,300,300,270,250,240,210};
996 +  Double_t yexp[9] = {320,320,300,290,280,250,240,230,210};
997 +  Double_t yexpp[9] = {350,340,330,320,310,290,260,250,230};
998 +  Double_t yexpn[9] = {300,300,290,280,260,240,230,200,190};
999 +  Double_t y[9];
1000 +  for (int i=0;i<n;i++) {
1001 +    if (mode==0) y[i] = yobs[i];
1002 +    if (mode==1) y[i] = yexp[i];
1003 +    if (mode==2) y[i] = yexpp[i];
1004 +    if (mode==3) y[i] = yexpn[i];
1005 +  }
1006 +  TGraph* gr = new TGraph(n,x,y);
1007 +  gr->SetLineWidth(2);
1008 +  if (mode==1) gr->SetLineStyle(2);
1009 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
1010 +  else
1011 +    gr->SetLineColor(2);
1012 +  return gr;
1013 + }
1014 +
1015 + TGraph* Jim_ht_tb50(int mode){
1016 +  Int_t n = 9;
1017 +  Double_t x[9] = {205,255,305,355,405,455,505,555,605};
1018 +  Double_t yobs[9] = {300,290,280,280,260,250,230,220,220};
1019 +  Double_t yexp[9] = {300,290,280,280,260,250,240,230,220};
1020 +  Double_t yexpp[9] = {320,310,300,290,290,270,260,250,240};
1021 +  Double_t yexpn[9] = {280,270,270,260,250,240,230,220,210};
1022 +  Double_t y[10];
1023 +  for (int i=0;i<n;i++) {
1024 +    if (mode==0) y[i] = yobs[i];
1025 +    if (mode==1) y[i] = yexp[i];
1026 +    if (mode==2) y[i] = yexpp[i];
1027 +    if (mode==3) y[i] = yexpn[i];
1028 +  }
1029 +  TGraph* gr = new TGraph(n,x,y);
1030 +  gr->SetLineWidth(2);
1031 +  if (mode==1) gr->SetLineStyle(2);
1032 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
1033 +  else
1034 +    gr->SetLineColor(2);
1035 +  return gr;
1036 + }
1037 +
1038 + TGraph* Jim_mht_tb10(int mode){
1039 +  Int_t n = 20;
1040 +  Double_t x[20] = {15,65,115,165,215,265,315,365,415,465,515,565,615,665,715,765,815,865,915,965};
1041 +  Double_t yobs[20] = {330,340,330,330,330,320,310,280,280,260,240,230,220,220,210,190,190,180,180,180};
1042 +  Double_t yexp[20] = {330,320,320,320,320,310,300,280,270,250,240,220,220,200,190,190,180,160,170,160};
1043 +  Double_t yexpp[20] = {330,340,350,340,330,330,330,310,300,280,270,240,240,230,220,210,200,180,190,180};
1044 +  Double_t yexpn[20] = {290,280,310,300,300,290,280,270,250,240,220,210,200,190,160,170,160,150,150,140};
1045 +  Double_t y[20];
1046 +  for (int i=0;i<n;i++) {
1047 +    if (mode==0) y[i] = yobs[i];
1048 +    if (mode==1) y[i] = yexp[i];
1049 +    if (mode==2) y[i] = yexpp[i];
1050 +    if (mode==3) y[i] = yexpn[i];
1051 +  }
1052 +  TGraph* gr = new TGraph(n,x,y);
1053 +  gr->SetLineWidth(2);
1054 +  if (mode==1) gr->SetLineStyle(2);
1055 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
1056 +  else
1057 +    gr->SetLineColor(2);
1058 +  return gr;
1059 + }
1060 +
1061 + TGraph* Jim_ht_tb10(int mode){
1062 +  Int_t n = 20;
1063 +  Double_t x[20] = {15,65,115,165,215,265,315,365,415,465,515,565,615,665,715,765,815,865,915,965};
1064 +  Double_t yobs[20] = {290,280,300,290,300,290,280,270,250,250,240,230,220,220,210,190,200,180,190,180};
1065 +  Double_t yexp[20] = {290,280,290,300,300,290,280,270,250,250,240,240,220,220,210,190,200,180,190,180};
1066 +  Double_t yexpp[20] = {330,320,310,310,310,310,300,280,280,260,260,250,240,230,220,220,210,210,200,190};
1067 +  Double_t yexpn[20] = {290,280,280,280,280,280,270,260,240,240,230,220,200,200,190,190,180,180,170,170};
1068 +  Double_t y[20];
1069 +  for (int i=0;i<n;i++) {
1070 +    if (mode==0) y[i] = yobs[i];
1071 +    if (mode==1) y[i] = yexp[i];
1072 +    if (mode==2) y[i] = yexpp[i];
1073 +    if (mode==3) y[i] = yexpn[i];
1074 +  }
1075 +  TGraph* gr = new TGraph(n,x,y);
1076 +  gr->SetLineWidth(2);
1077 +  if (mode==1) gr->SetLineStyle(2);
1078 +  if (mode>2) {gr->SetFillColor(8); gr->SetLineColor(8);}
1079 +  else
1080 +    gr->SetLineColor(2);
1081 +  return gr;
1082 + }
1083 +
1084 +
1085 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines