|
ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
#include <fstream>#include <iostream>#include <vector>#include <ctime>#include <iomanip>#include <chrono>#include <unistd.h>#include <stdlib.h>#include <getopt.h>#include "TError.h"#include "TCanvas.h"#include "TGraphAsymmErrors.h"#include "TH1D.h"#include "TLine.h"#include "TLatex.h"#include "TLegend.h"#include "core/utilities.hpp"#include "core/baby.hpp"#include "core/process.hpp"#include "core/named_func.hpp"#include "core/plot_maker.hpp"#include "core/palette.hpp"#include "core/table.hpp"#include "core/styles.hpp"#include "core/plot_opt.hpp"#include "core/functions.hpp"Go to the source code of this file.
Classes | |
| struct | anonymous_namespace{plot_ratios.cxx}::oneplot |
Namespaces | |
| anonymous_namespace{plot_ratios.cxx} | |
Functions | |
| void | plotRatio (vector< vector< vector< GammaParams > > > &allyields, oneplot &plotdef, vector< vector< vector< int > > > &indices, vector< TString > &leglabels) |
| void | printDebug (vector< vector< TString > > &allcuts, vector< vector< vector< GammaParams > > > &allyields, TString baseline) |
| void | GetOptions (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
Variables | |
| bool | anonymous_namespace{plot_ratios.cxx}::debug = false |
| TString | anonymous_namespace{plot_ratios.cxx}::skim = "both" |
| float | anonymous_namespace{plot_ratios.cxx}::lumi =40. |
| NamedFunc | offshellw ("offshellw",[](const Baby &b) -> NamedFunc::ScalarType{for(unsigned i(0);i< b.mc_pt() ->size();i++){if(abs(b.mc_id() ->at(i))!=24) continue;if(b.mc_mass() ->at(i) > 140.){return 1;}}return 0;}) |
| void GetOptions | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 439 of file plot_ratios.cxx.
References anonymous_namespace{plot_ratios.cxx}::debug, anonymous_namespace{plot_ratios.cxx}::lumi, and anonymous_namespace{plot_ratios.cxx}::skim.
Referenced by main(), and plotRatio().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 205 of file plot_ratios.cxx.
References Process::background, Table::BackgroundYield(), anonymous_namespace{plot_ratios.cxx}::bkg, Contains(), anonymous_namespace{plot_ratios.cxx}::debug, execute(), PlotMaker::Figures(), GetOptions(), HoursMinSec(), anonymous_namespace{plot_ratios.cxx}::lumi, PlotMaker::MakePlots(), PlotMaker::min_print_, anonymous_namespace{plot_ratios.cxx}::other, plotRatio(), printDebug(), PlotMaker::Push(), anonymous_namespace{plot_ratios.cxx}::r1, anonymous_namespace{plot_ratios.cxx}::r2, anonymous_namespace{plot_ratios.cxx}::r3, anonymous_namespace{plot_ratios.cxx}::r4, anonymous_namespace{plot_ratios.cxx}::skim, anonymous_namespace{plot_ratios.cxx}::tt1l, anonymous_namespace{plot_ratios.cxx}::tt2l, and Table::Yield().
| void plotRatio | ( | vector< vector< vector< GammaParams > > > & | allyields, |
| oneplot & | plotdef, | ||
| vector< vector< vector< int > > > & | indices, | ||
| vector< TString > & | leglabels | ||
| ) |
Definition at line 60 of file plot_ratios.cxx.
References calcKappa(), CodeToPlainText(), CodeToRootTex(), GetOptions(), PlotOpt::LeftMargin(), PlotOpt::LegendEntryHeight(), printDebug(), anonymous_namespace{plot_ratios.cxx}::r1, anonymous_namespace{plot_ratios.cxx}::r2, anonymous_namespace{plot_ratios.cxx}::r3, anonymous_namespace{plot_ratios.cxx}::r4, PlotOpt::RightMargin(), setPlotStyle(), and PlotOpt::TopMargin().
Referenced by main().
| void printDebug | ( | vector< vector< TString > > & | allcuts, |
| vector< vector< vector< GammaParams > > > & | allyields, | ||
| TString | baseline | ||
| ) |
Definition at line 420 of file plot_ratios.cxx.
References anonymous_namespace{plot_ratios.cxx}::bkg, anonymous_namespace{plot_ratios.cxx}::other, RoundNumber(), anonymous_namespace{plot_ratios.cxx}::tt1l, and anonymous_namespace{plot_ratios.cxx}::tt2l.
Referenced by main(), and plotRatio().
| NamedFunc offshellw("offshellw", [](const Baby &b) -> NamedFunc::ScalarType{for(unsigned i(0);i< b.mc_pt() ->size();i++){if(abs(b.mc_id() ->at(i))!=24) continue;if(b.mc_mass() ->at(i) > 140.){return 1;}}return 0;}) |
1.8.11