CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_DDDDB 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__
 
def condition
 
def getStepName
 
def getStepNamePU
 
def init
 
def preventReuse
 
def setup
 
def setup_
 
def setupPU
 
def setupPU_
 
def workflow
 
def workflow_
 

Public Attributes

 allowReuse
 
 offset
 
 PU
 
 steps
 
 suffix
 

Detailed Description

Definition at line 94 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

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

Definition at line 95 of file upgradeWorkflowComponents.py.

95 
96  def __init__(self,steps,PU,suffix,offset):
97  self.steps = steps
98  self.PU = PU
99  self.allowReuse = True
100 
101  # ensure all PU steps are in normal step list
102  for step in self.PU:
103  if not step in self.steps:
104  self.steps.append(step)
106  self.suffix = suffix
107  if len(self.suffix)>0 and self.suffix[0]!='_': self.suffix = '_'+self.suffix
108  self.offset = offset
109  if self.offset < 0.0 or self.offset > 1.0:
raise ValueError("Special workflow offset must be between 0.0 and 1.0")

Member Function Documentation

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

Definition at line 142 of file upgradeWorkflowComponents.py.

143  def condition(self, fragment, stepList, key, hasHarvest):
return False
def upgradeWorkflowComponents.UpgradeWorkflow.getStepName (   self,
  step,
  extra = "" 
)

Definition at line 110 of file upgradeWorkflowComponents.py.

References upgradeWorkflowComponents.UpgradeWorkflow.suffix.

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

111  def getStepName(self, step, extra=""):
112  stepName = step + self.suffix + extra
return stepName
def upgradeWorkflowComponents.UpgradeWorkflow.getStepNamePU (   self,
  step,
  extra = "" 
)

Definition at line 113 of file upgradeWorkflowComponents.py.

References upgradeWorkflowComponents.UpgradeWorkflow.suffix.

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

114  def getStepNamePU(self, step, extra=""):
115  stepNamePU = step + 'PU' + self.suffix + extra
return stepNamePU
def upgradeWorkflowComponents.UpgradeWorkflow.init (   self,
  stepDict 
)

Definition at line 116 of file upgradeWorkflowComponents.py.

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

117  def init(self, stepDict):
118  for step in self.steps:
119  stepDict[self.getStepName(step)] = {}
120  if not self.allowReuse: stepDict[self.getStepName(step,preventReuseKeyword)] = {}
121  for step in self.PU:
122  stepDict[self.getStepNamePU(step)] = {}
if not self.allowReuse: stepDict[self.getStepNamePU(step,preventReuseKeyword)] = {}
def upgradeWorkflowComponents.UpgradeWorkflow.preventReuse (   self,
  stepName,
  stepDict,
  k 
)

Definition at line 144 of file upgradeWorkflowComponents.py.

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

145  def preventReuse(self, stepName, stepDict, k):
146  if "Sim" in stepName:
stepDict[stepName][k] = None
def upgradeWorkflowComponents.UpgradeWorkflow.setup (   self,
  stepDict,
  k,
  properties 
)

Definition at line 123 of file upgradeWorkflowComponents.py.

References upgradeWorkflowComponents.UpgradeWorkflow.allowReuse, upgradeWorkflowComponents.UpgradeWorkflow.getStepName(), upgradeWorkflowComponents.UpgradeWorkflow.preventReuse(), TrackFinder.setup_, trackerDTC::Stub.setup_, trackerDTC::DTC.setup_, trackerDTC::ProducerED.setup_, SectorProcessor.setup_, l1t::L1TDigiToRaw.setup_, upgradeWorkflowComponents.UpgradeWorkflow.setup_(), CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.setup_, L1FPGATrackProducer.setup_, SingleTopTChannelLeptonDQM_miniAOD.setup_, TopSingleLeptonDQM_miniAOD.setup_, TopSingleLeptonDQM.setup_, TopDiLeptonOfflineDQM.setup_, MatrixUtil.WF.steps, and upgradeWorkflowComponents.UpgradeWorkflow.steps.

124  def setup(self, stepDict, k, properties):
125  for step in self.steps:
126  self.setup_(step, self.getStepName(step), stepDict, k, properties)
if not self.allowReuse: self.preventReuse(self.getStepName(step,preventReuseKeyword), stepDict, k)
def upgradeWorkflowComponents.UpgradeWorkflow.setup_ (   self,
  step,
  stepName,
  stepDict,
  k,
  properties 
)

Definition at line 131 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setup().

132  def setup_(self, step, stepName, stepDict, k, properties):
pass
def upgradeWorkflowComponents.UpgradeWorkflow.setupPU (   self,
  stepDict,
  k,
  properties 
)

Definition at line 127 of file upgradeWorkflowComponents.py.

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

128  def setupPU(self, stepDict, k, properties):
129  for step in self.PU:
130  self.setupPU_(step, self.getStepNamePU(step), stepDict, k, properties)
if not self.allowReuse: self.preventReuse(self.getStepNamePU(step,preventReuseKeyword), stepDict, k)
def upgradeWorkflowComponents.UpgradeWorkflow.setupPU_ (   self,
  step,
  stepName,
  stepDict,
  k,
  properties 
)

Definition at line 133 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.setupPU().

134  def setupPU_(self, step, stepName, stepDict, k, properties):
pass
def upgradeWorkflowComponents.UpgradeWorkflow.workflow (   self,
  workflows,
  num,
  fragment,
  stepList,
  key,
  hasHarvest 
)

Definition at line 135 of file upgradeWorkflowComponents.py.

136  def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
137  if self.condition(fragment, stepList, key, hasHarvest):
self.workflow_(workflows, num, fragment, stepList, key)
def upgradeWorkflowComponents.UpgradeWorkflow.workflow_ (   self,
  workflows,
  num,
  fragment,
  stepList,
  key 
)

Definition at line 138 of file upgradeWorkflowComponents.py.

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

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.workflow().

139  def workflow_(self, workflows, num, fragment, stepList, key):
140  fragmentTmp = [fragment, key]
141  if len(self.suffix)>0: fragmentTmp.append(self.suffix)
workflows[num+self.offset] = [ fragmentTmp, stepList ]

Member Data Documentation

upgradeWorkflowComponents.UpgradeWorkflow.allowReuse

Definition at line 98 of file upgradeWorkflowComponents.py.

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

upgradeWorkflowComponents.UpgradeWorkflow.offset

Definition at line 107 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.workflow_().

upgradeWorkflowComponents.UpgradeWorkflow.PU

Definition at line 97 of file upgradeWorkflowComponents.py.

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

upgradeWorkflowComponents.UpgradeWorkflow.steps

Definition at line 96 of file upgradeWorkflowComponents.py.

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

upgradeWorkflowComponents.UpgradeWorkflow.suffix

Definition at line 105 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.UpgradeWorkflow.getStepName(), upgradeWorkflowComponents.UpgradeWorkflow.getStepNamePU(), upgradeWorkflowComponents.UpgradeWorkflowPremix.setupPU_(), and upgradeWorkflowComponents.UpgradeWorkflow.workflow_().