diff --git a/producers/electrons.py b/producers/electrons.py index 5480aa2..5538c78 100644 --- a/producers/electrons.py +++ b/producers/electrons.py @@ -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, @@ -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, diff --git a/producers/embedding.py b/producers/embedding.py index 873dedf..c8c4d01 100644 --- a/producers/embedding.py +++ b/producers/embedding.py @@ -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"], diff --git a/producers/event.py b/producers/event.py index e97681c..abc89eb 100644 --- a/producers/event.py +++ b/producers/event.py @@ -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"], ) @@ -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"], diff --git a/producers/jets.py b/producers/jets.py index 1fcfd9c..6a14cff 100644 --- a/producers/jets.py +++ b/producers/jets.py @@ -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, diff --git a/producers/scalefactors.py b/producers/scalefactors.py index 6304481..3504153 100644 --- a/producers/scalefactors.py +++ b/producers/scalefactors.py @@ -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"], @@ -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"], @@ -118,7 +118,7 @@ ############################ 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"], @@ -126,7 +126,7 @@ ) 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"], @@ -134,7 +134,7 @@ ) 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"], @@ -142,7 +142,7 @@ ) 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"], @@ -150,7 +150,7 @@ ) 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"], @@ -158,7 +158,7 @@ ) 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"], @@ -166,7 +166,7 @@ ) 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"], @@ -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"], @@ -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"], @@ -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"], @@ -275,7 +275,7 @@ #################################### 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"], @@ -283,7 +283,7 @@ 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"], @@ -291,7 +291,7 @@ 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"], @@ -299,7 +299,7 @@ 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"], @@ -309,7 +309,7 @@ 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"], @@ -317,7 +317,7 @@ 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"], @@ -325,7 +325,7 @@ 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"], @@ -333,7 +333,7 @@ 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"], @@ -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, diff --git a/producers/taus.py b/producers/taus.py index 67a3b91..d9cfe3a 100644 --- a/producers/taus.py +++ b/producers/taus.py @@ -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, @@ -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, @@ -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,