1 import FWCore.ParameterSet.Config
as cms
9 This is a container class to hold MVA cut values for a n-category MVA 10 as well as the names of the value maps that contain the MVA values computed 11 for all particles in a producer upstream. 13 IMPORTANT: the cuts need to be given in alphabetical order, which must 14 be the order in which they are used by the cut class. 28 keylist = self.cuts.keys()
30 return [self.
cuts[key]
for key
in keylist]
33 EleMVA_3Categories_WP = EleMVA_WP
34 EleMVA_6Categories_WP = EleMVA_WP
42 This function configures the full cms.PSet for a VID ID and returns it. 43 The inputs: an object of the class EleMVA_WP or similar 44 that contains all necessary parameters for this MVA. 46 parameterSet = cms.PSet(
48 idName = cms.string( mvaWP.idName ),
50 cms.PSet( cutName = cms.string(cutName),
51 mvaCuts = cms.vdouble( mvaWP.getCutValues() ),
52 mvaValueMapName = cms.InputTag( mvaWP.mvaValueMapName ),
53 mvaCategoriesMapName =cms.InputTag( mvaWP.mvaCategoriesMapName ),
54 needsAdditionalProducts = cms.bool(
True),
55 isIgnored = cms.bool(
False)