CMS 3D CMS Logo

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

as simple class to number workflows dynamically More...

Public Member Functions

def __call__ (self)
 
def __init__ (self, offset)
 
def next (self)
 
def subnext (self)
 

Public Attributes

 index
 
 offset
 
 subindex
 

Detailed Description

as simple class to number workflows dynamically

Definition at line 5 of file relval_nano.py.

Constructor & Destructor Documentation

◆ __init__()

def relval_nano.WFN.__init__ (   self,
  offset 
)

Definition at line 6 of file relval_nano.py.

6  def __init__(self, offset):
7  self.offset = offset
8  self.index=0
9  self.subindex=0
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 10 of file relval_nano.py.

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

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

◆ next()

def relval_nano.WFN.next (   self)

◆ subnext()

def relval_nano.WFN.subnext (   self)

Definition at line 20 of file relval_nano.py.

References relval_nano.WFN.subindex.

20  def subnext(self):
21  # go to the next tenth for the subindex 10 because of 02d formating
22  self.subindex = math.ceil(self.subindex/10.)*10
23 

Member Data Documentation

◆ index

relval_nano.WFN.index

◆ offset

relval_nano.WFN.offset

Definition at line 7 of file relval_nano.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.workflow_().

◆ subindex

relval_nano.WFN.subindex