#include "thdm.h" #include #include #include #include #include #include #include using namespace std; void width(int m, int type, int tb=50) { thdm t; TGraph2D* width = new TGraph2D(100); width->SetTitle("; cos(#beta-#alpha);tan#beta;#Gamma_{H}/m_{H}[%]"); width->SetDirectory(0); int ipt(0); double epsilon(0.00001); while (t.next()) { 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.width_H/t.mH * 100); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#Gamma_{H}/m_{H}[%] #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, m_{H}=%d",type,m)); TString fn = Form("width_cosba_vs_tanb_type%d_%d_tanb_%d",type, m, tb); TCanvas* canvas = new TCanvas("","",800,600); gPad->SetRightMargin(0.15); gPad->SetLogy(true); gStyle->SetPaintTextFormat(".0f"); //gStyle->SetPalette(4,0); width->SetMarkerSize(0.7); width->Draw("COLZ"); width->Draw("TEXT SAME"); gPad->RedrawAxis(); t.label->Draw(); canvas->SaveAs("plots/"+fn+".eps"); canvas->Print("plots/"+fn+".png"); delete canvas; } void widthvsm(double cba, int type, int tb=50) { thdm t; TGraph2D* width = new TGraph2D(100); width->SetTitle("; m_{H};tan#beta;#Gamma_{H}/m_{H}[%]"); width->SetDirectory(0); int ipt(0); double epsilon(0.00001); while (t.next()) { if (t.type == type && // mH == mA == mCh fabs(t.mA-t.mH) < epsilon && fabs(t.mH-t.mCh) < epsilon && // mass t.mH < 500 + 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.width_H/t.mH * 100); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#Gamma_{H}/m_{H}[%] #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, cos(#beta-#alpha)=%.1f",type,cba)); TString fn = Form("width_mH_vs_tanb_type%d_cba_%.1f_tanb_%d",type, cba, tb); TCanvas* canvas = new TCanvas("","",800,600); gPad->SetRightMargin(0.15); gStyle->SetPaintTextFormat(".0f"); //gStyle->SetPalette(4,0); width->SetMarkerSize(0.7); width->Draw("COLZ"); width->Draw("TEXT SAME"); gPad->RedrawAxis(); t.label->Draw(); canvas->SaveAs("plots/"+fn+".eps"); canvas->Print("plots/"+fn+".png"); delete canvas; } int main() { // width(300, 1); // width(300, 2); // width(200, 1); // width(200, 2); // widthvsm(0.2, 1, 10); // widthvsm(-0.2, 1, 10); // widthvsm(0.2, 2, 10); // widthvsm(-0.2, 2, 10); // widthvsm(0.1, 3, 10); // widthvsm(-0.1, 3, 10); // widthvsm(0.1, 4, 10); // widthvsm(-0.1, 4, 10); // width(500, 1, 50); // width(500, 2, 50); // width(400, 1, 50); // width(400, 2, 50); width(200, 1, 5); width(200, 2, 5); width(300, 1, 5); width(300, 2, 5); widthvsm(0.1, 1, 5); widthvsm(0.1, 1, 5); widthvsm(-0.1, 2, 5); widthvsm(-0.1, 2, 5); // width(200, 1, 10); // width(200, 2, 10); // width(200, 3, 10); // width(200, 4, 10); }