Skip to content

Commit

Permalink
delete the unused parameter in config instead of modifying the source…
Browse files Browse the repository at this point in the history
… c code
  • Loading branch information
jeongeun committed Aug 24, 2021
1 parent 6b876df commit 7ee467a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PhysicsTools/PatAlgos/plugins/PATElectronProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1319,8 +1319,8 @@ void PATElectronProducer::fillDescriptions(edm::ConfigurationDescriptions& descr
electronIDSourcesPSet.setAllowAnything();
iDesc
.addNode(
edm::ParameterDescription<edm::ParameterSetDescription>("electronIDSources", electronIDSourcesPSet, true) xor
edm::ParameterDescription<edm::InputTag>("electronIDSource", edm::InputTag(), true))
edm::ParameterDescription<edm::InputTag>("electronIDSource", edm::InputTag(), true) xor
edm::ParameterDescription<edm::ParameterSetDescription>("electronIDSources", electronIDSourcesPSet, true))
->setComment("input with electron ID variables");

// mini-iso
Expand Down
4 changes: 2 additions & 2 deletions PhysicsTools/PatAlgos/plugins/PATPhotonProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,8 @@ void PATPhotonProducer::fillDescriptions(edm::ConfigurationDescriptions& descrip
edm::ParameterSetDescription photonIDSourcesPSet;
photonIDSourcesPSet.setAllowAnything();
iDesc
.addNode(edm::ParameterDescription<edm::ParameterSetDescription>("photonIDSources", photonIDSourcesPSet, true) xor
edm::ParameterDescription<edm::InputTag>("photonIDSource", edm::InputTag(), true))
.addNode(edm::ParameterDescription<edm::InputTag>("photonIDSource", edm::InputTag(), true) xor
edm::ParameterDescription<edm::ParameterSetDescription>("photonIDSources", photonIDSourcesPSet, true))
->setComment("input with photon ID variables");

// IsoDeposit configurables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@
miniIsoParamsB = [0.05, 0.2, 10.0, 0.0, 0.000, 0.000, 0.00, 0.0, 0.0],

)
del patElectrons.electronIDSource
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@
hcalPFClusterIsoMap = "",
addPuppiIsolation = False
)
del patPhotons.photonIDSource

0 comments on commit 7ee467a

Please sign in to comment.