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 ElectronMVAID.ElectronMVAID.__call__(), 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(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), core.autovars.NTupleObjectType.allVars(), dirstructure.Directory.calcStats(), monteCarloValidation.MonteCarloValidation.createConfiguration(), trackSplittingValidation.TrackSplittingValidation.createConfiguration(), zMuMuValidation.ZMuMuValidation.createConfiguration(), offlineValidation.OfflineValidation.createConfiguration(), genericValidation.GenericValidationData.createCrabCfg(), geometryComparison.GeometryComparison.createScript(), genericValidation.GenericValidationData.createScript(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), plotscripts.SawTeethFunction.pp(), dirstructure.Directory.print_report(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().