Skip to content

Commit

Permalink
Default configuration parameter values moved from fillDescriptions() …
Browse files Browse the repository at this point in the history
…to the _cff files
  • Loading branch information
bainbrid committed Feb 25, 2019
1 parent 4fd4ff5 commit 23e8326
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ void LowPtGsfElectronIDProducer::fillDescriptions( edm::ConfigurationDescription
edm::ParameterSetDescription desc;
desc.add<edm::InputTag>("electrons",edm::InputTag("lowPtGsfElectrons"));
desc.add<edm::InputTag>("rho",edm::InputTag("fixedGridRhoFastjetAllTmp"));
desc.add< std::vector<std::string> >("ModelNames",std::vector<std::string>({""}));
desc.add< std::vector<std::string> >("ModelWeights",std::vector<std::string>({"RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Fall17_LowPtElectrons_mva_id.xml.gz"}));
desc.add< std::vector<double> >("ModelThresholds",std::vector<double>({-1.}));
desc.add< std::vector<std::string> >("ModelNames",std::vector<std::string>());
desc.add< std::vector<std::string> >("ModelWeights",std::vector<std::string>());
desc.add< std::vector<double> >("ModelThresholds",std::vector<double>());
desc.add<bool>("PassThrough",false);
desc.add<double>("MinPtThreshold",0.5);
desc.add<double>("MaxPtThreshold",15.);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

from RecoEgamma.EgammaElectronProducers.defaultLowPtGsfElectronID_cfi import defaultLowPtGsfElectronID

lowPtGsfElectronID = defaultLowPtGsfElectronID.clone()
lowPtGsfElectronID = defaultLowPtGsfElectronID.clone(
ModelNames = cms.vstring(['']),
ModelWeights = cms.vstring([
'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Fall17_LowPtElectrons_mva_id.xml.gz',
]),
ModelThresholds = cms.vdouble([-10.])
)

0 comments on commit 23e8326

Please sign in to comment.