CMS 3D CMS Logo

List of all members | Public Member Functions
upgradeWorkflowComponents.UpgradeWorkflowPatatrack Class Reference
Inheritance diagram for upgradeWorkflowComponents.UpgradeWorkflowPatatrack:
upgradeWorkflowComponents.UpgradeWorkflow upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_ECALOnlyGPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_HCALOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_HCALOnlyGPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyCPU upgradeWorkflowComponents.UpgradeWorkflowPatatrack_PixelOnlyGPU

Public Member Functions

def condition (self, fragment, stepList, key, hasHarvest)
 
def condition_ (self, fragment, stepList, key, hasHarvest)
 
- 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 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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 332 of file upgradeWorkflowComponents.py.

Member Function Documentation

◆ condition()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 333 of file upgradeWorkflowComponents.py.

333  def condition(self, fragment, stepList, key, hasHarvest):
334  is_2018_ttbar = ('2018' in key and fragment=="TTbar_13")
335  is_2021_ttbar = ('2021' in key and fragment=="TTbar_14TeV")
336  is_2018_zmumu = ('2018' in key and fragment=="ZMM_13")
337  is_2021_zmumu = ('2021' in key and fragment=="ZMM_14")
338  result = any((is_2018_ttbar, is_2021_ttbar, is_2018_zmumu, is_2021_zmumu)) and hasHarvest and self.condition_(fragment, stepList, key, hasHarvest)
339  if result:
340  # skip ALCA and Nano
341  skipList = [s for s in stepList if (("ALCA" in s) or ("Nano" in s))]
342  for skip in skipList:
343  stepList.remove(skip)
344  return result

References any(), upgradeWorkflowComponents.UpgradeWorkflowTracking.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingRun2.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingOnlyRun2.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingLowPU.condition_(), timestudy::SleepingServer.condition_, upgradeWorkflowComponents.UpgradeWorkflow_pixelTrackingOnly.condition_(), upgradeWorkflowComponents.UpgradeWorkflow_trackingMkFit.condition_(), and upgradeWorkflowComponents.UpgradeWorkflowPatatrack.condition_().

◆ condition_()

def upgradeWorkflowComponents.UpgradeWorkflowPatatrack.condition_ (   self,
  fragment,
  stepList,
  key,
  hasHarvest 
)
any
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:38
goodZToMuMu_cfi.condition
condition
Definition: goodZToMuMu_cfi.py:37