Skip to content

Commit 1f8c2b0

Browse files
committed
add a fillDescription to SoftLepton
1 parent 2972d60 commit 1f8c2b0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

RecoBTag/SoftLepton/plugins/SoftLepton.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -509,16 +509,16 @@ double SoftLepton::boostedPPar(const math::XYZVector &vector, const math::XYZVec
509509
// ------------ method fills 'descriptions' with the allowed parameters for the module ------------
510510
void SoftLepton::fillDescriptions(edm::ConfigurationDescriptions &descriptions) {
511511
edm::ParameterSetDescription desc;
512-
desc.add<unsigned int>("muonSelection", 1);
513-
desc.add<edm::InputTag>("leptons", edm::InputTag("muons"));
514-
desc.add<edm::InputTag>("primaryVertex", edm::InputTag("offlinePrimaryVertices"));
515-
desc.add<edm::InputTag>("leptonCands", edm::InputTag());
516-
desc.add<edm::InputTag>("leptonId", edm::InputTag());
517-
desc.add<unsigned int>("refineJetAxis", 0);
518-
desc.add<edm::InputTag>("jets", edm::InputTag("ak4PFJetsCHS"));
519-
desc.add<double>("leptonDeltaRCut", 0.4);
520-
desc.add<double>("leptonChi2Cut", 9999.0);
521-
descriptions.addDefault(desc);
512+
desc.add<unsigned int>("muonSelection", 1)->setComment("Specify the muon SelectionType, default is 'AllGlobalMuons'.");
513+
desc.add<edm::InputTag>("leptons", edm::InputTag("muons"))->setComment("InputTag for the lepton collection.");
514+
desc.add<edm::InputTag>("primaryVertex", edm::InputTag("offlinePrimaryVertices"))->setComment("InputTag for the primary vertex collection.");
515+
desc.add<edm::InputTag>("leptonCands", edm::InputTag())->setComment("InputTag for the lepton candidates collection, optional.");
516+
desc.add<edm::InputTag>("leptonId", edm::InputTag())->setComment("InputTag for the lepton ID collection, optional.");
517+
desc.add<unsigned int>("refineJetAxis", 0)->setComment("Specify if a modified jet axis is to be used. See SoftLepton::AxisType for details.");
518+
desc.add<edm::InputTag>("jets", edm::InputTag("ak4PFJetsCHS"))->setComment("InputTag for the jet collection.");
519+
desc.add<double>("leptonDeltaRCut", 0.4)->setComment("Specify the maximum allowed value for the distance in DeltaR between the lepton and the jet axis.");
520+
desc.add<double>("leptonChi2Cut", 9999.0)->setComment("Specify the maximum allowed value for the normalized chi2 of the lepton.");
521+
descriptions.addWithDefaultLabel(desc);
522522
}
523523

524524
DEFINE_FWK_MODULE(SoftLepton);

0 commit comments

Comments
 (0)