HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
makePlots_datacardsLFV.py File Reference

Namespaces

 makePlots_datacardsLFV
 

Functions

def makePlots_datacardsLFV.harry_do_your_job
 

Variables

tuple makePlots_datacardsLFV.log = logging.getLogger(__name__)
 
tuple makePlots_datacardsLFV.parser
 
string makePlots_datacardsLFV.help = "Input directory."
 
list makePlots_datacardsLFV.default = ["ZeroJet_LFV", "OneJet_LFV"]
 
tuple makePlots_datacardsLFV.args = parser.parse_args()
 
tuple makePlots_datacardsLFV.systematics_factory = systematics.SystematicsFactory()
 Delete old datacards. More...
 
list makePlots_datacardsLFV.plot_configs = []
 
list makePlots_datacardsLFV.output_files = []
 Hadd command for merging the tmp output files. More...
 
list makePlots_datacardsLFV.merged_output_files = []
 
list makePlots_datacardsLFV.hadd_commands = []
 
string makePlots_datacardsLFV.tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${SYSTEMATIC}_${ERA}"
 
string makePlots_datacardsLFV.input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${ERA}.root"
 
string makePlots_datacardsLFV.bkg_histogram_name_template = "${BIN}/${PROCESS}"
 
string makePlots_datacardsLFV.sig_histogram_name_template = "${BIN}/${PROCESS}"
 
string makePlots_datacardsLFV.bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}"
 
string makePlots_datacardsLFV.sig_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}"
 
list makePlots_datacardsLFV.datacard_filename_templates
 
string makePlots_datacardsLFV.output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root"
 
dictionary makePlots_datacardsLFV.categories
 Dictionary for categories with list of [path of file with optimized cuts, weight for numbers of jets]. More...
 
dictionary makePlots_datacardsLFV.control_regions
 Dictionary with control region with list of [process, weight]. More...
 
tuple makePlots_datacardsLFV.datacards = lfvdatacards.LFVDatacards(args.channel, args.signal, args.categories, control_regions, lnN_syst_enable = args.lnN_uncs, shape_syst_enable = args.shape_uncs, rate_param_enable = False)
 
tuple makePlots_datacardsLFV.cut_info = yaml.load(open(os.path.abspath(os.path.expandvars("$CMSSW_BASE/src/HiggsAnalysis/KITHiggsToTauTau/python/lfv/cuts.yaml")), "r"))
 Information about parameter and cuts for harry.py config. More...
 
tuple makePlots_datacardsLFV.parameter_info = yaml.load(open(os.path.abspath(os.path.expandvars("$CMSSW_BASE/src/HiggsAnalysis/KITHiggsToTauTau/python/lfv/parameter.yaml")), "r"))
 
tuple makePlots_datacardsLFV.list_of_samples_for_syst = datacards.get_samples_per_shape_systematic()
 
list makePlots_datacardsLFV.tmp_output_files = []
 
list makePlots_datacardsLFV.cut_strings = [parameter_info[param][4] for param in cut_info[categories[category][0]][channel].keys()]
 
string makePlots_datacardsLFV.weight = "*"
 Weight if BDT score is used for stastical anaylsis. More...
 
string makePlots_datacardsLFV.category = channel+"_"
 
tuple makePlots_datacardsLFV.nominal = (shape_systematic == "nominal")
 
list makePlots_datacardsLFV.samples = ["data"]
 Samples for control region. More...
 
string makePlots_datacardsLFV.systematic = "nominal"
 
 makePlots_datacardsLFV.histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template
 
list makePlots_datacardsLFV.base_values
 Define values to fill Harry Plotter config. More...
 
list makePlots_datacardsLFV.sample_values
 
list makePlots_datacardsLFV.datacard_values
 
tuple makePlots_datacardsLFV.config = configmaster.ConfigMaster(base_values, sample_values)
 Fill config with ConfigMaster and SystematicFactory. More...
 
tuple makePlots_datacardsLFV.systematics_settings = systematics_factory.get(shape_systematic)
 
tuple makePlots_datacardsLFV.tmp_output_file = os.path.join(args.output_dir, tmp_input_root_filename_template.replace("$", "").format(ANALYSIS="LFV", CHANNEL = channel,BIN= category,SYSTEMATIC=systematic, ERA="13TeV") + ".root")
 Do specific config change. More...
 
tuple makePlots_datacardsLFV.output_file = os.path.join(args.output_dir, input_root_filename_template.replace("$", "").format(ANALYSIS="LFV", CHANNEL = channel, BIN= category, ERA="13TeV"))
 File list with merged outputs. More...
 
tuple makePlots_datacardsLFV.pool = Pool(cpu_count())
 
dictionary makePlots_datacardsLFV.datacards_cbs = {}
 
dictionary makePlots_datacardsLFV.datacards_poi_ranges = {}
 
tuple makePlots_datacardsLFV.channels = cb.channel_set()
 
tuple makePlots_datacardsLFV.datacards_workspaces = datacards.text2workspace(datacards_cbs, n_processes=1)