Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LowPtElectrons: switch to Autumn18 models #26012

Merged
merged 3 commits into from Feb 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)