CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
upgradeWorkflowComponents.UpgradeWorkflow Class Reference
Inheritance diagram for upgradeWorkflowComponents.UpgradeWorkflow:
upgradeWorkflowComponents.PatatrackWorkflow upgradeWorkflowComponents.UpgradeWorkflow_0T upgradeWorkflowComponents.UpgradeWorkflow_baseline upgradeWorkflowComponents.UpgradeWorkflow_DD4hep upgradeWorkflowComponents.UpgradeWorkflow_ecalDevel upgradeWorkflowComponents.UpgradeWorkflow_heCollapse upgradeWorkflowComponents.UpgradeWorkflow_JMENano upgradeWorkflowComponents.UpgradeWorkflow_mlpf upgradeWorkflowComponents.UpgradeWorkflow_Neutron upgradeWorkflowComponents.UpgradeWorkflow_ParkingBPH upgradeWorkflowComponents.UpgradeWorkflow_ProdLike upgradeWorkflowComponents.UpgradeWorkflow_seedingDeepCore upgradeWorkflowComponents.UpgradeWorkflow_SonicTriton upgradeWorkflowComponents.UpgradeWorkflow_trackdnn upgradeWorkflowComponents.UpgradeWorkflow_vectorHits upgradeWorkflowComponents.UpgradeWorkflowAging upgradeWorkflowComponents.UpgradeWorkflowPremix upgradeWorkflowComponents.UpgradeWorkflowTracking

Public Member Functions

def __init__ (self, steps, PU, suffix, offset)
 
def condition (self, fragment, stepList, key, hasHarvest)
 
def getStepName (self, step, extra="")
 
def getStepNamePU (self, step, extra="")
 
def init (self, stepDict)
 
def preventReuse (self, stepName, stepDict, k)
 
def setup (self, stepDict, k, properties)
 
def setup_ (self, step, stepName, stepDict, k, properties)
 
def setupPU (self, stepDict, k, properties)
 
def setupPU_ (self, step, stepName, stepDict, k, properties)
 
def workflow (self, workflows, num, fragment, stepList, key, hasHarvest)
 
def workflow_ (self, workflows, num, fragment, stepList, key)
 

Public Attributes

 allowReuse
 
 offset
 
 PU
 
 steps
 
 suffix
 

Detailed Description

Definition at line 85 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def upgradeWorkflowComponents.UpgradeWorkflow.__init__ (   self,
  steps,
  PU,
  suffix,
  offset 
)

Definition at line 86 of file upgradeWorkflowComponents.py.

86  def __init__(self,steps,PU,suffix,offset):
87  self.steps = steps
88  self.PU = PU
89  self.allowReuse = True
90 
91  # ensure all PU steps are in normal step list
92  for step in self.PU:
93  if not step in self.steps:
94  self.steps.append(step)
95 
96  self.suffix = suffix
97  if len(self.suffix)>0 and self.suffix[0]!='_': self.suffix = '_'+self.suffix
98  self.offset = offset
99  if self.offset < 0.0 or self.offset > 1.0:
100  raise ValueError("Special workflow offset must be between 0.0 and 1.0")

Member Function Documentation

◆ condition()

def upgradeWorkflowComponents.UpgradeWorkflow.condition (   self,
  fragment,
  stepList,
  key,
  hasHarvest 
)

◆ getStepName()

def upgradeWorkflowComponents.UpgradeWorkflow.getStepName (   self,
  step,
  extra = "" 
)

◆ getStepNamePU()

def upgradeWorkflowComponents.UpgradeWorkflow.getStepNamePU (   self,
  step,
  extra = "" 
)

Definition at line 104 of file upgradeWorkflowComponents.py.

104  def getStepNamePU(self, step, extra=""):
105  stepNamePU = step + 'PU' + self.suffix + extra
106  return stepNamePU

References upgradeWorkflowComponents.UpgradeWorkflow.suffix.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.init(), and upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

◆ init()

def upgradeWorkflowComponents.UpgradeWorkflow.init (   self,
  stepDict 
)

Definition at line 107 of file upgradeWorkflowComponents.py.

107  def init(self, stepDict):
108  for step in self.steps:
109  stepDict[self.getStepName(step)] = {}
110  if not self.allowReuse: stepDict[self.getStepName(step,preventReuseKeyword)] = {}
111  for step in self.PU:
112  stepDict[self.getStepNamePU(step)] = {}
113  if not self.allowReuse: stepDict[self.getStepNamePU(step,preventReuseKeyword)] = {}

References upgradeWorkflowComponents.UpgradeWorkflow.allowReuse, upgradeWorkflowComponents.UpgradeWorkflow.getStepName(), upgradeWorkflowComponents.UpgradeWorkflow.getStepNamePU(), upgradeWorkflowComponents.UpgradeWorkflow.PU, HitEff.PU, MatrixUtil.WF.steps, and upgradeWorkflowComponents.UpgradeWorkflow.steps.

◆ preventReuse()

def upgradeWorkflowComponents.UpgradeWorkflow.preventReuse (   self,
  stepName,
  stepDict,
  k 
)

Definition at line 135 of file upgradeWorkflowComponents.py.

135  def preventReuse(self, stepName, stepDict, k):
136  if "Sim" in stepName:
137  stepDict[stepName][k] = None

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setup(), and upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

◆ setup()

def upgradeWorkflowComponents.UpgradeWorkflow.setup (   self,
  stepDict,
  k,
  properties 
)

◆ setup_()

def upgradeWorkflowComponents.UpgradeWorkflow.setup_ (   self,
  step,
  stepName,
  stepDict,
  k,
  properties 
)

Reimplemented in upgradeWorkflowComponents.UpgradeWorkflow_SonicTriton, upgradeWorkflowComponents.UpgradeWorkflow_DD4hep, upgradeWorkflowComponents.UpgradeWorkflowPremixProdLike, upgradeWorkflowComponents.UpgradeWorkflowPremix, upgradeWorkflowComponents.UpgradeWorkflowAging, upgradeWorkflowComponents.UpgradeWorkflow_JMENano, upgradeWorkflowComponents.UpgradeWorkflow_ParkingBPH, upgradeWorkflowComponents.UpgradeWorkflow_0T, upgradeWorkflowComponents.UpgradeWorkflow_ecalDevel, upgradeWorkflowComponents.UpgradeWorkflow_heCollapse, upgradeWorkflowComponents.UpgradeWorkflow_Neutron, upgradeWorkflowComponents.UpgradeWorkflow_ProdLike, upgradeWorkflowComponents.PatatrackWorkflow, upgradeWorkflowComponents.UpgradeWorkflow_mlpf, upgradeWorkflowComponents.UpgradeWorkflow_trackdnn, upgradeWorkflowComponents.UpgradeWorkflow_vectorHits, upgradeWorkflowComponents.UpgradeWorkflow_seedingDeepCore, upgradeWorkflowComponents.UpgradeWorkflow_trackingMkFit, upgradeWorkflowComponents.UpgradeWorkflow_pixelTrackingOnly, upgradeWorkflowComponents.UpgradeWorkflow_trackingLowPU, upgradeWorkflowComponents.UpgradeWorkflow_trackingOnlyRun2, upgradeWorkflowComponents.UpgradeWorkflow_trackingRun2, upgradeWorkflowComponents.UpgradeWorkflow_trackingOnly, and upgradeWorkflowComponents.UpgradeWorkflow_baseline.

Definition at line 122 of file upgradeWorkflowComponents.py.

122  def setup_(self, step, stepName, stepDict, k, properties):
123  pass

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setup().

◆ setupPU()

def upgradeWorkflowComponents.UpgradeWorkflow.setupPU (   self,
  stepDict,
  k,
  properties 
)

Definition at line 118 of file upgradeWorkflowComponents.py.

118  def setupPU(self, stepDict, k, properties):
119  for step in self.PU:
120  self.setupPU_(step, self.getStepNamePU(step), stepDict, k, properties)
121  if not self.allowReuse: self.preventReuse(self.getStepNamePU(step,preventReuseKeyword), stepDict, k)

References upgradeWorkflowComponents.UpgradeWorkflow.allowReuse, upgradeWorkflowComponents.UpgradeWorkflow.getStepNamePU(), upgradeWorkflowComponents.UpgradeWorkflow.preventReuse(), upgradeWorkflowComponents.UpgradeWorkflow.PU, HitEff.PU, and upgradeWorkflowComponents.UpgradeWorkflow.setupPU_().

◆ setupPU_()

def upgradeWorkflowComponents.UpgradeWorkflow.setupPU_ (   self,
  step,
  stepName,
  stepDict,
  k,
  properties 
)

Reimplemented in upgradeWorkflowComponents.UpgradeWorkflowAdjustPU, and upgradeWorkflowComponents.UpgradeWorkflowPremix.

Definition at line 124 of file upgradeWorkflowComponents.py.

124  def setupPU_(self, step, stepName, stepDict, k, properties):
125  pass

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

◆ workflow()

def upgradeWorkflowComponents.UpgradeWorkflow.workflow (   self,
  workflows,
  num,
  fragment,
  stepList,
  key,
  hasHarvest 
)

Definition at line 126 of file upgradeWorkflowComponents.py.

126  def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
127  if self.condition(fragment, stepList, key, hasHarvest):
128  self.workflow_(workflows, num, fragment, stepList, key)

◆ workflow_()

def upgradeWorkflowComponents.UpgradeWorkflow.workflow_ (   self,
  workflows,
  num,
  fragment,
  stepList,
  key 
)

Reimplemented in upgradeWorkflowComponents.UpgradeWorkflowPremix.

Definition at line 129 of file upgradeWorkflowComponents.py.

129  def workflow_(self, workflows, num, fragment, stepList, key):
130  fragmentTmp = [fragment, key]
131  if len(self.suffix)>0: fragmentTmp.append(self.suffix)
132  workflows[num+self.offset] = [ fragmentTmp, stepList ]

References SiPixelVCal::VCal.offset, sistrip::MeasureLA.offset, upgradeWorkflowComponents.UpgradeWorkflow.offset, PhysicsTools::Calibration::ProcLinear.offset, and upgradeWorkflowComponents.UpgradeWorkflow.suffix.

Member Data Documentation

◆ allowReuse

upgradeWorkflowComponents.UpgradeWorkflow.allowReuse

◆ offset

upgradeWorkflowComponents.UpgradeWorkflow.offset

◆ PU

upgradeWorkflowComponents.UpgradeWorkflow.PU

◆ steps

upgradeWorkflowComponents.UpgradeWorkflow.steps

◆ suffix

upgradeWorkflowComponents.UpgradeWorkflow.suffix
init
int init
Definition: HydjetWrapper.h:64
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
mps_setup.append
append
Definition: mps_setup.py:85
AlCaHarvesting_cff.workflow
workflow
Definition: AlCaHarvesting_cff.py:30