CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mvaElectronID_tools.EleMVA_WP Class Reference

Public Member Functions

def __init__ (self, idName, mvaTag, cuts)
 
def getCutStrings (self)
 

Public Attributes

 cuts
 
 idName
 
 mvaCategoriesMapName
 
 mvaValueMapName
 

Detailed Description

This is a container class to hold MVA cut values for a n-category MVA
as well as the names of the value maps that contain the MVA values computed
for all particles in a producer upstream.

IMPORTANT: the cuts need to be given in alphabetical order, which must
be the order in which they are used by the cut class.

Definition at line 44 of file mvaElectronID_tools.py.

Constructor & Destructor Documentation

◆ __init__()

def mvaElectronID_tools.EleMVA_WP.__init__ (   self,
  idName,
  mvaTag,
  cuts 
)

Definition at line 57 of file mvaElectronID_tools.py.

57  ):
58  self.idName = idName
59  # map with MVA values for all particles
60  self.mvaValueMapName = mvaProducerModuleLabel + ":" + mvaClassName + mvaTag + "Values"
61  # map with category index for all particles
62  self.mvaCategoriesMapName = mvaProducerModuleLabel + ":" + mvaClassName + mvaTag + "Categories"
63  self.cuts = cuts
64 

Member Function Documentation

◆ getCutStrings()

def mvaElectronID_tools.EleMVA_WP.getCutStrings (   self)

Definition at line 65 of file mvaElectronID_tools.py.

References TMTQ.cuts, TPN.cuts, mvaElectronID_tools.EleMVA_WP.cuts, python.rootplot.tree2hists.RootTree.cuts, python.rootplot.tree2hists.Plot.cuts, GsfElectronAlgo::Configuration.cuts, and relativeConstraints.keys.

65  def getCutStrings(self):
66  keylist = sorted(self.cuts.keys())
67  return [self.cuts[key] for key in keylist]
68 

Member Data Documentation

◆ cuts

mvaElectronID_tools.EleMVA_WP.cuts

◆ idName

mvaElectronID_tools.EleMVA_WP.idName

Definition at line 58 of file mvaElectronID_tools.py.

◆ mvaCategoriesMapName

mvaElectronID_tools.EleMVA_WP.mvaCategoriesMapName

Definition at line 62 of file mvaElectronID_tools.py.

◆ mvaValueMapName

mvaElectronID_tools.EleMVA_WP.mvaValueMapName

Definition at line 60 of file mvaElectronID_tools.py.