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)
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)
def stationIndex(name)
Definition: plotscripts.py:355

Member Function Documentation

◆ __call__()

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

Definition at line 339 of file plotscripts.py.

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

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

◆ pp()

def plotscripts.SawTeethFunction.pp (   self)

Definition at line 349 of file plotscripts.py.

References plotscripts.SawTeethFunction.ed, plotscripts.SawTeethFunction.edges, plotscripts.SawTeethFunction.n, AlignableObjectId::entry.name, TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, classes.MonitorData.name, classes.OutputData.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, and print().

349  def pp(self):
350  print(self.name, self.n)
351  print(self.edges)
352  print(self.ed)
353 
354 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Member Data Documentation

◆ ed

plotscripts.SawTeethFunction.ed

◆ edges

plotscripts.SawTeethFunction.edges

◆ 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__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), 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__(), 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(), crabFunctions.CrabTask.crabConfig(), crabFunctions.CrabTask.crabFolder(), 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(), 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(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), crabFunctions.CrabTask.update(), crabFunctions.CrabTask.updateJobStats(), counter.Counter.write(), and average.Average.write().