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 | Static Public Attributes | Private Attributes
upgradeWorkflowComponents.PatatrackWorkflow Class Reference
Inheritance diagram for upgradeWorkflowComponents.PatatrackWorkflow:
upgradeWorkflowComponents.UpgradeWorkflow

Public Member Functions

def __init__
 
def condition
 
def setup_
 
- Public Member Functions inherited from upgradeWorkflowComponents.UpgradeWorkflow
def __init__
 
def condition
 
def getStepName
 
def getStepNamePU
 
def init
 
def preventReuse
 
def setup
 
def setup_
 
def setupPU
 
def setupPU_
 
def workflow
 
def workflow_
 

Static Public Attributes

dictionary digi
 
dictionary harvest
 
 harvest = None,
 
float offset = 0.501
 
dictionary reco
 
string suffix = 'Patatrack_PixelOnlyCPU'
 

Private Attributes

 __digi
 
 __harvest
 
 __reco
 

Additional Inherited Members

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

Detailed Description

Definition at line 498 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

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

Definition at line 499 of file upgradeWorkflowComponents.py.

500  def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
501  # adapt the parameters for the UpgradeWorkflow init method
502  super(PatatrackWorkflow, self).__init__(
503  steps = [
504  'Digi',
505  'DigiTrigger',
506  'Reco',
507  'HARVEST',
508  'RecoFakeHLT',
509  'HARVESTFakeHLT',
510  'RecoGlobal',
511  'HARVESTGlobal',
512  'RecoNano',
513  'HARVESTNano',
514  'Nano',
515  'ALCA',
516  ],
517  PU = [],
518  **kwargs)
519  self.__digi = digi
520  self.__reco = reco
521  self.__reco.update({
522  '--datatier': 'GEN-SIM-RECO,DQMIO',
523  '--eventcontent': 'RECOSIM,DQM'
524  })
525  self.__harvest = harvest

Member Function Documentation

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

Definition at line 526 of file upgradeWorkflowComponents.py.

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

527  def condition(self, fragment, stepList, key, hasHarvest):
528  # select only a subset of the workflows
529  selected = [
530  ('2018' in key and fragment == "TTbar_13"),
531  ('2021' in key and fragment == "TTbar_14TeV"),
532  ('2018' in key and fragment == "ZMM_13"),
533  ('2021' in key and fragment == "ZMM_14"),
534  ('2026D88' in key and fragment == "TTbar_14TeV" and "PixelOnly" in self.suffix)
535  ]
536  result = any(selected) and hasHarvest
537 
538  return result
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37
def upgradeWorkflowComponents.PatatrackWorkflow.setup_ (   self,
  step,
  stepName,
  stepDict,
  k,
  properties 
)

Definition at line 539 of file upgradeWorkflowComponents.py.

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

540  def setup_(self, step, stepName, stepDict, k, properties):
541  # skip ALCA and Nano steps (but not RecoNano or HARVESTNano for Run3)
542  if 'ALCA' in step or 'Nano'==step:
543  stepDict[stepName][k] = None
544  elif 'Digi' in step:
545  if self.__digi is None:
546  stepDict[stepName][k] = None
547  else:
548  stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
549  elif 'Reco' in step:
550  if self.__reco is None:
551  stepDict[stepName][k] = None
552  else:
553  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
554  elif 'HARVEST' in step:
555  if self.__harvest is None:
556  stepDict[stepName][k] = None
557  else:
558  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
559 
560 # Pixel-only quadruplets workflow running on CPU
561 # - HLT on CPU
562 # - Pixel-only reconstruction on CPU, with DQM and validation
563 # - harvesting
upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(
Definition: merge.py:1

Member Data Documentation

upgradeWorkflowComponents.PatatrackWorkflow.__digi
private

Definition at line 518 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.PatatrackWorkflow.setup_().

upgradeWorkflowComponents.PatatrackWorkflow.__harvest
private

Definition at line 524 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.PatatrackWorkflow.setup_().

upgradeWorkflowComponents.PatatrackWorkflow.__reco
private

Definition at line 519 of file upgradeWorkflowComponents.py.

Referenced by upgradeWorkflowComponents.PatatrackWorkflow.setup_().

dictionary upgradeWorkflowComponents.PatatrackWorkflow.digi
static
Initial value:
1 = {
2  # the HLT menu is already set up for using GPUs if available and if the "gpu" modifier is enabled
3  }

Definition at line 564 of file upgradeWorkflowComponents.py.

dictionary upgradeWorkflowComponents.PatatrackWorkflow.harvest
static
Initial value:
1 = {
2  '-s': 'HARVESTING:@trackingOnlyValidation+@pixelTrackingOnlyDQM'
3  }

Definition at line 571 of file upgradeWorkflowComponents.py.

upgradeWorkflowComponents.PatatrackWorkflow.harvest = None,
static

Definition at line 633 of file upgradeWorkflowComponents.py.

float upgradeWorkflowComponents.PatatrackWorkflow.offset = 0.501
static

Definition at line 575 of file upgradeWorkflowComponents.py.

dictionary upgradeWorkflowComponents.PatatrackWorkflow.reco
static
Initial value:
1 = {
2  '-s': 'RAW2DIGI:RawToDigi_pixelOnly,RECO:reconstruction_pixelTrackingOnly,VALIDATION:@pixelTrackingOnlyValidation,DQM:@pixelTrackingOnlyDQM',
3  '--procModifiers': 'pixelNtupletFit'
4  }

Definition at line 567 of file upgradeWorkflowComponents.py.

string upgradeWorkflowComponents.PatatrackWorkflow.suffix = 'Patatrack_PixelOnlyCPU'
static

Definition at line 574 of file upgradeWorkflowComponents.py.