CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
pileupCalc.EquidistantBinning Class Reference
Inheritance diagram for pileupCalc.EquidistantBinning:

Public Member Functions

def __init__ (self, num, xMin, xMax)
 
def find (self, x)
 
def width (self)
 

Public Attributes

 centers
 
 edges
 
 num
 
 xMax
 
 xMin
 

Detailed Description

Definition at line 54 of file pileupCalc.py.

Constructor & Destructor Documentation

◆ __init__()

def pileupCalc.EquidistantBinning.__init__ (   self,
  num,
  xMin,
  xMax 
)

Definition at line 55 of file pileupCalc.py.

55  def __init__(self, num, xMin, xMax):
56  self.num = num
57  self.xMin = xMin
58  self.xMax = xMax
59  self.edges = np.linspace(xMin, xMax, num=num+1)
60  self.centers = .5*(self.edges[:-1] + self.edges[1:])
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ find()

def pileupCalc.EquidistantBinning.find (   self,
  x 
)

◆ width()

def pileupCalc.EquidistantBinning.width (   self)

Member Data Documentation

◆ centers

pileupCalc.EquidistantBinning.centers

Definition at line 60 of file pileupCalc.py.

◆ edges

pileupCalc.EquidistantBinning.edges

Definition at line 59 of file pileupCalc.py.

Referenced by cmssw_cycle_finder.Graph.addEdge().

◆ num

pileupCalc.EquidistantBinning.num

◆ xMax

pileupCalc.EquidistantBinning.xMax

◆ xMin

pileupCalc.EquidistantBinning.xMin