9 #include "core/baby.hpp" 21 gErrorIgnoreLevel = 6000;
25 string trig_skim_mc =
"/net/cms27/cms27r0/babymaker/2016_04_29/mc/merged_baseline/";
26 string trig_skim_data =
"/net/cms27/cms27r0/babymaker/2016_04_29/mc/T1tttt/skim_baseline/";
28 Palette colors(
"txt/colors.txt",
"default");
31 {trig_skim_mc+
"*_TTJets*Lept*.root", trig_skim_mc+
"*_TTJets_HT*.root"},
34 auto t1tttt_nc = Process::MakeShared<Baby_full>(
"T1tttt(1800,200)",
Process::Type::signal, colors(
"t1tttt"),
35 {trig_skim_data+
"*SMS-T1tttt_mGluino-1800_mLSP-200_*.root"});
36 auto t1tttt_c = Process::MakeShared<Baby_full>(
"T1tttt(1400,1000)",
Process::Type::signal, colors(
"t1tttt"),
37 {trig_skim_data+
"*SMS-T1tttt_mGluino-1400_mLSP-1000_*.root"});
38 t1tttt_c->SetLineStyle(2);
40 vector<shared_ptr<Process> > full_trig_skim = {t1tttt_nc, t1tttt_c, tt};
42 PlotOpt log_lumi(
"txt/plot_styles.txt",
"CMSPaper");
43 log_lumi.
Title(TitleType::preliminary)
45 .
YAxis(YAxisType::log)
46 .
Stack(StackType::data_norm)
52 PlotOpt lin_shapes = log_shapes().
YAxis(YAxisType::linear);
53 PlotOpt log_lumi_info = log_lumi().
Title(TitleType::info);
54 PlotOpt lin_lumi_info = lin_lumi().
Title(TitleType::info);
55 PlotOpt log_shapes_info = log_shapes().
Title(TitleType::info);
56 PlotOpt lin_shapes_info = lin_shapes().
Title(TitleType::info);
57 vector<PlotOpt> all_plot_types = {log_lumi, lin_lumi, log_shapes, lin_shapes,
58 log_lumi_info, lin_lumi_info, log_shapes_info, lin_shapes_info};
61 pm.
Push<
Hist1D>(
Axis(30, 0., 1500.,
"mj",
"M_{J}^{R=1.2} [GeV]", {250., 400.}),
62 "nleps==1&&ht>500&&met>200&&njets>=6&&nbm>=1", full_trig_skim, all_plot_types);
63 pm.
Push<
Hist1D>(
Axis(30, 0., 1500.,
"mj14",
"M_{J}^{R=1.4} [GeV]", {250., 400.}),
64 "nleps==1&&ht>500&&met>200&&njets>=6&&nbm>=1", full_trig_skim, all_plot_types);
PlotOpt & Stack(PlotOptTypes::StackType stack_type)
PlotOpt & FileExtensions(const std::set< std::string > &file_extensions)
PlotOpt & YAxis(PlotOptTypes::YAxisType y_axis_type)
FigureType & Push(Args &&...args)
Organizes efficient production of plots with single loop over each process.
PlotOpt & Bottom(PlotOptTypes::BottomType bottom_type)
PlotOpt & ShowBackgroundError(bool show_background_error)
A full 1D plot with stacked/overlayed histograms.
void MakePlots(double luminosity, const std::string &subdir="")
Prints all added plots with given luminosity.
PlotOpt & Title(PlotOptTypes::TitleType title_type)
Loads colors from a text configuration file.