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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 645 of file upgradeWorkflowComponents.py.

645  def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
646  # adapt the parameters for the UpgradeWorkflow init method
647  super(PatatrackWorkflow, self).__init__(
648  steps = [
649  'Digi',
650  'DigiTrigger',
651  'Reco',
652  'HARVEST',
653  'RecoFakeHLT',
654  'HARVESTFakeHLT',
655  'RecoGlobal',
656  'HARVESTGlobal',
657  'RecoNano',
658  'HARVESTNano',
659  'Nano',
660  'ALCA',
661  'ALCAPhase2'
662  ],
663  PU = [],
664  **kwargs)
665  self.__digi = digi
666  self.__reco = reco
667  self.__reco.update({
668  '--datatier': 'GEN-SIM-RECO,DQMIO',
669  '--eventcontent': 'RECOSIM,DQM'
670  })
671  self.__harvest = harvest
672 
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 673 of file upgradeWorkflowComponents.py.

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

673  def condition(self, fragment, stepList, key, hasHarvest):
674  # select only a subset of the workflows
675  selected = [
676  ('2018' in key and fragment == "TTbar_13"),
677  ('2021' in key and fragment == "TTbar_14TeV" and 'FS' not in key),
678  ('2018' in key and fragment == "ZMM_13"),
679  ('2021' in key and fragment == "ZMM_14" and 'FS' not in key),
680  ('2026D88' in key and fragment == "TTbar_14TeV" and "PixelOnly" in self.suffix)
681  ]
682  result = any(selected) and hasHarvest
683 
684  return result
685 
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 686 of file upgradeWorkflowComponents.py.

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

686  def setup_(self, step, stepName, stepDict, k, properties):
687  # skip ALCA and Nano steps (but not RecoNano or HARVESTNano for Run3)
688  if 'ALCA' in step or 'Nano'==step:
689  stepDict[stepName][k] = None
690  elif 'Digi' in step:
691  if self.__digi is None:
692  stepDict[stepName][k] = None
693  else:
694  stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
695  elif 'Reco' in step:
696  if self.__reco is None:
697  stepDict[stepName][k] = None
698  else:
699  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
700  elif 'HARVEST' in step:
701  if self.__harvest is None:
702  stepDict[stepName][k] = None
703  else:
704  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
705 
706 # Pixel-only quadruplets workflow running on CPU
707 # - HLT on CPU
708 # - Pixel-only reconstruction on CPU, with DQM and validation
709 # - harvesting
710 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 711 of file upgradeWorkflowComponents.py.

◆ harvest

upgradeWorkflowComponents.PatatrackWorkflow.harvest
static

Definition at line 718 of file upgradeWorkflowComponents.py.

◆ offset

upgradeWorkflowComponents.PatatrackWorkflow.offset
static

Definition at line 722 of file upgradeWorkflowComponents.py.

◆ reco

upgradeWorkflowComponents.PatatrackWorkflow.reco
static

Definition at line 714 of file upgradeWorkflowComponents.py.

◆ suffix

upgradeWorkflowComponents.PatatrackWorkflow.suffix
static

Definition at line 721 of file upgradeWorkflowComponents.py.