CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
mvaElectronID_tools.EleMVA_WP Class Reference

Public Member Functions

def __init__
 
def getCutStrings
 

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 42 of file mvaElectronID_tools.py.

Constructor & Destructor Documentation

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

Definition at line 55 of file mvaElectronID_tools.py.

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

Member Function Documentation

def mvaElectronID_tools.EleMVA_WP.getCutStrings (   self)

Definition at line 63 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, and GsfElectronAlgo::Configuration.cuts.

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

Member Data Documentation

mvaElectronID_tools.EleMVA_WP.cuts

Definition at line 61 of file mvaElectronID_tools.py.

Referenced by mvaElectronID_tools.EleMVA_WP.getCutStrings(), and mvaElectronID_tools.EleMVARaw_WP.getCutStrings().

mvaElectronID_tools.EleMVA_WP.idName

Definition at line 56 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_WP.mvaCategoriesMapName

Definition at line 60 of file mvaElectronID_tools.py.

mvaElectronID_tools.EleMVA_WP.mvaValueMapName

Definition at line 58 of file mvaElectronID_tools.py.