diff --git a/CommonSelectors.py b/CommonSelectors.py index 4cda58e..a0ac4b1 100644 --- a/CommonSelectors.py +++ b/CommonSelectors.py @@ -1,11 +1,6 @@ import awkward as ak from pocket_coffea.lib.cut_definition import Cut -def CvsLsorted(jets, ctag): - # This returns Jets sorted by CvL score (or other tagger defined in params/ctagging.yaml ) - return jets[ak.argsort(jets[ctag["tagger"]], axis=1, ascending=False)] - - def diLepton(events, params, year, sample, **kwargs): # Masks for same-flavor (SF) and opposite-sign (OS) diff --git a/cfg_VHcc_WLNu.py b/cfg_VHcc_WLNu.py index 1bde46d..be7b61f 100644 --- a/cfg_VHcc_WLNu.py +++ b/cfg_VHcc_WLNu.py @@ -1,6 +1,7 @@ from pocket_coffea.utils.configurator import Configurator from pocket_coffea.lib.cut_definition import Cut from pocket_coffea.lib.cut_functions import get_nObj_min, get_HLTsel +from pocket_coffea.lib.cut_functions import get_nPVgood, goldenJson, eventFlags from pocket_coffea.parameters.cuts import passthrough from pocket_coffea.parameters.histograms import * import workflow_VHcc @@ -118,7 +119,8 @@ workflow = VHccBaseProcessor, skim = [get_HLTsel(primaryDatasets=["SingleMuon","SingleEle"]), - get_nObj_min(3, 20., "Jet")], # in default jet collection there are leptons. So we ask for 1lep+2jets=3Jet objects + get_nObj_min(3, 20., "Jet"), + get_nPVgood(1), eventFlags, goldenJson], # in default jet collection there are leptons. So we ask for 1lep+2jets=3Jet objects #preselections = [onelep_plus_met], preselections = [lep_met_2jets], diff --git a/cfg_VHcc_ZLL.py b/cfg_VHcc_ZLL.py index fa2e95f..66e29e7 100644 --- a/cfg_VHcc_ZLL.py +++ b/cfg_VHcc_ZLL.py @@ -1,6 +1,7 @@ from pocket_coffea.utils.configurator import Configurator from pocket_coffea.lib.cut_definition import Cut from pocket_coffea.lib.cut_functions import get_nObj_min, get_HLTsel +from pocket_coffea.lib.cut_functions import get_nPVgood, goldenJson, eventFlags from pocket_coffea.parameters.cuts import passthrough from pocket_coffea.parameters.histograms import * from pocket_coffea.lib.weights.common.common import common_weights @@ -110,7 +111,8 @@ #skim = [get_HLTsel(primaryDatasets=["SingleMuon","SingleEle"]), skim = [get_HLTsel(primaryDatasets=["DoubleMuon","DoubleEle"]), - get_nObj_min(4, 18., "Jet")], + get_nObj_min(4, 18., "Jet"), + get_nPVgood(1), eventFlags, goldenJson], preselections = [ll_2j], categories = { diff --git a/cfg_VHcc_ZNuNu.py b/cfg_VHcc_ZNuNu.py index ea4963f..723dc9a 100644 --- a/cfg_VHcc_ZNuNu.py +++ b/cfg_VHcc_ZNuNu.py @@ -1,6 +1,7 @@ from pocket_coffea.utils.configurator import Configurator from pocket_coffea.lib.cut_definition import Cut from pocket_coffea.lib.cut_functions import get_nObj_min, get_HLTsel +from pocket_coffea.lib.cut_functions import get_nPVgood, goldenJson, eventFlags from pocket_coffea.parameters.cuts import passthrough from pocket_coffea.parameters.histograms import * import workflow_VHcc @@ -115,7 +116,8 @@ workflow = VHccBaseProcessor, skim = [get_HLTsel(primaryDatasets=["MET"]), - get_nObj_min(2, 32., "Jet")], + get_nObj_min(2, 32., "Jet"), + get_nPVgood(1), eventFlags, goldenJson], preselections = [met_2jets_0lep],