CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
makeTrackValidationPlots.LimitTrackAlgo Class Reference

Public Member Functions

def __call__ (self, algo, quality)
 
def __init__ (self, algos, includePtCut)
 

Private Attributes

 _algos
 
 _includePtCut
 

Detailed Description

Definition at line 12 of file makeTrackValidationPlots.py.

Constructor & Destructor Documentation

◆ __init__()

def makeTrackValidationPlots.LimitTrackAlgo.__init__ (   self,
  algos,
  includePtCut 
)

Definition at line 13 of file makeTrackValidationPlots.py.

13  def __init__(self, algos, includePtCut):
14  self._algos = algos
15  self._includePtCut = includePtCut

Member Function Documentation

◆ __call__()

def makeTrackValidationPlots.LimitTrackAlgo.__call__ (   self,
  algo,
  quality 
)

Definition at line 16 of file makeTrackValidationPlots.py.

16  def __call__(self, algo, quality):
17  if self._algos is not None and algo not in self._algos:
18  return False
19  if not self._includePtCut and "Pt09" in quality:
20  return False
21  return True
22 

References makeTrackValidationPlots.LimitTrackAlgo._algos, and makeTrackValidationPlots.LimitTrackAlgo._includePtCut.

Member Data Documentation

◆ _algos

makeTrackValidationPlots.LimitTrackAlgo._algos
private

◆ _includePtCut

makeTrackValidationPlots.LimitTrackAlgo._includePtCut
private