1 import FWCore.ParameterSet.Config
as cms
8 mvaClassName =
"ElectronMVAEstimatorRun2" 14 mvaProducerModuleLabel =
"electronMVAValueMapProducer" 17 mvaVariablesFile =
"RecoEgamma/ElectronIdentification/data/ElectronMVAEstimatorRun2Variables.txt" 18 mvaVariablesFileRun3 =
"RecoEgamma/ElectronIdentification/data/ElectronIDVariablesRun3.txt" 24 EleMVA_3CategoriesCuts = [
25 "abs(superCluster.eta) < 0.800",
26 "abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
27 "abs(superCluster.eta) >= 1.479" 30 EleMVA_6CategoriesCuts = [
31 "pt < 10. && abs(superCluster.eta) < 0.800",
32 "pt < 10. && abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
33 "pt < 10. && abs(superCluster.eta) >= 1.479",
34 "pt >= 10. && abs(superCluster.eta) < 0.800",
35 "pt >= 10. && abs(superCluster.eta) >= 0.800 && abs(superCluster.eta) < 1.479",
36 "pt >= 10. && abs(superCluster.eta) >= 1.479",
45 This is a container class to hold MVA cut values for a n-category MVA 46 as well as the names of the value maps that contain the MVA values computed 47 for all particles in a producer upstream. 49 IMPORTANT: the cuts need to be given in alphabetical order, which must 50 be the order in which they are used by the cut class. 59 self.
mvaValueMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"Values" 66 return [self.
cuts[key]
for key
in keylist]
70 This is a container class to hold MVA cut values for a n-category MVA 71 as well as the names of the value maps that contain the MVA values computed 72 for all particles in a producer upstream. 74 IMPORTANT: the cuts need to be given in alphabetical order, which must 75 be the order in which they are used by the cut class. 84 self.
mvaValueMapName = mvaProducerModuleLabel +
":" + mvaClassName + mvaTag +
"RawValues" 91 return [self.
cuts[key]
for key
in keylist]
99 This function configures the full cms.PSet for a VID ID and returns it. 100 The inputs: an object of the class EleMVA_WP or similar 101 that contains all necessary parameters for this MVA. 105 idName = cms.string( mvaWP.idName ),
107 cms.PSet( cutName = cms.string(cutName),
108 mvaCuts = cms.vstring( mvaWP.getCutStrings() ),
109 mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
110 mvaCategoriesMapName = cms.InputTag( mvaWP.mvaCategoriesMapName ),
111 needsAdditionalProducts = cms.bool(
True),
112 isIgnored = cms.bool(
False)