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 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

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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 417 of file upgradeWorkflowComponents.py.

417  def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
418  # adapt the parameters for the UpgradeWorkflow init method
419  super(PatatrackWorkflow, self).__init__(
420  steps = [
421  'Digi',
422  'DigiTrigger',
423  'Reco',
424  'HARVEST',
425  'RecoFakeHLT',
426  'HARVESTFakeHLT',
427  'RecoGlobal',
428  'HARVESTGlobal',
429  ],
430  PU = [],
431  **kwargs)
432  self.__digi = digi
433  self.__reco = reco
434  self.__reco.update({
435  '--datatier': 'GEN-SIM-RECO,DQMIO',
436  '--eventcontent': 'RECOSIM,DQM'
437  })
438  self.__harvest = harvest
439 

Member Function Documentation

◆ condition()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 440 of file upgradeWorkflowComponents.py.

440  def condition(self, fragment, stepList, key, hasHarvest):
441  # select only a subset of the workflows
442  selected = [
443  ('2018' in key and fragment == "TTbar_13"),
444  ('2021' in key and fragment == "TTbar_14TeV"),
445  ('2018' in key and fragment == "ZMM_13"),
446  ('2021' in key and fragment == "ZMM_14"),
447  ]
448  result = any(selected) and hasHarvest
449 
450  # skip ALCA and Nano steps
451  for skip in copy(stepList):
452  if ("ALCA" in skip) or ("Nano" in skip):
453  stepList.remove(skip)
454  return result
455 

References any(), and filterCSVwithJSON.copy.

◆ setup_()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 456 of file upgradeWorkflowComponents.py.

456  def setup_(self, step, stepName, stepDict, k, properties):
457  if 'Digi' in step:
458  stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
459  elif 'Reco' in step:
460  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
461  elif 'HARVEST' in step:
462  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
463 
464 
465 upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(

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

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

◆ harvest

upgradeWorkflowComponents.PatatrackWorkflow.harvest
static

Definition at line 473 of file upgradeWorkflowComponents.py.

◆ offset

upgradeWorkflowComponents.PatatrackWorkflow.offset
static

Definition at line 477 of file upgradeWorkflowComponents.py.

◆ reco

upgradeWorkflowComponents.PatatrackWorkflow.reco
static

Definition at line 469 of file upgradeWorkflowComponents.py.

◆ suffix

upgradeWorkflowComponents.PatatrackWorkflow.suffix
static

Definition at line 476 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:37
merge
Definition: merge.py:1
update
#define update(a, b)
Definition: TrackClassifier.cc:10