higgs_dna.scripts package

Subpackages

Submodules

higgs_dna.scripts.Zpt_rwgt_json module

higgs_dna.scripts.btagging_eff module

higgs_dna.scripts.btagging_eff.create_hadron_flavour_correction(hadron_data, pt_edges)[source]
higgs_dna.scripts.btagging_eff.extract_eras(paths)[source]

Extracts the list of available eras from a list of paths. An era is defined as the last string separated by the underscore (_) in the last element of the path (after the final slash).

Args:

paths (list): List of paths (strings).

Returns:

list: A list of unique eras extracted from the paths.

higgs_dna.scripts.btagging_eff.get_fetcher_args() Namespace[source]
higgs_dna.scripts.btagging_eff.group_by_eras_dict(paths)[source]

Groups the paths into a dictionary by eras. An era is defined as the last string separated by the underscore in the last element of the path.

Args:

paths (list): List of paths (strings).

Returns:

dict: A dictionary where keys are eras and values are lists of paths belonging to those eras.

higgs_dna.scripts.btagging_eff.main()[source]
higgs_dna.scripts.btagging_eff.safe_mkdir(path)[source]

higgs_dna.scripts.categorisation module

higgs_dna.scripts.get_unprocessed_files module

higgs_dna.scripts.make_correction_json module

higgs_dna.scripts.make_correction_json.main()[source]

higgs_dna.scripts.pull_files module

higgs_dna.scripts.pull_files.copy_xrdcp(logger, target_name, ikey, from_path, to_path)[source]
higgs_dna.scripts.pull_files.fetch_file(target_name, logger, from_to_dict, use_xrdcp=False, type='url')[source]
higgs_dna.scripts.pull_files.get_Flow_files(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_HHbbgg_btag_WPs_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_HHbbgg_weight_interference_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_btag_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_cqr_weights(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_ctag_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_diphoton_id_mva_weights(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_eveto_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_fnuf_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_goldenjson(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_hgg_photon_id_mva_weights(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_hpc_bdt_weights(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_jec_files(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_jer_files(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_jetmet_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_loose_mva_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_lowmass_diphotonmva_model(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_lowmass_dykiller_model(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_mass_decorrelation_CDF(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_material_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_muon_SFs(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_muon_scale_smearing(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_photonid_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_pileup(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_presel_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_scale_and_smearing(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_scale_and_smearing_IJazZ(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_shower_shape_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.get_trigger_json(logger, target_dir, use_xrdcp=False)[source]
higgs_dna.scripts.pull_files.main()[source]
higgs_dna.scripts.pull_files.unzip_gz_with_gunzip(logger, input_path, output_path=None)[source]

higgs_dna.scripts.run_analysis module

class higgs_dna.scripts.run_analysis.DependencyInstaller(dependencies: List[str])[source]

Bases: WorkerPlugin

setup(worker: Worker)[source]

Run when the plugin is attached to a worker. This happens when the plugin is registered and attached to existing workers, or when a worker is created after the plugin has been registered.

higgs_dna.scripts.run_analysis.check_port(port)[source]
higgs_dna.scripts.run_analysis.main()[source]
higgs_dna.scripts.run_analysis.run_executor(_args, executor, sample_dict, processor_instance)[source]
higgs_dna.scripts.run_analysis.validate(file)[source]

Module contents