Skip to content

Commit

Permalink
Adding new JEC files for 2017 and 2018 to ntuplizer
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuolo committed Aug 31, 2021
1 parent c545df6 commit d86ca14
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions NtupleProducer/plugins/HTauTauNtuplizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2813,15 +2813,15 @@ void HTauTauNtuplizer::analyze(const edm::Event& event, const edm::EventSetup& e
else if (theYear == 2017)
{
for (const auto& source: m_jec_sources_regrouped_2017) {
JetCorrectorParameters source_parameters_reduced("JECUncertaintySources/Regrouped_Fall17_17Nov2017_V32_MC_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters_reduced("JECUncertaintySources/RegroupedV2_Summer19UL17_V5_MC_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty_reduced(new JetCorrectionUncertainty(source_parameters_reduced));
jecSourceUncRegroupedProviders.emplace(source, std::move(source_uncertainty_reduced));
}
}
else if (theYear == 2018)
{
for (const auto& source: m_jec_sources_regrouped_2018) {
JetCorrectorParameters source_parameters_reduced("JECUncertaintySources/Regrouped_Autumn18_V19_MC_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters_reduced("JECUncertaintySources/RegroupedV2_Summer19UL18_V5_MC_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty_reduced(new JetCorrectionUncertainty(source_parameters_reduced));
jecSourceUncRegroupedProviders.emplace(source, std::move(source_uncertainty_reduced));
}
Expand All @@ -2841,15 +2841,15 @@ void HTauTauNtuplizer::analyze(const edm::Event& event, const edm::EventSetup& e
else if (theYear == 2017)
{
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Fall17_17Nov2017_V32_MC_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_V5_MC_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}
else if (theYear == 2018)
{
for (const auto& source: m_jec_sources_2018) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Autumn18_V19_MC_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL18_V5_MC_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
Expand Down Expand Up @@ -2877,49 +2877,55 @@ void HTauTauNtuplizer::analyze(const edm::Event& event, const edm::EventSetup& e
}
}else if(Run2017B){
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Fall17_17Nov2017B_V32_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_RunB_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2017C){
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Fall17_17Nov2017C_V32_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_RunC_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2017D || Run2017E){
}else if(Run2017D){
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Fall17_17Nov2017DE_V32_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_RunD_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2017E){
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_RunE_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2017F){
for (const auto& source: m_jec_sources_2017) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Fall17_17Nov2017F_V32_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL17_RunF_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2018A){
for (const auto& source: m_jec_sources_2018) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Autumn18_RunA_V19_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL18_RunA_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2018B){
for (const auto& source: m_jec_sources_2018) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Autumn18_RunB_V19_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL18_RunB_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2018C){
for (const auto& source: m_jec_sources_2018) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Autumn18_RunC_V19_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL18_RunC_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
}else if(Run2018D){
for (const auto& source: m_jec_sources_2018) {
JetCorrectorParameters source_parameters("JECUncertaintySources/Autumn18_RunD_V19_DATA_UncertaintySources_AK4PFchs.txt", source);
JetCorrectorParameters source_parameters("JECUncertaintySources/Summer19UL18_RunD_V5_DATA_UncertaintySources_AK4PFchs.txt", source);
std::unique_ptr<JetCorrectionUncertainty> source_uncertainty(new JetCorrectionUncertainty(source_parameters));
jecSourceUncProviders.emplace(source, std::move(source_uncertainty));
}
Expand Down

0 comments on commit d86ca14

Please sign in to comment.