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={}, mini={}, 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
 
 __mini
 
 __reco
 

Additional Inherited Members

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

Detailed Description

Definition at line 778 of file upgradeWorkflowComponents.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 779 of file upgradeWorkflowComponents.py.

779  def __init__(self, digi = {}, reco = {}, mini = {}, harvest = {}, **kwargs):
780  # adapt the parameters for the UpgradeWorkflow init method
781  super(PatatrackWorkflow, self).__init__(
782  steps = [
783  'Digi',
784  'DigiTrigger',
785  'Reco',
786  'RecoFakeHLT',
787  'HARVEST',
788  'HARVESTFakeHLT',
789  'RecoGlobal',
790  'HARVESTGlobal',
791  'RecoNano',
792  'RecoNanoFakeHLT',
793  'HARVESTNano',
794  'HARVESTNanoFakeHLT',
795  'MiniAOD',
796  'Nano',
797  'ALCA',
798  'ALCAPhase2'
799  ],
800  PU = [
801  'Digi',
802  'DigiTrigger',
803  'Reco',
804  'RecoFakeHLT',
805  'HARVEST',
806  'HARVESTFakeHLT',
807  'RecoGlobal',
808  'HARVESTGlobal',
809  'RecoNano',
810  'RecoNanoFakeHLT',
811  'HARVESTNano',
812  'HARVESTNanoFakeHLT',
813  'MiniAOD',
814  'Nano',
815  'ALCA',
816  'ALCAPhase2'
817  ],
818  **kwargs)
819  self.__digi = digi
820  self.__reco = reco
821  if 'DQM' in self.__reco:
822  self.__reco.update({
823  '--datatier': 'GEN-SIM-RECO,DQMIO',
824  '--eventcontent': 'RECOSIM,DQM'
825  })
826  self.__mini = mini
827  self.__harvest = harvest
828 
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 829 of file upgradeWorkflowComponents.py.

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

829  def condition(self, fragment, stepList, key, hasHarvest):
830  # select only a subset of the workflows
831  selected = [
832  ('2018' in key and fragment == "TTbar_13"),
833  ('2021' in key and fragment == "TTbar_14TeV" and 'FS' not in key),
834  ('2023' in key and fragment == "TTbar_14TeV" and 'FS' not in key),
835  ('2018' in key and fragment == "ZMM_13"),
836  ('2021' in key and fragment == "ZMM_14" and 'FS' not in key),
837  ('2023' in key and fragment == "ZMM_14" and 'FS' not in key),
838  ('2026D88' in key and fragment == "TTbar_14TeV" and "PixelOnly" in self.suffix),
839  (('HI' in key) and 'Hydjet' in fragment and "PixelOnly" in self.suffix )
840  ]
841  result = any(selected) and hasHarvest
842 
843  return result
844 
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 845 of file upgradeWorkflowComponents.py.

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

845  def setup_(self, step, stepName, stepDict, k, properties):
846  # skip ALCA and Nano steps (but not RecoNano or HARVESTNano for Run3)
847  if 'ALCA' in step or 'Nano'==step:
848  stepDict[stepName][k] = None
849  elif 'Digi' in step:
850  if self.__digi is None:
851  stepDict[stepName][k] = None
852  else:
853  stepDict[stepName][k] = merge([self.__digi, stepDict[step][k]])
854  elif 'Reco' in step:
855  if self.__reco is None:
856  stepDict[stepName][k] = None
857  else:
858  stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
859  elif 'MiniAOD' in step:
860  if self.__mini is None:
861  stepDict[stepName][k] = None
862  else:
863  stepDict[stepName][k] = merge([self.__mini, stepDict[step][k]])
864  elif 'HARVEST' in step:
865  if self.__harvest is None:
866  stepDict[stepName][k] = None
867  else:
868  stepDict[stepName][k] = merge([self.__harvest, stepDict[step][k]])
869 
870 # Pixel-only quadruplets workflow running on CPU
871 # - HLT on CPU
872 # - Pixel-only reconstruction on CPU, with DQM and validation
873 # - harvesting
874 upgradeWFs['PatatrackPixelOnlyCPU'] = PatatrackWorkflow(
Definition: merge.py:1

Member Data Documentation

◆ __digi

upgradeWorkflowComponents.PatatrackWorkflow.__digi
private

◆ __harvest

upgradeWorkflowComponents.PatatrackWorkflow.__harvest
private

◆ __mini

upgradeWorkflowComponents.PatatrackWorkflow.__mini
private

◆ __reco

upgradeWorkflowComponents.PatatrackWorkflow.__reco
private

◆ digi

upgradeWorkflowComponents.PatatrackWorkflow.digi
static

Definition at line 875 of file upgradeWorkflowComponents.py.

◆ harvest

upgradeWorkflowComponents.PatatrackWorkflow.harvest
static

Definition at line 882 of file upgradeWorkflowComponents.py.

◆ offset

upgradeWorkflowComponents.PatatrackWorkflow.offset
static

Definition at line 886 of file upgradeWorkflowComponents.py.

◆ reco

upgradeWorkflowComponents.PatatrackWorkflow.reco
static

Definition at line 878 of file upgradeWorkflowComponents.py.

◆ suffix

upgradeWorkflowComponents.PatatrackWorkflow.suffix
static

Definition at line 885 of file upgradeWorkflowComponents.py.