CMS 3D CMS Logo

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

Public Member Functions

def __call__
 
def __init__
 
def pp
 

Public Attributes

 ed
 
 edges
 
 n
 
 name
 

Detailed Description

Definition at line 329 of file plotscripts.py.

Constructor & Destructor Documentation

def plotscripts.SawTeethFunction.__init__ (   self,
  name 
)

Definition at line 330 of file plotscripts.py.

331  def __init__(self, name):
332  self.name = name
333  self.edges = (phiedges[stationIndex(name)])[:]
334  self.ed = sorted(self.edges)
335  # add some padding to the end
336  self.ed.append(pi+1.)
self.n = len(self.edges)
def stationIndex
Definition: plotscripts.py:353

Member Function Documentation

def plotscripts.SawTeethFunction.__call__ (   self,
  xx,
  par 
)

Definition at line 337 of file plotscripts.py.

References plotscripts.SawTeethFunction.ed, and plotscripts.SawTeethFunction.n.

338  def __call__(self, xx, par):
339  # wrap x in the most negative phi sector into positive phi
340  x = xx[0]
341  if x < self.ed[0]: x += 2*pi
342  # locate sector
343  for i in range(0,self.n):
344  if x <= self.ed[i]: continue
345  if x > self.ed[i+1]: continue
346  return par[i*2] + par[i*2+1]*(x - self.ed[i])
return 0
def plotscripts.SawTeethFunction.pp (   self)

Definition at line 347 of file plotscripts.py.

References plotscripts.SawTeethFunction.ed, plotscripts.SawTeethFunction.edges, plotscripts.SawTeethFunction.n, entry.name, MuonGeometrySanityCheckPoint.name, and plotscripts.SawTeethFunction.name.

348  def pp(self):
349  print self.name, self.n
350  print self.edges
351  print self.ed
352 

Member Data Documentation

plotscripts.SawTeethFunction.ed

Definition at line 333 of file plotscripts.py.

Referenced by plotscripts.SawTeethFunction.__call__(), and plotscripts.SawTeethFunction.pp().

plotscripts.SawTeethFunction.edges

Definition at line 332 of file plotscripts.py.

Referenced by plotscripts.SawTeethFunction.pp().

plotscripts.SawTeethFunction.n

Definition at line 336 of file plotscripts.py.

Referenced by plotscripts.SawTeethFunction.__call__(), and plotscripts.SawTeethFunction.pp().

plotscripts.SawTeethFunction.name

Definition at line 331 of file plotscripts.py.

Referenced by dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), BeautifulSoup.Tag.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), offlineValidation.OfflineValidationParallel.__init__(), genericValidation.GenericValidationData.__init__(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), offlineValidation.OfflineValidationParallel.appendToMergeParJobs(), dirstructure.Directory.calcStats(), trackSplittingValidation.TrackSplittingValidation.createConfiguration(), monteCarloValidation.MonteCarloValidation.createConfiguration(), zMuMuValidation.ZMuMuValidation.createConfiguration(), offlineValidation.OfflineValidation.createConfiguration(), offlineValidation.OfflineValidationParallel.createConfiguration(), genericValidation.GenericValidationData.createCrabCfg(), trackSplittingValidation.TrackSplittingValidation.createScript(), monteCarloValidation.MonteCarloValidation.createScript(), zMuMuValidation.ZMuMuValidation.createScript(), offlineValidation.OfflineValidation.createScript(), geometryComparison.GeometryComparison.createScript(), offlineValidation.OfflineValidationParallel.createScript(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), TreeCrawler.Package.dump(), utils.StatisticalTest.get_status(), trackSplittingValidation.TrackSplittingValidation.getRepMap(), monteCarloValidation.MonteCarloValidation.getRepMap(), offlineValidation.OfflineValidation.getRepMap(), alignment.Alignment.getRepMap(), offlineValidation.OfflineValidationParallel.getRepMap(), plotscripts.SawTeethFunction.pp(), dirstructure.Directory.print_report(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), and Vispa.Views.PropertyView.Property.valueChanged().