CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
upgradeWorkflowComponents.UpgradeWorkflow Class Reference
Inheritance diagram for upgradeWorkflowComponents.UpgradeWorkflow:
upgradeWorkflowComponents.UpgradeWorkflow_0T upgradeWorkflowComponents.UpgradeWorkflow_baseline upgradeWorkflowComponents.UpgradeWorkflow_DD4hep upgradeWorkflowComponents.UpgradeWorkflow_ecalDevel upgradeWorkflowComponents.UpgradeWorkflow_heCollapse upgradeWorkflowComponents.UpgradeWorkflow_JMENano upgradeWorkflowComponents.UpgradeWorkflow_Neutron upgradeWorkflowComponents.UpgradeWorkflow_ParkingBPH upgradeWorkflowComponents.UpgradeWorkflow_ProdLike upgradeWorkflowComponents.UpgradeWorkflow_vectorHits upgradeWorkflowComponents.UpgradeWorkflowAging upgradeWorkflowComponents.UpgradeWorkflowPatatrack 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 87 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 88 of file upgradeWorkflowComponents.py.

88  def __init__(self,steps,PU,suffix,offset):
89  self.steps = steps
90  self.PU = PU
91  self.allowReuse = True
92 
93  # ensure all PU steps are in normal step list
94  for step in self.PU:
95  if not step in self.steps:
96  self.steps.append(step)
97 
98  self.suffix = suffix
99  if len(self.suffix)>0 and self.suffix[0]!='_': self.suffix = '_'+self.suffix
100  self.offset = offset
101  if self.offset < 0.0 or self.offset > 1.0:
102  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 = "" 
)

Definition at line 103 of file upgradeWorkflowComponents.py.

103  def getStepName(self, step, extra=""):
104  stepName = step + self.suffix + extra
105  return stepName

References upgradeWorkflowComponents.UpgradeWorkflow.suffix.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.init(), upgradeWorkflowComponents.UpgradeWorkflow.setup(), and upgradeWorkflowComponents.UpgradeWorkflowPremix.setupPU_().

◆ getStepNamePU()

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

Definition at line 106 of file upgradeWorkflowComponents.py.

106  def getStepNamePU(self, step, extra=""):
107  stepNamePU = step + 'PU' + self.suffix + extra
108  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 109 of file upgradeWorkflowComponents.py.

109  def init(self, stepDict):
110  for step in self.steps:
111  stepDict[self.getStepName(step)] = {}
112  if not self.allowReuse: stepDict[self.getStepName(step,preventReuseKeyword)] = {}
113  for step in self.PU:
114  stepDict[self.getStepNamePU(step)] = {}
115  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 137 of file upgradeWorkflowComponents.py.

137  def preventReuse(self, stepName, stepDict, k):
138  if "Sim" in stepName:
139  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_DD4hep, 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.UpgradeWorkflowPatatrack_HCALOnlyGPU, upgradeWorkflowComponents.UpgradeWorkflowPatatrack_HCALOnlyCPU, upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyGPU, upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyCPU, upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyGPU, upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyCPU, upgradeWorkflowComponents.UpgradeWorkflow_vectorHits, 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 124 of file upgradeWorkflowComponents.py.

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

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setup().

◆ setupPU()

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

Definition at line 120 of file upgradeWorkflowComponents.py.

120  def setupPU(self, stepDict, k, properties):
121  for step in self.PU:
122  self.setupPU_(step, self.getStepNamePU(step), stepDict, k, properties)
123  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 126 of file upgradeWorkflowComponents.py.

126  def setupPU_(self, step, stepName, stepDict, k, properties):
127  pass

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

◆ workflow()

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

Definition at line 128 of file upgradeWorkflowComponents.py.

128  def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
129  if self.condition(fragment, stepList, key, hasHarvest):
130  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 131 of file upgradeWorkflowComponents.py.

131  def workflow_(self, workflows, num, fragment, stepList, key):
132  fragmentTmp = [fragment, key]
133  if len(self.suffix)>0: fragmentTmp.append(self.suffix)
134  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
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37
AlCaHarvesting_cff.workflow
workflow
Definition: AlCaHarvesting_cff.py:30