CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
plotscripts.SawTeethFunction Class Reference

Public Member Functions

def __call__ (self, xx, par)
 
def __init__ (self, name)
 
def pp (self)
 

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.

330  def __init__(self, name):
331  self.name = name
332  self.edges = (phiedges[stationIndex(name)])[:]
333  self.ed = sorted(self.edges)
334  # add some padding to the end
335  self.ed.append(pi+1.)
336  self.n = len(self.edges)
def stationIndex(name)
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.

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

Member Data Documentation

plotscripts.SawTeethFunction.ed
plotscripts.SawTeethFunction.edges

Definition at line 332 of file plotscripts.py.

Referenced by plotscripts.SawTeethFunction.pp().

plotscripts.SawTeethFunction.n
plotscripts.SawTeethFunction.name

Definition at line 331 of file plotscripts.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), BeautifulSoup.Tag.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), 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.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dirstructure.Directory.calcStats(), genericValidation.GenericValidationData.cfgName(), genericValidation.GenericValidationData.createCrabCfg(), geometryComparison.GeometryComparison.createScript(), genericValidation.GenericValidationData.createScript(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), 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(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), 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(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), 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().