Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update producers to use CorrectionManager #48

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions producers/electrons.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

ElectronPtCorrectionEmbedding = Producer(
name="ElectronPtCorrectionEmbedding",
call='physicsobject::electron::PtCorrection({df}, {output}, {input}, "{ele_energyscale_barrel}", "{ele_energyscale_endcap}","{embedding_electron_es_sf_file}", "{ele_ES_json_name}")',
call='physicsobject::electron::PtCorrection({df}, correctionManager, {output}, {input}, "{ele_energyscale_barrel}", "{ele_energyscale_endcap}","{embedding_electron_es_sf_file}", "{ele_ES_json_name}")',
input=[
nanoAOD.Electron_pt,
nanoAOD.Electron_eta,
Expand All @@ -18,7 +18,7 @@
)
ElectronPtCorrectionMC = Producer(
name="ElectronPtCorrectionMC",
call='physicsobject::electron::PtCorrectionMC({df}, {output}, {input}, {ele_es_era}, "{ele_es_variation}", {ele_es_file})',
call='physicsobject::electron::PtCorrectionMC({df}, correctionManager, {output}, {input}, {ele_es_era}, "{ele_es_variation}", {ele_es_file})',
input=[
nanoAOD.Electron_pt,
nanoAOD.Electron_eta,
Expand Down
2 changes: 1 addition & 1 deletion producers/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@

Tau_2_VsJetTauID_lt_SF = ExtendedVectorProducer(
name="Tau_2_VsJetTauID_lt_SF",
call='scalefactor::tau::id_vsJet_lt_embedding({df}, {input}, "{vsjet_tau_id_WP}", "{tau_emb_sf_vsjet_tau20to25}", "{tau_emb_sf_vsjet_tau25to30}", "{tau_emb_sf_vsjet_tau30to35}", "{tau_emb_sf_vsjet_tau35to40}", "{tau_emb_sf_vsjet_tau40toInf}", {output}, "{tau_emb_sf_file}", "{tau_emb_id_sf_correctionset}")',
call='scalefactor::tau::id_vsJet_lt_embedding({df}, correctionManager, {input}, "{vsjet_tau_id_WP}", "{tau_emb_sf_vsjet_tau20to25}", "{tau_emb_sf_vsjet_tau25to30}", "{tau_emb_sf_vsjet_tau30to35}", "{tau_emb_sf_vsjet_tau35to40}", "{tau_emb_sf_vsjet_tau40toInf}", {output}, "{tau_emb_sf_file}", "{tau_emb_id_sf_correctionset}")',
input=[q.pt_2],
output="tau_2_vsjet_sf_outputname",
scope=["et", "mt"],
Expand Down
4 changes: 2 additions & 2 deletions producers/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

JSONFilter = BaseFilter(
name="JSONFilter",
call='basefunctions::JSONFilter({df}, "{golden_json_file}", {input}, "GoldenJSONFilter")',
call='basefunctions::JSONFilter({df}, correctionManager, "{golden_json_file}", {input}, "GoldenJSONFilter")',
input=[nanoAOD.run, nanoAOD.luminosityBlock],
scopes=["global"],
)
Expand Down Expand Up @@ -195,7 +195,7 @@

PUweights = Producer(
name="PUweights",
call='reweighting::puweights({df}, {output}, {input}, "{PU_reweighting_file}", "{PU_reweighting_era}", "{PU_reweighting_variation}")',
call='reweighting::puweights({df}, correctionManager, {output}, {input}, "{PU_reweighting_file}", "{PU_reweighting_era}", "{PU_reweighting_variation}")',
input=[nanoAOD.Pileup_nTrueInt],
output=[q.puweight],
scopes=["global"],
Expand Down
2 changes: 1 addition & 1 deletion producers/jets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
####################
JetPtCorrection = Producer(
name="JetPtCorrection",
call="physicsobject::jet::JetPtCorrection({df}, {output}, {input}, {jet_reapplyJES}, {jet_jes_sources}, {jet_jes_shift}, {jet_jer_shift}, {jet_jec_file}, {jet_jer_tag}, {jet_jes_tag}, {jet_jec_algo})",
call="physicsobject::jet::JetPtCorrection({df}, correctionManager, {output}, {input}, {jet_reapplyJES}, {jet_jes_sources}, {jet_jes_shift}, {jet_jer_shift}, {jet_jec_file}, {jet_jer_tag}, {jet_jes_tag}, {jet_jec_algo})",
input=[
nanoAOD.Jet_pt,
nanoAOD.Jet_eta,
Expand Down
52 changes: 26 additions & 26 deletions producers/scalefactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
)
Muon_1_ID_SF = Producer(
name="MuonID_SF",
call='scalefactor::muon::id({df}, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_id_sf_name}")',
call='scalefactor::muon::id({df}, correctionManager, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_id_sf_name}")',
input=[q.pt_1, q.eta_1],
output=[q.id_wgt_mu_1],
scopes=["mt", "mm"],
)
Muon_1_Iso_SF = Producer(
name="MuonIso_SF",
call='scalefactor::muon::iso({df}, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_iso_sf_name}")',
call='scalefactor::muon::iso({df}, correctionManager, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_iso_sf_name}")',
input=[q.pt_1, q.eta_1],
output=[q.iso_wgt_mu_1],
scopes=["mt", "mm"],
Expand All @@ -53,14 +53,14 @@
)
Muon_2_ID_SF = Producer(
name="MuonID_SF",
call='scalefactor::muon::id({df}, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_id_sf_name}")',
call='scalefactor::muon::id({df}, correctionManager, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_id_sf_name}")',
input=[q.pt_2, q.eta_2],
output=[q.id_wgt_mu_2],
scopes=["em", "mm"],
)
Muon_2_Iso_SF = Producer(
name="MuonIso_SF",
call='scalefactor::muon::iso({df}, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_iso_sf_name}")',
call='scalefactor::muon::iso({df}, correctionManager, {input}, "{muon_sf_year_id}", "{muon_sf_varation}", {output}, "{muon_sf_file}", "{muon_iso_sf_name}")',
input=[q.pt_2, q.eta_2],
output=[q.iso_wgt_mu_2],
scopes=["em", "mm"],
Expand Down Expand Up @@ -118,55 +118,55 @@
############################
Tau_1_VsJetTauID_SF = ExtendedVectorProducer(
name="Tau_1_VsJetTauID_SF",
call='scalefactor::tau::id_vsJet_tt({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tauDM0}", "{tau_sf_vsjet_tauDM1}", "{tau_sf_vsjet_tauDM10}", "{tau_sf_vsjet_tauDM11}", "{tau_vsjet_sf_dependence}", "{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsJet_tt({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tauDM0}", "{tau_sf_vsjet_tauDM1}", "{tau_sf_vsjet_tauDM10}", "{tau_sf_vsjet_tauDM11}", "{tau_vsjet_sf_dependence}", "{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.pt_1, q.tau_decaymode_1, q.tau_gen_match_1],
output="tau_1_vsjet_sf_outputname",
scope=["tt"],
vec_config="vsjet_tau_id",
)
Tau_1_VsEleTauID_SF = ExtendedVectorProducer(
name="Tau_1_VsEleTauID_SF",
call='scalefactor::tau::id_vsEle({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsele_tau_id_WP}", "{tau_sf_vsele_barrel}", "{tau_sf_vsele_endcap}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsEle({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsele_tau_id_WP}", "{tau_sf_vsele_barrel}", "{tau_sf_vsele_endcap}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.eta_1, q.tau_decaymode_1, q.tau_gen_match_1],
output="tau_1_vsele_sf_outputname",
scope=["tt"],
vec_config="vsele_tau_id",
)
Tau_1_VsMuTauID_SF = ExtendedVectorProducer(
name="Tau_1_VsMuTauID_SF",
call='scalefactor::tau::id_vsMu({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsmu_tau_id_WP}", "{tau_sf_vsmu_wheel1}", "{tau_sf_vsmu_wheel2}", "{tau_sf_vsmu_wheel3}", "{tau_sf_vsmu_wheel4}", "{tau_sf_vsmu_wheel5}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsMu({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsmu_tau_id_WP}", "{tau_sf_vsmu_wheel1}", "{tau_sf_vsmu_wheel2}", "{tau_sf_vsmu_wheel3}", "{tau_sf_vsmu_wheel4}", "{tau_sf_vsmu_wheel5}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.eta_1, q.tau_decaymode_1, q.tau_gen_match_1],
output="tau_1_vsmu_sf_outputname",
scope=["tt"],
vec_config="vsmu_tau_id",
)
Tau_2_VsJetTauID_lt_SF = ExtendedVectorProducer(
name="Tau_2_VsJetTauID_lt_SF",
call='scalefactor::tau::id_vsJet_lt({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tau30to35}", "{tau_sf_vsjet_tau35to40}", "{tau_sf_vsjet_tau40to500}", "{tau_sf_vsjet_tau500to1000}", "{tau_sf_vsjet_tau1000toinf}", "{tau_vsjet_sf_dependence}","{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsJet_lt({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tau30to35}", "{tau_sf_vsjet_tau35to40}", "{tau_sf_vsjet_tau40to500}", "{tau_sf_vsjet_tau500to1000}", "{tau_sf_vsjet_tau1000toinf}", "{tau_vsjet_sf_dependence}","{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.pt_2, q.tau_decaymode_2, q.tau_gen_match_2],
output="tau_2_vsjet_sf_outputname",
scope=["et", "mt"],
vec_config="vsjet_tau_id",
)
Tau_2_VsJetTauID_tt_SF = ExtendedVectorProducer(
name="Tau_2_VsJetTauID_tt_SF",
call='scalefactor::tau::id_vsJet_tt({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tauDM0}", "{tau_sf_vsjet_tauDM1}", "{tau_sf_vsjet_tauDM10}", "{tau_sf_vsjet_tauDM11}", "{tau_vsjet_sf_dependence}", "{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsJet_tt({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsjet_tau_id_WP}", "{tau_sf_vsjet_tauDM0}", "{tau_sf_vsjet_tauDM1}", "{tau_sf_vsjet_tauDM10}", "{tau_sf_vsjet_tauDM11}", "{tau_vsjet_sf_dependence}", "{tau_vsjet_vseleWP}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.pt_2, q.tau_decaymode_2, q.tau_gen_match_2],
output="tau_2_vsjet_sf_outputname",
scope=["tt"],
vec_config="vsjet_tau_id",
)
Tau_2_VsEleTauID_SF = ExtendedVectorProducer(
name="Tau_2_VsEleTauID_SF",
call='scalefactor::tau::id_vsEle({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsele_tau_id_WP}", "{tau_sf_vsele_barrel}", "{tau_sf_vsele_endcap}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsEle({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsele_tau_id_WP}", "{tau_sf_vsele_barrel}", "{tau_sf_vsele_endcap}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.eta_2, q.tau_decaymode_2, q.tau_gen_match_2],
output="tau_2_vsele_sf_outputname",
scope=["et", "mt", "tt"],
vec_config="vsele_tau_id",
)
Tau_2_VsMuTauID_SF = ExtendedVectorProducer(
name="Tau_2_VsMuTauID_SF",
call='scalefactor::tau::id_vsMu({df}, {input}, {vec_open}{tau_dms}{vec_close}, "{vsmu_tau_id_WP}", "{tau_sf_vsmu_wheel1}", "{tau_sf_vsmu_wheel2}", "{tau_sf_vsmu_wheel3}", "{tau_sf_vsmu_wheel4}", "{tau_sf_vsmu_wheel5}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
call='scalefactor::tau::id_vsMu({df}, correctionManager, {input}, {vec_open}{tau_dms}{vec_close}, "{vsmu_tau_id_WP}", "{tau_sf_vsmu_wheel1}", "{tau_sf_vsmu_wheel2}", "{tau_sf_vsmu_wheel3}", "{tau_sf_vsmu_wheel4}", "{tau_sf_vsmu_wheel5}", {output}, "{tau_sf_file}", "{tau_id_discriminator}")',
input=[q.eta_2, q.tau_decaymode_2, q.tau_gen_match_2],
output="tau_2_vsmu_sf_outputname",
scope=["et", "mt", "tt"],
Expand Down Expand Up @@ -205,28 +205,28 @@
#########################
Ele_1_IDWP90_SF = Producer(
name="Ele_IDWP90_SF",
call='scalefactor::electron::id({df}, {input}, "{ele_sf_year_id}", "wp90noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
call='scalefactor::electron::id({df}, correctionManager, {input}, "{ele_sf_year_id}", "wp90noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
input=[q.pt_1, q.eta_1],
output=[q.id_wgt_ele_wp90nonIso_1],
scopes=["em", "ee", "et"],
)
Ele_2_IDWP90_SF = Producer(
name="Ele_IDWP90_SF",
call='scalefactor::electron::id({df}, {input}, "{ele_sf_year_id}", "wp90noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
call='scalefactor::electron::id({df}, correctionManager, {input}, "{ele_sf_year_id}", "wp90noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
input=[q.pt_2, q.eta_2],
output=[q.id_wgt_ele_wp90nonIso_2],
scopes=["ee"],
)
Ele_1_IDWP80_SF = Producer(
name="Ele_IDWP80_SF",
call='scalefactor::electron::id({df}, {input}, "{ele_sf_year_id}", "wp80noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
call='scalefactor::electron::id({df}, correctionManager, {input}, "{ele_sf_year_id}", "wp80noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
input=[q.pt_1, q.eta_1],
output=[q.id_wgt_ele_wp80nonIso_1],
scopes=["em", "ee", "et"],
)
Ele_2_IDWP80_SF = Producer(
name="Ele_IDWP80_SF",
call='scalefactor::electron::id({df}, {input}, "{ele_sf_year_id}", "wp80noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
call='scalefactor::electron::id({df}, correctionManager, {input}, "{ele_sf_year_id}", "wp80noiso", "{ele_sf_varation}", {output}, "{ele_sf_file}", "{ele_id_sf_name}")',
input=[q.pt_2, q.eta_2],
output=[q.id_wgt_ele_wp80nonIso_2],
scopes=["ee"],
Expand Down Expand Up @@ -254,7 +254,7 @@
###################################
MTGenerateSingleMuonTriggerSF_MC = ExtendedVectorProducer(
name="MTGenerateSingleMuonTriggerSF_MC",
call='scalefactor::embedding::muon_sf({df}, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_trigger_sf}", {mc_muon_trg_extrapolation})',
call='scalefactor::embedding::muon_sf({df}, correctionManager, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_trigger_sf}", {mc_muon_trg_extrapolation})',
input=[q.pt_1, q.eta_1],
output="flagname",
scope=["mt", "mm"],
Expand All @@ -263,7 +263,7 @@

ETGenerateSingleElectronTriggerSF_MC = ExtendedVectorProducer(
name="ETGenerateSingleElectronTriggerSF_MC",
call='scalefactor::embedding::electron_sf({df}, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_trigger_sf}" , {mc_electron_trg_extrapolation})',
call='scalefactor::embedding::electron_sf({df}, correctionManager, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_trigger_sf}" , {mc_electron_trg_extrapolation})',
input=[q.pt_1, q.eta_1],
output="flagname",
scope=["et", "ee"],
Expand All @@ -275,31 +275,31 @@
####################################
TauEmbeddingMuonIDSF_1_MC = Producer(
name="TauEmbeddingMuonIDSF_1_MC",
call='scalefactor::embedding::muon_sf({df}, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_id_sf}")',
call='scalefactor::embedding::muon_sf({df}, correctionManager, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_id_sf}")',
input=[q.pt_1, q.eta_1],
output=[q.id_wgt_mu_1],
scopes=["mt", "mm"],
)

TauEmbeddingMuonIDSF_2_MC = Producer(
name="TauEmbeddingMuonIDSF_2_MC",
call='scalefactor::embedding::muon_sf({df}, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_id_sf}")',
call='scalefactor::embedding::muon_sf({df}, correctionManager, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_id_sf}")',
input=[q.pt_2, q.eta_2],
output=[q.id_wgt_mu_2],
scopes=["mm", "em"],
)

TauEmbeddingMuonIsoSF_1_MC = Producer(
name="TauEmbeddingMuonIsoSF_1_MC",
call='scalefactor::embedding::muon_sf({df}, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_iso_sf}")',
call='scalefactor::embedding::muon_sf({df}, correctionManager, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_iso_sf}")',
input=[q.pt_1, q.eta_1],
output=[q.iso_wgt_mu_1],
scopes=["mt", "mm"],
)

TauEmbeddingMuonIsoSF_2_MC = Producer(
name="TauEmbeddingMuonIsoSF_2_MC",
call='scalefactor::embedding::muon_sf({df}, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_iso_sf}")',
call='scalefactor::embedding::muon_sf({df}, correctionManager, {input}, {output}, "{mc_muon_sf_file}", "mc", "{mc_muon_iso_sf}")',
input=[q.pt_2, q.eta_2],
output=[q.iso_wgt_mu_2],
scopes=["mm", "em"],
Expand All @@ -309,31 +309,31 @@

TauEmbeddingElectronIDSF_1_MC = Producer(
name="TauEmbeddingElectronIDSF_1_MC",
call='scalefactor::embedding::electron_sf({df}, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_id_sf}")',
call='scalefactor::embedding::electron_sf({df}, correctionManager, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_id_sf}")',
input=[q.pt_1, q.eta_1],
output=[q.id_wgt_ele_1],
scopes=["et", "ee", "em"],
)

TauEmbeddingElectronIDSF_2_MC = Producer(
name="TauEmbeddingElectronIDSF_2_MC",
call='scalefactor::embedding::electron_sf({df}, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_id_sf}")',
call='scalefactor::embedding::electron_sf({df}, correctionManager, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_id_sf}")',
input=[q.pt_2, q.eta_2],
output=[q.id_wgt_ele_2],
scopes=["ee"],
)

TauEmbeddingElectronIsoSF_1_MC = Producer(
name="TauEmbeddingElectronIsoSF_1_MC",
call='scalefactor::embedding::electron_sf({df}, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_iso_sf}")',
call='scalefactor::embedding::electron_sf({df}, correctionManager, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_iso_sf}")',
input=[q.pt_1, q.eta_1],
output=[q.iso_wgt_ele_1],
scopes=["et", "ee", "em"],
)

TauEmbeddingElectronIsoSF_2_MC = Producer(
name="TauEmbeddingElectronIsoSF_2_MC",
call='scalefactor::embedding::electron_sf({df}, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_iso_sf}")',
call='scalefactor::embedding::electron_sf({df}, correctionManager, {input}, {output}, "{mc_electron_sf_file}", "mc", "{mc_electron_iso_sf}")',
input=[q.pt_2, q.eta_2],
output=[q.iso_wgt_ele_2],
scopes=["ee"],
Expand All @@ -343,7 +343,7 @@
#########################
btagging_SF = Producer(
name="btagging_SF",
call='scalefactor::jet::btagSF({df}, {input}, "{btag_sf_variation}", {output}, "{btag_sf_file}", "{btag_corr_algo}")',
call='scalefactor::jet::btagSF({df}, correctionManager, {input}, "{btag_sf_variation}", {output}, "{btag_sf_file}", "{btag_corr_algo}")',
input=[
q.Jet_pt_corrected,
nanoAOD.Jet_eta,
Expand Down
6 changes: 3 additions & 3 deletions producers/taus.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
)
TauPtCorrection_eleFake = Producer(
name="TauPtCorrection_eleFake",
call='physicsobject::tau::PtCorrection_eleFake({df}, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_elefake_es_DM0_barrel}", "{tau_elefake_es_DM1_barrel}", "{tau_elefake_es_DM0_endcap}", "{tau_elefake_es_DM1_endcap}")',
call='physicsobject::tau::PtCorrection_eleFake({df}, correctionManager, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_elefake_es_DM0_barrel}", "{tau_elefake_es_DM1_barrel}", "{tau_elefake_es_DM0_endcap}", "{tau_elefake_es_DM1_endcap}")',
input=[
nanoAOD.Tau_pt,
nanoAOD.Tau_eta,
Expand All @@ -57,7 +57,7 @@
)
TauPtCorrection_muFake = Producer(
name="TauPtCorrection_muFake",
call='physicsobject::tau::PtCorrection_muFake({df}, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_mufake_es}")',
call='physicsobject::tau::PtCorrection_muFake({df}, correctionManager, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_mufake_es}")',
input=[
q.Tau_pt_ele_corrected,
nanoAOD.Tau_eta,
Expand All @@ -69,7 +69,7 @@
)
TauPtCorrection_genTau = Producer(
name="TauPtCorrection_genTau",
call='physicsobject::tau::PtCorrection_genTau({df}, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_ES_shift_DM0}", "{tau_ES_shift_DM1}", "{tau_ES_shift_DM10}", "{tau_ES_shift_DM11}")',
call='physicsobject::tau::PtCorrection_genTau({df}, correctionManager, {output}, {input}, "{tau_sf_file}", "{tau_ES_json_name}", "{tau_id_algorithm}", "{tau_ES_shift_DM0}", "{tau_ES_shift_DM1}", "{tau_ES_shift_DM10}", "{tau_ES_shift_DM11}")',
input=[
q.Tau_pt_ele_mu_corrected,
nanoAOD.Tau_eta,
Expand Down