#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_{|}/m_{|}[%]"); 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.mA-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_A/t.mA * 100); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#Gamma_{A}/m_{A}[%] #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, m_{A}=%d",type,m)); TString fn = Form("widthzh_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"); gPad->SetLogy(true); canvas->SaveAs("plots/"+fn+".log.eps"); canvas->Print("plots/"+fn+".log.png"); delete canvas; } void widthvsm(double cba, int type, int tb=50) { thdm t; TGraph2D* width = new TGraph2D(100); width->SetTitle("; m_{A};tan#beta;#Gamma_{A}/m_{A}[%]"); 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.mA < 800 + 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.mA,t.tanb,t.width_A/t.mA * 100); } } std::cout << "Plotting ..." << std::endl; t.label->AddText(Form("#Gamma_{A}/m_{A}[%] #bf{#it{ATLAS}} Internal, SusHi+2HDMC, Type %d, cos(#beta-#alpha)=%.1f",type,cba)); TString fn = Form("widthzh_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(600, 1, 50); width(600, 2, 50); width(500, 1, 50); width(500, 2, 50); width(400, 1, 50); width(400, 2, 50); width(300, 1, 50); width(300, 2, 50); // width(200, 1, 10); // width(200, 2, 10); // width(200, 3, 10); // width(200, 4, 10); }