ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
Namespaces | Functions | Variables
plot_isr.cxx File Reference
#include <cmath>
#include <algorithm>
#include "TError.h"
#include "TVector2.h"
#include "TString.h"
#include "core/plot_maker.hpp"
#include "core/plot_opt.hpp"
#include "core/palette.hpp"
#include "core/hist1d.hpp"
#include "core/event_scan.hpp"
#include "core/utilities.hpp"

Go to the source code of this file.

Namespaces

 anonymous_namespace{plot_isr.cxx}
 

Functions

void addSlices (PlotMaker &pm, const vector< double > slices, NamedFunc svar, const vector< double > xbins, NamedFunc xvar, string xlabel, const NamedFunc &baseline, const NamedFunc &weight, const vector< shared_ptr< Process > > &proc, const vector< PlotOpt > &plot_types, int tag_digits=0)
 
bool isRelIsoEl (const Baby &b, size_t iel)
 
NamedFunc::ScalarType nRelIsoEls (const Baby &b)
 
NamedFunc::ScalarType maxRelIsoElsPt (const Baby &b)
 
bool isRelIsoMu (const Baby &b, size_t imu)
 
NamedFunc::ScalarType nRelIsoMus (const Baby &b)
 
NamedFunc::ScalarType maxRelIsoMusPt (const Baby &b)
 
bool isGoodJet (const Baby &b, size_t ijet)
 
NamedFunc::VectorType isrJetsPt (const Baby &b, float ptThresh=30.)
 
NamedFunc::ScalarType isrSystemPt (const Baby &b)
 
NamedFunc::ScalarType nJetsWeights_ttisr (const Baby &b, bool use_baby_nisr)
 
NamedFunc::ScalarType nJetsWeights_visr (const Baby &b)
 
int main ()
 

Variables

const string anonymous_namespace{plot_isr.cxx}::isrtype = "ttisr"
 
bool anonymous_namespace{plot_isr.cxx}::do_tt1l = false
 
double anonymous_namespace{plot_isr.cxx}::lumi = 4.34
 
bool anonymous_namespace{plot_isr.cxx}::single_thread = false
 
double anonymous_namespace{plot_isr.cxx}::CSVMedium = 0.800
 

Function Documentation

void addSlices ( PlotMaker pm,
const vector< double >  slices,
NamedFunc  svar,
const vector< double >  xbins,
NamedFunc  xvar,
string  xlabel,
const NamedFunc baseline,
const NamedFunc weight,
const vector< shared_ptr< Process > > &  proc,
const vector< PlotOpt > &  plot_types,
int  tag_digits = 0 
)
bool isGoodJet ( const Baby b,
size_t  ijet 
)

Definition at line 342 of file plot_isr.cxx.

References Baby::jets_eta(), Baby::jets_islep(), and Baby::jets_pt().

Referenced by isrJetsPt().

bool isRelIsoEl ( const Baby b,
size_t  iel 
)

Definition at line 294 of file plot_isr.cxx.

References Baby::els_pt(), Baby::els_reliso(), Baby::els_sceta(), and Baby::els_tight().

Referenced by maxRelIsoElsPt(), and nRelIsoEls().

bool isRelIsoMu ( const Baby b,
size_t  imu 
)

Definition at line 318 of file plot_isr.cxx.

References Baby::mus_eta(), Baby::mus_pt(), Baby::mus_reliso(), and Baby::mus_tight().

Referenced by maxRelIsoMusPt(), and nRelIsoMus().

NamedFunc::VectorType isrJetsPt ( const Baby b,
float  ptThresh = 30. 
)
NamedFunc::ScalarType isrSystemPt ( const Baby b)

Definition at line 359 of file plot_isr.cxx.

References anonymous_namespace{plot_isr.cxx}::isrtype, Baby::jetsys_nob_pt(), and Baby::jetsys_pt().

Referenced by main().

int main ( )
NamedFunc::ScalarType maxRelIsoElsPt ( const Baby b)

Definition at line 310 of file plot_isr.cxx.

References Baby::els_pt(), and isRelIsoEl().

Referenced by main().

NamedFunc::ScalarType maxRelIsoMusPt ( const Baby b)

Definition at line 334 of file plot_isr.cxx.

References isRelIsoMu(), and Baby::mus_pt().

Referenced by main().

NamedFunc::ScalarType nJetsWeights_ttisr ( const Baby b,
bool  use_baby_nisr 
)
NamedFunc::ScalarType nJetsWeights_visr ( const Baby b)

Definition at line 385 of file plot_isr.cxx.

References Baby::eff_trig(), Baby::njets(), Baby::ntrupv(), Baby::SampleType(), Baby::w_toppt(), and Baby::weight().

Referenced by main().

NamedFunc::ScalarType nRelIsoEls ( const Baby b)

Definition at line 302 of file plot_isr.cxx.

References Baby::els_pt(), and isRelIsoEl().

Referenced by main().

NamedFunc::ScalarType nRelIsoMus ( const Baby b)

Definition at line 326 of file plot_isr.cxx.

References isRelIsoMu(), and Baby::mus_pt().

Referenced by main().