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 331 of file plotscripts.py.

Constructor & Destructor Documentation

◆ __init__()

def plotscripts.SawTeethFunction.__init__ (   self,
  name 
)

Definition at line 332 of file plotscripts.py.

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

Member Function Documentation

◆ __call__()

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

Definition at line 339 of file plotscripts.py.

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

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

◆ pp()

def plotscripts.SawTeethFunction.pp (   self)

Member Data Documentation

◆ ed

plotscripts.SawTeethFunction.ed

◆ edges

plotscripts.SawTeethFunction.edges

Definition at line 334 of file plotscripts.py.

Referenced by plotscripts.SawTeethFunction.pp().

◆ n

plotscripts.SawTeethFunction.n

◆ name

plotscripts.SawTeethFunction.name

Definition at line 333 of file plotscripts.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), FWLite.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__(), FWLite.WorkingPoints._reformat_cut_definitions(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dataset.CMSDataset.buildListOfFiles(), dataset.LocalDataset.buildListOfFiles(), dataset.CMSDataset.buildListOfFilesDBS(), dirstructure.Directory.calcStats(), genericValidation.GenericValidationData.cfgName(), crabFunctions.CrabTask.crabConfig(), crabFunctions.CrabTask.crabFolder(), 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(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), alignment.Alignment.getRepMap(), genericValidation.GenericValidationData.getRepMap(), crabFunctions.CrabTask.handleNoState(), VIDSelectorBase.VIDSelectorBase.initialize(), crabFunctions.CrabTask.isData(), 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(), crabFunctions.CrabTask.resubmit_failed(), production_tasks.MonitorJobs.run(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), counter.Counter.write(), and average.Average.write().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
mps_setup.append
append
Definition: mps_setup.py:85
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
createTree.pp
pp
Definition: createTree.py:17
plotscripts.stationIndex
def stationIndex(name)
Definition: plotscripts.py:355