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_DD4hepDB 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 92 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 93 of file upgradeWorkflowComponents.py.

93  def __init__(self,steps,PU,suffix,offset):
94  self.steps = steps
95  self.PU = PU
96  self.allowReuse = True
97 
98  # ensure all PU steps are in normal step list
99  for step in self.PU:
100  if not step in self.steps:
101  self.steps.append(step)
102 
103  self.suffix = suffix
104  if len(self.suffix)>0 and self.suffix[0]!='_': self.suffix = '_'+self.suffix
105  self.offset = offset
106  if self.offset < 0.0 or self.offset > 1.0:
107  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 111 of file upgradeWorkflowComponents.py.

111  def getStepNamePU(self, step, extra=""):
112  stepNamePU = step + 'PU' + self.suffix + extra
113  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 114 of file upgradeWorkflowComponents.py.

114  def init(self, stepDict):
115  for step in self.steps:
116  stepDict[self.getStepName(step)] = {}
117  if not self.allowReuse: stepDict[self.getStepName(step,preventReuseKeyword)] = {}
118  for step in self.PU:
119  stepDict[self.getStepNamePU(step)] = {}
120  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 142 of file upgradeWorkflowComponents.py.

142  def preventReuse(self, stepName, stepDict, k):
143  if "Sim" in stepName:
144  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_DD4hepDB, 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 129 of file upgradeWorkflowComponents.py.

129  def setup_(self, step, stepName, stepDict, k, properties):
130  pass

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setup().

◆ setupPU()

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

Definition at line 125 of file upgradeWorkflowComponents.py.

125  def setupPU(self, stepDict, k, properties):
126  for step in self.PU:
127  self.setupPU_(step, self.getStepNamePU(step), stepDict, k, properties)
128  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 131 of file upgradeWorkflowComponents.py.

131  def setupPU_(self, step, stepName, stepDict, k, properties):
132  pass

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

◆ workflow()

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

Definition at line 133 of file upgradeWorkflowComponents.py.

133  def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
134  if self.condition(fragment, stepList, key, hasHarvest):
135  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 136 of file upgradeWorkflowComponents.py.

136  def workflow_(self, workflows, num, fragment, stepList, key):
137  fragmentTmp = [fragment, key]
138  if len(self.suffix)>0: fragmentTmp.append(self.suffix)
139  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:31