ra4_macros
bede988c286599a3a84b77a4d788ac0a971e89f9
|
#include "scatter_mj_mt.hpp"
#include <cstdlib>
#include <iostream>
#include <string>
#include <sstream>
#include <set>
#include <vector>
#include <unistd.h>
#include <getopt.h>
#include "TColor.h"
#include "TPaveText.h"
#include "TMath.h"
#include "TGraph.h"
#include "TH2D.h"
#include "TCanvas.h"
#include "TLine.h"
#include "TLegend.h"
#include "TRandom3.h"
#include "TError.h"
#include "TSystem.h"
#include "small_tree_quick.hpp"
#include "timer.hpp"
#include "styles.hpp"
#include "utilities.hpp"
#include "utilities_macros.hpp"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{scatter_mj_mt.cxx} | |
Functions | |
TColor | c_tt_2l (1006, 86/255., 160/255., 211/255.) |
TColor | c_tt_1l (1000, 1/255., 57/255., 166/255.) |
int | main (int argc, char *argv[]) |
set< size_t > | GetRandomIndices (small_tree_quick &st, double norm, TRandom3 &rand3) |
void | Process (small_tree_quick &st, TGraph &g, TGraph &g_full, int color, int marker, int size, const set< size_t > &indices, int nleps) |
string | GetLabel (const string &str, double rho) |
void | GetOptions (int argc, char *argv[]) |
void | SetStyle (TPaveText &pt) |
Variables | |
double | anonymous_namespace{scatter_mj_mt.cxx}::met_min = 200. |
double | anonymous_namespace{scatter_mj_mt.cxx}::met_max = 0. |
int | anonymous_namespace{scatter_mj_mt.cxx}::njets_min = 7 |
int | anonymous_namespace{scatter_mj_mt.cxx}::njets_max = 0 |
int | anonymous_namespace{scatter_mj_mt.cxx}::seed = 3239 |
bool | anonymous_namespace{scatter_mj_mt.cxx}::merge_ttbar = false |
bool | anonymous_namespace{scatter_mj_mt.cxx}::compressed = false |
bool | anonymous_namespace{scatter_mj_mt.cxx}::no_signal = false |
bool | anonymous_namespace{scatter_mj_mt.cxx}::full_stats = false |
TColor c_tt_1l | ( | 1000 | , |
1/ | 255., | ||
57/ | 255., | ||
166/ | 255. | ||
) |
TColor c_tt_2l | ( | 1006 | , |
86/ | 255., | ||
160/ | 255., | ||
211/ | 255. | ||
) |
string GetLabel | ( | const string & | str, |
double | rho | ||
) |
void GetOptions | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 245 of file scatter_mj_mt.cxx.
References anonymous_namespace{scatter_mj_mt.cxx}::compressed, anonymous_namespace{scatter_mj_mt.cxx}::full_stats, anonymous_namespace{scatter_mj_mt.cxx}::merge_ttbar, anonymous_namespace{scatter_mj_mt.cxx}::met_max, anonymous_namespace{scatter_mj_mt.cxx}::met_min, anonymous_namespace{scatter_mj_mt.cxx}::njets_max, anonymous_namespace{scatter_mj_mt.cxx}::njets_min, anonymous_namespace{scatter_mj_mt.cxx}::no_signal, and anonymous_namespace{scatter_mj_mt.cxx}::seed.
Referenced by main().
set<size_t> GetRandomIndices | ( | small_tree_quick & | st, |
double | norm, | ||
TRandom3 & | rand3 | ||
) |
Definition at line 177 of file scatter_mj_mt.cxx.
References small_tree::GetEntries(), small_tree_quick::GetEntry(), and small_tree::weight().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 50 of file scatter_mj_mt.cxx.
References efficiency_map::c, anonymous_namespace{scatter_mj_mt.cxx}::compressed, anonymous_namespace{scatter_mj_mt.cxx}::full_stats, GetLabel(), GetOptions(), GetRandomIndices(), anonymous_namespace{scatter_mj_mt.cxx}::merge_ttbar, anonymous_namespace{scatter_mj_mt.cxx}::met_max, anonymous_namespace{scatter_mj_mt.cxx}::met_min, anonymous_namespace{scatter_mj_mt.cxx}::njets_max, anonymous_namespace{scatter_mj_mt.cxx}::njets_min, anonymous_namespace{scatter_mj_mt.cxx}::no_signal, efficiency_map::outname, styles::PadBottomMargin, styles::PadLeftMargin, styles::PadRightMargin, styles::PadTopMargin, Process(), anonymous_namespace{scatter_mj_mt.cxx}::seed, styles::setDefaultStyle(), and SetStyle().
void Process | ( | small_tree_quick & | st, |
TGraph & | g, | ||
TGraph & | g_full, | ||
int | color, | ||
int | marker, | ||
int | size, | ||
const set< size_t > & | indices, | ||
int | nleps | ||
) |
Definition at line 194 of file scatter_mj_mt.cxx.
References AddPoint(), f, small_tree::GetEntries(), small_tree_quick::GetEntry(), small_tree::ht(), Timer::Iterate(), small_tree::met(), anonymous_namespace{scatter_mj_mt.cxx}::met_max, anonymous_namespace{scatter_mj_mt.cxx}::met_min, small_tree_quick::mj(), small_tree::mt(), small_tree::nbm(), small_tree::nels(), small_tree::njets(), anonymous_namespace{scatter_mj_mt.cxx}::njets_max, anonymous_namespace{scatter_mj_mt.cxx}::njets_min, small_tree::nmus(), small_tree_quick::ntruleps(), and Timer::Start().
Referenced by main().
void SetStyle | ( | TPaveText & | pt | ) |
Definition at line 294 of file scatter_mj_mt.cxx.
Referenced by main().