CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes
upgradeWorkflowComponents.PatatrackWorkflow Class Reference
Inheritance diagram for upgradeWorkflowComponents.PatatrackWorkflow:
upgradeWorkflowComponents.UpgradeWorkflow

Public Member Functions

def __init__ (self, reco, harvest, **kwargs)
 
def condition (self, fragment, stepList, key, hasHarvest)
 
def setup_ (self, step, stepName, stepDict, k, properties)
 
- Public Member Functions inherited from upgradeWorkflowComponents.UpgradeWorkflow
def __init__ (self, steps, PU, suffix, offset)
 
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 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)
 

Static Public Attributes

 harvest
 
 offset
 
 reco
 
 suffix
 

Private Attributes

 __harvest
 
 __reco
 

Additional Inherited Members

- Public Attributes inherited from upgradeWorkflowComponents.UpgradeWorkflow
 allowReuse
 
 offset
 
 PU
 
 steps
 
 suffix
 

Detailed Description

Definition at line 402 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def upgradeWorkflowComponents.PatatrackWorkflow.__init__ (   self,
  reco,
  harvest,
**  kwargs 
)

Definition at line 403 of file upgradeWorkflowComponents.py.

403  def __init__(self, reco, harvest, **kwargs):
404  # adapt the parameters for the UpgradeWorkflow init method
405  super(PatatrackWorkflow, self).__init__(
406  steps = [
407  'Reco',
408  'HARVEST',
409  'RecoFakeHLT',
410  'HARVESTFakeHLT',
411  'RecoGlobal',
412  'HARVESTGlobal',
413  ],
414  PU = [],
415  **kwargs)
416  self.__reco = reco
417  self.__reco.update({
418  '--datatier': 'GEN-SIM-RECO,DQMIO',
419  '--eventcontent': 'RECOSIM,DQM'
420  })
421  self.__harvest = harvest
422 

Member Function Documentation

◆ condition()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 423 of file upgradeWorkflowComponents.py.

423  def condition(self, fragment, stepList, key, hasHarvest):
424  # select only a subset of the workflows
425  selected = [
426  ('2018' in key and fragment == "TTbar_13"),
427  ('2021' in key and fragment == "TTbar_14TeV"),
428  ('2018' in key and fragment == "ZMM_13"),
429  ('2021' in key and fragment == "ZMM_14"),
430  ]
431  result = any(selected) and hasHarvest
432 
433  # skip ALCA and Nano steps
434  for skip in copy(stepList):
435  if ("ALCA" in skip) or ("Nano" in skip):
436  stepList.remove(skip)
437  return result
438 

References any(), and filterCSVwithJSON.copy.

◆ setup_()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 439 of file upgradeWorkflowComponents.py.

439  def setup_(self, step, stepName, stepDict, k, properties):
440  if 'Reco' in step:
441  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
442  elif 'HARVEST' in step:
443  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
444 
445 
446 upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(

References upgradeWorkflowComponents.PatatrackWorkflow.__harvest, and upgradeWorkflowComponents.PatatrackWorkflow.__reco.

Member Data Documentation

◆ __harvest

upgradeWorkflowComponents.PatatrackWorkflow.__harvest
private

◆ __reco

upgradeWorkflowComponents.PatatrackWorkflow.__reco
private

◆ harvest

upgradeWorkflowComponents.PatatrackWorkflow.harvest
static

Definition at line 451 of file upgradeWorkflowComponents.py.

◆ offset

upgradeWorkflowComponents.PatatrackWorkflow.offset
static

Definition at line 455 of file upgradeWorkflowComponents.py.

◆ reco

upgradeWorkflowComponents.PatatrackWorkflow.reco
static

Definition at line 447 of file upgradeWorkflowComponents.py.

◆ suffix

upgradeWorkflowComponents.PatatrackWorkflow.suffix
static

Definition at line 454 of file upgradeWorkflowComponents.py.

filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
any
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:38
merge
Definition: merge.py:1
update
#define update(a, b)
Definition: TrackClassifier.cc:10