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, digi={}, 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 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)
 

Static Public Attributes

 digi
 
 harvest
 
 offset
 
 reco
 
 suffix
 

Private Attributes

 __digi
 
 __harvest
 
 __reco
 

Additional Inherited Members

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

Detailed Description

Definition at line 571 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def upgradeWorkflowComponents.PatatrackWorkflow.__init__ (   self,
  digi = {},
  reco = {},
  harvest = {},
  kwargs 
)

Definition at line 572 of file upgradeWorkflowComponents.py.

572  def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
573  # adapt the parameters for the UpgradeWorkflow init method
574  super(PatatrackWorkflow, self).__init__(
575  steps = [
576  'Digi',
577  'DigiTrigger',
578  'Reco',
579  'HARVEST',
580  'RecoFakeHLT',
581  'HARVESTFakeHLT',
582  'RecoGlobal',
583  'HARVESTGlobal',
584  'RecoNano',
585  'HARVESTNano',
586  'Nano',
587  'ALCA',
588  ],
589  PU = [],
590  **kwargs)
591  self.__digi = digi
592  self.__reco = reco
593  self.__reco.update({
594  '--datatier': 'GEN-SIM-RECO,DQMIO',
595  '--eventcontent': 'RECOSIM,DQM'
596  })
597  self.__harvest = harvest
598 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
#define update(a, b)

Member Function Documentation

◆ condition()

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

Definition at line 599 of file upgradeWorkflowComponents.py.

References any(), and upgradeWorkflowComponents.UpgradeWorkflow.suffix.

599  def condition(self, fragment, stepList, key, hasHarvest):
600  # select only a subset of the workflows
601  selected = [
602  ('2018' in key and fragment == "TTbar_13"),
603  ('2021' in key and fragment == "TTbar_14TeV" and 'FS' not in key),
604  ('2018' in key and fragment == "ZMM_13"),
605  ('2021' in key and fragment == "ZMM_14" and 'FS' not in key),
606  ('2026D88' in key and fragment == "TTbar_14TeV" and "PixelOnly" in self.suffix)
607  ]
608  result = any(selected) and hasHarvest
609 
610  return result
611 
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37

◆ setup_()

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

Definition at line 612 of file upgradeWorkflowComponents.py.

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

612  def setup_(self, step, stepName, stepDict, k, properties):
613  # skip ALCA and Nano steps (but not RecoNano or HARVESTNano for Run3)
614  if 'ALCA' in step or 'Nano'==step:
615  stepDict[stepName][k] = None
616  elif 'Digi' in step:
617  if self.__digi is None:
618  stepDict[stepName][k] = None
619  else:
620  stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
621  elif 'Reco' in step:
622  if self.__reco is None:
623  stepDict[stepName][k] = None
624  else:
625  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
626  elif 'HARVEST' in step:
627  if self.__harvest is None:
628  stepDict[stepName][k] = None
629  else:
630  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
631 
632 # Pixel-only quadruplets workflow running on CPU
633 # - HLT on CPU
634 # - Pixel-only reconstruction on CPU, with DQM and validation
635 # - harvesting
636 upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(
Definition: merge.py:1

Member Data Documentation

◆ __digi

upgradeWorkflowComponents.PatatrackWorkflow.__digi
private

◆ __harvest

upgradeWorkflowComponents.PatatrackWorkflow.__harvest
private

◆ __reco

upgradeWorkflowComponents.PatatrackWorkflow.__reco
private

◆ digi

upgradeWorkflowComponents.PatatrackWorkflow.digi
static

Definition at line 637 of file upgradeWorkflowComponents.py.

◆ harvest

upgradeWorkflowComponents.PatatrackWorkflow.harvest
static

Definition at line 644 of file upgradeWorkflowComponents.py.

◆ offset

upgradeWorkflowComponents.PatatrackWorkflow.offset
static

Definition at line 648 of file upgradeWorkflowComponents.py.

◆ reco

upgradeWorkflowComponents.PatatrackWorkflow.reco
static

Definition at line 640 of file upgradeWorkflowComponents.py.

◆ suffix

upgradeWorkflowComponents.PatatrackWorkflow.suffix
static

Definition at line 647 of file upgradeWorkflowComponents.py.