#include "thdm.h" #include #include #include #include #include #include #include using namespace std; void xsvsm(double cba, int type, int tb=10) { thdm t; TGraph2D* width = new TGraph2D(100); width->SetTitle("; m_{H};tan#beta;#sigma * BR"); width->SetDirectory(0); int ipt(0); double epsilon(0.00001); while (t.next()) { //std::cout << t.mH << std::endl; if (t.type == type && // mH == mA == mCh fabs(t.mA-t.mH) < epsilon && fabs(t.mH-t.mCh) < epsilon && // mass t.mH < 1000 + epsilon && // cba/tanb t.cosba() > cba-epsilon && t.cosba() < cba+epsilon && t.tanb < tb+epsilon && t.tanb > 0.5-epsilon // theory constraints status // && t.status == 0 ){ width->SetPoint(ipt++, t.mH,t.tanb,(t.xsec_H_gg + t.xsec_H_VBF + t.xsec_H_bb) * t.br_H_hh); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#sigma(ggH + VBFH + bbH) * BR(hh) #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, cos(#beta-#alpha)=%.1f",type,cba)); TString fn = Form("hh_xsect_mH_vs_tanb_type%d_cba_%.1f_tanb_%d",type, cba, tb); TCanvas* canvas = new TCanvas("","",800,600); gStyle->SetPaintTextFormat(".1f"); //gStyle->SetPalette(4,0); width->SetMarkerSize(0.7); width->Draw("COLZ"); width->Draw("TEXT SAME"); gPad->SetLogy(true); gPad->RedrawAxis(); t.label->Draw(); canvas->SaveAs("plots/"+fn+".eps"); canvas->Print("plots/"+fn+".png"); delete canvas; } void xs(int m , int type, int tb=10) { thdm t; TGraph2D* width = new TGraph2D(100); width->SetTitle("; cos(#beta-#alpha);tan#beta;#sigma * BR"); width->SetDirectory(0); int ipt(0); double epsilon(0.00001); while (t.next()) { //std::cout << t.mH << std::endl; if (t.type == type && // mH == mA == mCh fabs(t.mA-t.mH) < epsilon && fabs(t.mH-t.mCh) < epsilon && // mass fabs(t.mH-m) < epsilon && // cba/tanb fabs(t.cosba()) < 0.99+epsilon && t.tanb < tb+epsilon && t.tanb > 0.5-epsilon // theory constraints status // && t.status == 0 ){ width->SetPoint(ipt++, t.cosba(),t.tanb,(t.xsec_H_gg /*+ t.xsec_H_VBF + t.xsec_H_bb*/) * t.br_H_hh); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#sigma_{H} * BR(hh) #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, m_{H}=%d",type,m)); TString fn = Form("hh_xsect_cba_vs_tanb_type%d_cba_%d_tanb_%d",type, m, tb); TCanvas* canvas = new TCanvas("","",800,600); gStyle->SetPaintTextFormat(".1f"); //gStyle->SetPalette(4,0); width->SetMarkerSize(0.7); width->Draw("COLZ"); width->Draw("TEXT SAME"); gPad->SetLogy(true); gPad->RedrawAxis(); t.label->Draw(); canvas->SaveAs("plots/"+fn+".eps"); canvas->Print("plots/"+fn+".png"); delete canvas; } int main() { // xsvsm(0.1, 1, 50); // xsvsm(-0.1, 1, 50); // xsvsm(0.1, 2, 50); // xsvsm(-0.1, 2, 50); xsvsm(0.2, 1, 20); xsvsm(-0.2, 1, 20); xsvsm(0.2, 2, 20); xsvsm(-0.2, 2, 20); xs(300, 1, 20); xs(300, 2, 20); xs(400, 1, 20); xs(400, 2, 20); xs(500, 1, 20); xs(500, 2, 20); }