HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
embedding_plot_bib Namespace Reference

Functions

def plot_root_variable
 
def plot_iso_variable
 
def default_plot_root_variable
 
def plot_VV_variable
 
def ptflow_photon_histograms
 

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
string help = "Input directory [Default: %(default)s]"
 
tuple args = parser.parse_args()
 
list configs = []
 
 isocut = notargs.no_iso_cut
 
tuple decay_mode = str(args.decaymode)
 
 web_dir = args.www
 
 output_dir = args.output_dir
 
 input_dir = args.input_dir
 
string peakwidth = args.peakwidth+" GeV"
 
string binarea = "[0.01,0.02]"
 
list data_trackcleaned_cleaned_legend = [0.43,0.60,0.96,0.85]
 
list data_trackcleaned_cleaned_noratio_legend = [0.43,0.75,0.94,0.90]
 
list data_embedded_mirrored_cleaned_legend = [0.53,0.40,0.90,0.85]
 
list data_embedded_mirrored_legend = [0.53,0.50,0.90,0.85]
 
list data_embedded_mirrored_random_legend_upper_left = [0.21,0.55,0.60,0.90]
 
list data_embedded_mirrored_random_legend_upper_right = [0.52,0.55,0.91,0.90]
 
list data_embedded_mirrored_random_legend_lower_right = [0.52,0.20,0.91,0.55]
 
list data_embedded_mirrored_random_legend_lower_left = [0.21,0.20,0.60,0.55]
 
tuple selection_check_ZMass
 Vertex Refitting Check for Muon Embedding. More...
 
list default_variables
 
list iso_variables
 
list tau_iso_variables = [x for x in iso_variables if x[-2:]=="_2"]
 
dictionary plotting_dict = {}
 
list variables_to_plot = ["pt_1"]
 
tuple higgs_plotter = higgsplot.HiggsPlotter(list_of_config_dicts=configs, list_of_args_strings=[""],n_processes=args.n_processes)
 

Function Documentation

def embedding_plot_bib.default_plot_root_variable (   channel = ['mt'],
  variable = 'pt_1' 
)
def embedding_plot_bib.plot_iso_variable (   channel = ['mt'],
  variable = 'pt_1',
  x_bins = "30,
  decay_mode = "all",
  isocut = True 
)
def embedding_plot_bib.plot_root_variable (   channel = ['mt'],
  variable = 'pt_1',
  x_bins = "30,
  decay_mode = "all",
  isocut = True,
  xlabel = '' 
)
def embedding_plot_bib.plot_VV_variable (   channel = ['mt'],
  variable = 'pt_1',
  x_bins = "30,
  decay_mode = "all",
  isocut = True 
)
def embedding_plot_bib.ptflow_photon_histograms (   binarea = "[0.01,
  peakwidth = "10 GeV" 
)

Variable Documentation

tuple embedding_plot_bib.args = parser.parse_args()
string embedding_plot_bib.binarea = "[0.01,0.02]"
list embedding_plot_bib.configs = []
list embedding_plot_bib.data_embedded_mirrored_cleaned_legend = [0.53,0.40,0.90,0.85]
list embedding_plot_bib.data_embedded_mirrored_legend = [0.53,0.50,0.90,0.85]
list embedding_plot_bib.data_embedded_mirrored_random_legend_lower_left = [0.21,0.20,0.60,0.55]
list embedding_plot_bib.data_embedded_mirrored_random_legend_lower_right = [0.52,0.20,0.91,0.55]
list embedding_plot_bib.data_embedded_mirrored_random_legend_upper_left = [0.21,0.55,0.60,0.90]
list embedding_plot_bib.data_embedded_mirrored_random_legend_upper_right = [0.52,0.55,0.91,0.90]
list embedding_plot_bib.data_trackcleaned_cleaned_legend = [0.43,0.60,0.96,0.85]
list embedding_plot_bib.data_trackcleaned_cleaned_noratio_legend = [0.43,0.75,0.94,0.90]
tuple embedding_plot_bib.decay_mode = str(args.decaymode)
list embedding_plot_bib.default_variables
Initial value:
1 = [
2  "integral",
3  "pt_1", "eta_1", "phi_1", "m_1", "iso_1", "mt_1",
4  "pt_2", "eta_2", "phi_2", "m_2", "iso_2", "mt_2",
5  "pt_sv", "eta_sv", "phi_sv", "m_sv", "m_vis", "ptvis",
6  "met", "metphi", "metcov00", "metcov01", "metcov10", "metcov11",
7  "mvamet", "mvametphi", "mvacov00", "mvacov01", "mvacov10", "mvacov11",
8  "pZetaMissVis", "pzetamiss", "pzetavis",
9  "jpt_1", "jeta_1", "jphi_1",
10  "jpt_2", "jeta_2", "jphi_2",
11  "njetspt30", "mjj", "jdeta", "njetingap20", "njetingap",
12  "trigweight_1", "trigweight_2", "puweight",
13  "npv", "npu", "rho","nbtag",'genMatchedLep1LV.fCoordinates.fPt','genMatchedLep2LV.fCoordinates.fPt','genMatchedLep2LV.fCoordinates.fEta','genMatchedLep1LV.fCoordinates.fEta','genMatchedLep2LV.fCoordinates.fPhi','genMatchedLep1LV.fCoordinates.fPhi','triggerWeight_1','identificationWeight_1','trigweight_1'
14  ]
string embedding_plot_bib.help = "Input directory [Default: %(default)s]"
tuple embedding_plot_bib.higgs_plotter = higgsplot.HiggsPlotter(list_of_config_dicts=configs, list_of_args_strings=[""],n_processes=args.n_processes)
embedding_plot_bib.input_dir = args.input_dir
list embedding_plot_bib.iso_variables
embedding_plot_bib.isocut = notargs.no_iso_cut
tuple embedding_plot_bib.log = logging.getLogger(__name__)
embedding_plot_bib.output_dir = args.output_dir
tuple embedding_plot_bib.parser
Initial value:
1 = argparse.ArgumentParser(description="Make embedding plots.",
2  parents=[logger.loggingParser])
string embedding_plot_bib.peakwidth = args.peakwidth+" GeV"
dictionary embedding_plot_bib.plotting_dict = {}
tuple embedding_plot_bib.selection_check_ZMass
Initial value:
1 = pltcl.single_plot(
2  name = "selection_check_ZMass",
3  title = "",
4  x_expression = "ZMass",
5  x_bins = "50,20,120",
6  normalized_by_binwidth = False,
7  x_label = "m(#mu#mu) [GeV]",
8  y_label = "Events",
9  wwwfolder = web_dir,
10  legend =[0.3,0.3,0.65,0.7],
11  plot_type = "absolute",
12  subplot_denominator = 0,
13  subplot_numerators = [1,2],
14  y_subplot_lims = [0.85,1.15],
15  y_subplot_label = "Ratio",
16  plotlines = [DoubleMuonSelectedValidation, DoubleMuonEmbeddedValidation, DoubleMuonMirroredValidation]
17  )

Vertex Refitting Check for Muon Embedding.

list embedding_plot_bib.tau_iso_variables = [x for x in iso_variables if x[-2:]=="_2"]
embedding_plot_bib.variables_to_plot = ["pt_1"]
embedding_plot_bib.web_dir = args.www