Skip to content

Commit 73e7e05

Browse files
committed
remove irrelevant configuration parameters
1 parent a6a3f63 commit 73e7e05

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

PhysicsTools/NanoAOD/plugins/TauSpinnerTableProducer.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "FWCore/ParameterSet/interface/ParameterSet.h"
1616
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
1717
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
18+
#include "FWCore/ParameterSet/interface/allowedValues.h"
1819
#include "DataFormats/Common/interface/View.h"
1920
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
2021
#include "DataFormats/NanoAOD/interface/FlatTable.h"
@@ -34,9 +35,8 @@ class TauSpinnerTableProducer : public edm::one::EDProducer<edm::one::SharedReso
3435
desc.add<edm::InputTag>("src")->setComment("input genParticle collection");
3536
desc.add<std::string>("name")->setComment("name of the TauSpinner weights table");
3637
desc.add<std::vector<double>>("theta")->setComment("values of CP-even and CP-odd tau Yukawa mixing angle");
37-
desc.add<std::string>("pdfSet", "NNPDF31_nnlo_hessian_pdfas")->setComment("PDF set for TauSpinner");
38-
desc.add<double>("cmsE", 13600)->setComment("cms energy for TauSpinner in GeV");
39-
desc.add<int>("bosonPdgId", 25)->setComment("boson pdgId");
38+
desc.ifValue(edm::ParameterDescription<int>("bosonPdgId", 25, true), edm::allowedValues<int>(25, 35, 36))
39+
->setComment("boson pdgId, default: 25"); // Allow only neutral Higgs bosons
4040
desc.add<double>("defaultWeight", 1)
4141
->setComment("default weight stored in case of presence of a tau decay unsupported by TauSpinner");
4242
descriptions.addWithDefaultLabel(desc);
@@ -99,12 +99,14 @@ TauSpinnerTableProducer::TauSpinnerTableProducer(const edm::ParameterSet &config
9999
name_(config.getParameter<std::string>("name")),
100100
theta_vec_(nameAndValue(config.getParameter<std::vector<double>>("theta"))),
101101
bosonPdgId_(config.getParameter<int>("bosonPdgId")),
102-
tauSpinnerPDF_(config.getParameter<std::string>("pdfSet")),
102+
tauSpinnerPDF_(
103+
"NNPDF31_nnlo_hessian_pdfas"), // PDF set for TauSpinner, relevant only in case of Z/gamma* polarization weights (set "sensible" default)
103104
ipp_(true), // pp collisions
104105
ipol_(0),
105106
nonSM2_(0),
106107
nonSMN_(0),
107-
cmsE_(config.getParameter<double>("cmsE")), // cms energy in GeV
108+
cmsE_(
109+
13600), // collision energy in GeV, relevant only in case of Z/gamma* polarization weights (set "sensible" default)
108110
default_weight_(config.getParameter<double>(
109111
"defaultWeight")) // default weight stored in case of presence of a tau decay unsupported by TauSpinner
110112
{
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import FWCore.ParameterSet.Config as cms
2-
from PhysicsTools.NanoAOD.nano_eras_cff import *
32
from PhysicsTools.NanoAOD.tauSpinnerTableProducer_cfi import tauSpinnerTableProducer
43

54
tauSpinnerTable = tauSpinnerTableProducer.clone(
65
src = 'prunedGenParticles',
76
name = 'TauSpinner',
87
theta = [0, 0.25, 0.5, -0.25, 0.375],
9-
pdfSet = 'NNPDF31_nnlo_hessian_pdfas',
10-
cmsE = 13600,
118
defaultWeight = 1
129
)
13-
(~run3_common).toModify(
14-
tauSpinnerTable, cmsE = 13000
15-
)
1610

1711
tauSpinnerTableTask = cms.Task(tauSpinnerTable)

0 commit comments

Comments
 (0)