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

Member Function Documentation

◆ condition()

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

Reimplemented from upgradeWorkflowComponents.UpgradeWorkflow.

Definition at line 399 of file upgradeWorkflowComponents.py.

399  def condition(self, fragment, stepList, key, hasHarvest):
400  is_2018_ttbar = ('2018' in key and fragment=="TTbar_13")
401  is_2021_ttbar = ('2021' in key and fragment=="TTbar_14TeV")
402  is_2018_zmumu = ('2018' in key and fragment=="ZMM_13")
403  is_2021_zmumu = ('2021' in key and fragment=="ZMM_14")
404  result = any((is_2018_ttbar, is_2021_ttbar, is_2018_zmumu, is_2021_zmumu)) and hasHarvest and self.condition_(fragment, stepList, key, hasHarvest)
405  if result:
406  # skip ALCA and Nano
407  skipList = [s for s in stepList if (("ALCA" in s) or ("Nano" in s))]
408  for skip in skipList:
409  stepList.remove(skip)
410  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