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, mvaValueMapName, mvaCategoriesMapName, cuts)
 
def getCutValues (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 7 of file mvaElectronID_tools.py.

Constructor & Destructor Documentation

def mvaElectronID_tools.EleMVA_WP.__init__ (   self,
  idName,
  mvaValueMapName,
  mvaCategoriesMapName,
  cuts 
)

Member Function Documentation

def mvaElectronID_tools.EleMVA_WP.getCutValues (   self)

Definition at line 27 of file mvaElectronID_tools.py.

References TPN.cuts, TMTQ.cuts, mvaElectronID_tools.EleMVA_WP.cuts, python.rootplot.tree2hists.RootTree.cuts, and python.rootplot.tree2hists.Plot.cuts.

27  def getCutValues(self):
28  keylist = self.cuts.keys()
29  keylist.sort()
30  return [self.cuts[key] for key in keylist]
31 
32 # This is for backwards compatibility with IDs <= 2016

Member Data Documentation

mvaElectronID_tools.EleMVA_WP.cuts

Definition at line 25 of file mvaElectronID_tools.py.

Referenced by mvaElectronID_tools.EleMVA_WP.getCutValues().

mvaElectronID_tools.EleMVA_WP.idName

Definition at line 22 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_WP.mvaCategoriesMapName

Definition at line 24 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_WP.mvaValueMapName

Definition at line 23 of file mvaElectronID_tools.py.