CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
relval_nano.WFN Class Reference

Public Member Functions

def __call__ (self)
 
def __init__ (self, offset)
 
def next (self, index=None)
 
def subnext (self)
 

Public Attributes

 index
 
 offset
 
 subindex
 

Detailed Description

Definition at line 5 of file relval_nano.py.

Constructor & Destructor Documentation

◆ __init__()

def relval_nano.WFN.__init__ (   self,
  offset 
)

Definition at line 7 of file relval_nano.py.

7  def __init__(self, offset):
8  self.offset = offset
9  self.index = 0
10  self.subindex = 1
11 
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)

Member Function Documentation

◆ __call__()

def relval_nano.WFN.__call__ (   self)

Definition at line 12 of file relval_nano.py.

References nano_mu_digi_cff.float, print(), and relval_nano.WFN.subindex.

12  def __call__(self):
13  if self.subindex == 100:
14  print("this is not going to work nicely")
15  self.subindex = 0 / 0
16  r = float(f'{self.offset}.{self.index}{self.subindex:02d}')
17  self.subindex += 1
18  return r
19 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ next()

def relval_nano.WFN.next (   self,
  index = None 
)

Definition at line 20 of file relval_nano.py.

References relval_nano.WFN.index, TShapeAnalysis.index, L1TUtmCutValue.index, IsolatedPixelTrackCandidateProducer::seedAtEC.index, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.index, EopTriggerType.index, and relval_nano.WFN.subindex.

20  def next(self, index=None):
21  if index is None:
22  self.index += 1
23  else:
24  # manually set the index if given
25  assert index > self.index
26  self.index = index
27  self.subindex = 1
28 

◆ subnext()

def relval_nano.WFN.subnext (   self)

Definition at line 29 of file relval_nano.py.

References relval_nano.WFN.subindex.

29  def subnext(self):
30  # go to the next tenth for the subindex 10 because of 02d formating
31  self.subindex = math.ceil(self.subindex / 10.) * 10 + 1
32 
33 

Member Data Documentation

◆ index

relval_nano.WFN.index

Definition at line 9 of file relval_nano.py.

Referenced by edmTracerCompactLogViewer.EDModuleTransitionParser._postJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._postJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser._preJson(), edmTracerCompactLogViewer.ESModuleTransitionParser._preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser._preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser._preJsonVis(), edmTracerCompactLogViewer.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModulePrefetchingParser.jsonInfo(), edmTracerCompactLogViewer.PostEDModuleAcquireParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser.jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser.jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser.jsonVisInfo(), relval_nano.WFN.next(), edmTracerCompactLogViewer.EDModuleTransitionParser.textPrefix(), edmTracerCompactLogViewer.ESModuleTransitionParser.textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser.textPrefix(), and edmModuleAllocMonitorAnalyze.ESModuleTransitionParser.textPrefix().

◆ offset

relval_nano.WFN.offset

Definition at line 8 of file relval_nano.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.workflow_().

◆ subindex

relval_nano.WFN.subindex