Skip to content

Commit

Permalink
Merge pull request #26012 from bainbrid/LowPtElectronsFull_105X_Autumn18
Browse files Browse the repository at this point in the history
LowPtElectrons: switch to Autumn18 models
  • Loading branch information
cmsbuild committed Feb 27, 2019
2 parents d1d0bcc + 9f8467b commit f049ce3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
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
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_Autumn18_LowPtElectrons_mva_id.xml.gz',
]),
ModelThresholds = cms.vdouble([-10.])
)
@@ -1,8 +1,8 @@
import FWCore.ParameterSet.Config as cms

def thresholds( wp ) :
return cms.vdouble([{"L": 1.03,"M":1.75,"T":2.61}.get(wp,1.e6), # unbiased
{"L":-0.48,"M":0.76,"T":1.83}.get(wp,1.e6)]) # ptbiased
return cms.vdouble([{"VL": 0.19,"L":1.20,"M":2.02,"T":3.05}.get(wp,1.e6), # unbiased
{"VL":-1.99,"L":0.01,"M":1.29,"T":2.42}.get(wp,1.e6)]) # ptbiased

lowPtGsfElectronSeeds = cms.EDProducer(
"LowPtGsfElectronSeedProducer",
Expand All @@ -22,8 +22,8 @@ def thresholds( wp ) :
'ptbiased',
]),
ModelWeights = cms.vstring([
'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Fall17_LowPtElectrons_unbiased.xml.gz',
'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Fall17_LowPtElectrons_displaced_pt_eta_biased.xml.gz',
'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_unbiased.xml.gz',
'RecoEgamma/ElectronIdentification/data/LowPtElectrons/RunII_Autumn18_LowPtElectrons_displaced_pt_eta_biased.xml.gz',
]),
ModelThresholds = thresholds("T"),
PassThrough = cms.bool(False),
Expand All @@ -49,5 +49,5 @@ def thresholds( wp ) :

# Modifiers for BParking
from Configuration.Eras.Modifier_bParking_cff import bParking
bParking.toModify(lowPtGsfElectronSeeds, ModelThresholds = thresholds("L") )
bParking.toModify(lowPtGsfElectronSeeds, ModelThresholds = thresholds("VL") )
bParking.toModify(lowPtGsfElectronSeeds, MinPtThreshold = 0.5)

0 comments on commit f049ce3

Please sign in to comment.