CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mvaElectronID_tools.EleMVARaw_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 67 of file mvaElectronID_tools.py.

Constructor & Destructor Documentation

◆ __init__()

def mvaElectronID_tools.EleMVARaw_WP.__init__ (   self,
  idName,
  mvaTag,
**  cuts 
)

Definition at line 76 of file mvaElectronID_tools.py.

76  def __init__(self,
77  idName,
78  mvaTag,
79  **cuts
80  ):
81  self.idName = idName
82  # map with MVA values for all particles
83  self.mvaValueMapName = mvaProducerModuleLabel + ":" + mvaClassName + mvaTag + "RawValues"
84  # map with category index for all particles
85  self.mvaCategoriesMapName = mvaProducerModuleLabel + ":" + mvaClassName + mvaTag + "Categories"
86  self.cuts = cuts
87 

Member Function Documentation

◆ getCutStrings()

def mvaElectronID_tools.EleMVARaw_WP.getCutStrings (   self)

Definition at line 88 of file mvaElectronID_tools.py.

88  def getCutStrings(self):
89  keylist = sorted(self.cuts.keys())
90  return [self.cuts[key] for key in keylist]
91 
92 # ================================
93 # Define the complete MVA cut sets
94 # ================================
95 

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

Member Data Documentation

◆ cuts

mvaElectronID_tools.EleMVARaw_WP.cuts

◆ idName

mvaElectronID_tools.EleMVARaw_WP.idName

Definition at line 77 of file mvaElectronID_tools.py.

◆ mvaCategoriesMapName

mvaElectronID_tools.EleMVARaw_WP.mvaCategoriesMapName

Definition at line 81 of file mvaElectronID_tools.py.

◆ mvaValueMapName

mvaElectronID_tools.EleMVARaw_WP.mvaValueMapName

Definition at line 79 of file mvaElectronID_tools.py.

relativeConstraints.keys
keys
Definition: relativeConstraints.py:89